adds ifxmips, uboot-ifxmips and removes etrax from 8.09 branch
[openwrt/svn-archive/archive.git] / package / uboot-ifxmips / files / cpu / mips / danube / ifx_cgu.h
1 #ifndef __DANUBE_CGU_DEV_H__2005_07_20__14_26__
2 #define __DANUBE_CGU_DEV_H__2005_07_20__14_26__
3
4
5 /******************************************************************************
6 Copyright (c) 2002, Infineon Technologies. All rights reserved.
7
8 No Warranty
9 Because the program is licensed free of charge, there is no warranty for
10 the program, to the extent permitted by applicable law. Except when
11 otherwise stated in writing the copyright holders and/or other parties
12 provide the program "as is" without warranty of any kind, either
13 expressed or implied, including, but not limited to, the implied
14 warranties of merchantability and fitness for a particular purpose. The
15 entire risk as to the quality and performance of the program is with
16 you. should the program prove defective, you assume the cost of all
17 necessary servicing, repair or correction.
18
19 In no event unless required by applicable law or agreed to in writing
20 will any copyright holder, or any other party who may modify and/or
21 redistribute the program as permitted above, be liable to you for
22 damages, including any general, special, incidental or consequential
23 damages arising out of the use or inability to use the program
24 (including but not limited to loss of data or data being rendered
25 inaccurate or losses sustained by you or third parties or a failure of
26 the program to operate with any other programs), even if such holder or
27 other party has been advised of the possibility of such damages.
28 ******************************************************************************/
29
30
31 /*
32 * ####################################
33 * Definition
34 * ####################################
35 */
36
37 /*
38 * ioctl Command
39 */
40 #define CGU_IOC_MAGIC 'u'
41 #define CGU_GET_CLOCK_RATES _IOW(CGU_IOC_MAGIC, 0, struct cgu_clock_rates)
42 #define CGU_IOC_MAXNR 1
43
44
45 /*
46 * ####################################
47 * Data Type
48 * ####################################
49 */
50
51 /*
52 * Data Type Used to Call ioctl(GET_CLOCK_RATES)
53 */
54 struct cgu_clock_rates {
55 u32 mips0;
56 u32 mips1;
57 u32 cpu;
58 u32 io_region;
59 u32 fpi_bus1;
60 u32 fpi_bus2;
61 u32 pp32;
62 u32 pci;
63 u32 ethernet;
64 u32 usb;
65 u32 clockout0;
66 u32 clockout1;
67 u32 clockout2;
68 u32 clockout3;
69 };
70
71
72 /*
73 * ####################################
74 * Declaration
75 * ####################################
76 */
77
78 #if defined(__KERNEL__)
79 extern u32 cgu_get_mips_clock(int);
80 extern u32 cgu_get_cpu_clock(void);
81 extern u32 cgu_get_io_region_clock(void);
82 extern u32 cgu_get_fpi_bus_clock(int);
83 extern u32 cgu_get_pp32_clock(void);
84 extern u32 cgu_get_pci_clock(void);
85 extern u32 cgu_get_ethernet_clock(void);
86 extern u32 cgu_get_usb_clock(void);
87 extern u32 cgu_get_clockout(int);
88 #endif // defined(__KERNEL__)
89
90
91 #endif // __DANUBE_CGU_DEV_H__2005_07_20__14_26__