ARM: ICST: indirect s2div and idx2s arrays via icst_params
[linux-2.6/libata-dev.git] / arch / arm / include / asm / hardware / icst.h
blob4d403680fa4716547648a776301b9a909bb7ddfd
1 /*
2 * arch/arm/include/asm/hardware/icst.h
4 * Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Support functions for calculating clocks/divisors for the ICST
11 * clock generators. See http://www.icst.com/ for more information
12 * on these devices.
14 #ifndef ASMARM_HARDWARE_ICST_H
15 #define ASMARM_HARDWARE_ICST_H
17 struct icst_params {
18 unsigned long ref;
19 unsigned long vco_max; /* inclusive */
20 unsigned long vco_min; /* exclusive */
21 unsigned short vd_min; /* inclusive */
22 unsigned short vd_max; /* inclusive */
23 unsigned char rd_min; /* inclusive */
24 unsigned char rd_max; /* inclusive */
25 const unsigned char *s2div; /* chip specific s2div array */
26 const unsigned char *idx2s; /* chip specific idx2s array */
29 struct icst_vco {
30 unsigned short v;
31 unsigned char r;
32 unsigned char s;
35 #endif