+++ /dev/null
-#ifndef __DANUBE_CGU_DEV_H__2005_07_20__14_26__\r
-#define __DANUBE_CGU_DEV_H__2005_07_20__14_26__\r
-\r
-\r
-/******************************************************************************\r
- Copyright (c) 2002, Infineon Technologies. All rights reserved.\r
-\r
- No Warranty\r
- Because the program is licensed free of charge, there is no warranty for\r
- the program, to the extent permitted by applicable law. Except when\r
- otherwise stated in writing the copyright holders and/or other parties\r
- provide the program "as is" without warranty of any kind, either\r
- expressed or implied, including, but not limited to, the implied\r
- warranties of merchantability and fitness for a particular purpose. The\r
- entire risk as to the quality and performance of the program is with\r
- you. should the program prove defective, you assume the cost of all\r
- necessary servicing, repair or correction.\r
-\r
- In no event unless required by applicable law or agreed to in writing\r
- will any copyright holder, or any other party who may modify and/or\r
- redistribute the program as permitted above, be liable to you for\r
- damages, including any general, special, incidental or consequential\r
- damages arising out of the use or inability to use the program\r
- (including but not limited to loss of data or data being rendered\r
- inaccurate or losses sustained by you or third parties or a failure of\r
- the program to operate with any other programs), even if such holder or\r
- other party has been advised of the possibility of such damages.\r
-******************************************************************************/\r
-\r
-\r
-/*\r
- * ####################################\r
- * Definition\r
- * ####################################\r
- */\r
-\r
-/*\r
- * ioctl Command\r
- */\r
-#define CGU_IOC_MAGIC 'u'\r
-#define CGU_GET_CLOCK_RATES _IOW(CGU_IOC_MAGIC, 0, struct cgu_clock_rates)\r
-#define CGU_IOC_MAXNR 1\r
-\r
-\r
-/*\r
- * ####################################\r
- * Data Type\r
- * ####################################\r
- */\r
-\r
-/*\r
- * Data Type Used to Call ioctl(GET_CLOCK_RATES)\r
- */\r
-struct cgu_clock_rates {\r
- u32 mips0;\r
- u32 mips1;\r
- u32 cpu;\r
- u32 io_region;\r
- u32 fpi_bus1;\r
- u32 fpi_bus2;\r
- u32 pp32;\r
- u32 pci;\r
- u32 ethernet;\r
- u32 usb;\r
- u32 clockout0;\r
- u32 clockout1;\r
- u32 clockout2;\r
- u32 clockout3;\r
-};\r
-\r
-\r
-/*\r
- * ####################################\r
- * Declaration\r
- * ####################################\r
- */\r
-\r
-#if defined(__KERNEL__)\r
- extern u32 cgu_get_mips_clock(int);\r
- extern u32 cgu_get_cpu_clock(void);\r
- extern u32 cgu_get_io_region_clock(void);\r
- extern u32 cgu_get_fpi_bus_clock(int);\r
- extern u32 cgu_get_pp32_clock(void);\r
- extern u32 cgu_get_pci_clock(void);\r
- extern u32 cgu_get_ethernet_clock(void);\r
- extern u32 cgu_get_usb_clock(void);\r
- extern u32 cgu_get_clockout(int);\r
-#endif // defined(__KERNEL__)\r
-\r
-\r
-#endif // __DANUBE_CGU_DEV_H__2005_07_20__14_26__\r