diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-06-28 19:53:41 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-06-28 19:53:41 +0000 |
commit | 240bf1625edcc439b62aea43a0983f8207b541b1 (patch) | |
tree | a2b20d7ed8890acb2de9a5436db408b52a2f1aac /package/uboot-ifxmips/files/cpu/mips/danube/ifx_cgu.h | |
parent | e9e6238a631e0015f4e35688291479d075637d7e (diff) |
move ifxmips uboot to package/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11601 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uboot-ifxmips/files/cpu/mips/danube/ifx_cgu.h')
-rw-r--r-- | package/uboot-ifxmips/files/cpu/mips/danube/ifx_cgu.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/package/uboot-ifxmips/files/cpu/mips/danube/ifx_cgu.h b/package/uboot-ifxmips/files/cpu/mips/danube/ifx_cgu.h new file mode 100644 index 000000000..78fe21d62 --- /dev/null +++ b/package/uboot-ifxmips/files/cpu/mips/danube/ifx_cgu.h @@ -0,0 +1,91 @@ +#ifndef __DANUBE_CGU_DEV_H__2005_07_20__14_26__
+#define __DANUBE_CGU_DEV_H__2005_07_20__14_26__
+
+
+/******************************************************************************
+ Copyright (c) 2002, Infineon Technologies. All rights reserved.
+
+ No Warranty
+ Because the program is licensed free of charge, there is no warranty for
+ the program, to the extent permitted by applicable law. Except when
+ otherwise stated in writing the copyright holders and/or other parties
+ provide the program "as is" without warranty of any kind, either
+ expressed or implied, including, but not limited to, the implied
+ warranties of merchantability and fitness for a particular purpose. The
+ entire risk as to the quality and performance of the program is with
+ you. should the program prove defective, you assume the cost of all
+ necessary servicing, repair or correction.
+
+ In no event unless required by applicable law or agreed to in writing
+ will any copyright holder, or any other party who may modify and/or
+ redistribute the program as permitted above, be liable to you for
+ damages, including any general, special, incidental or consequential
+ damages arising out of the use or inability to use the program
+ (including but not limited to loss of data or data being rendered
+ inaccurate or losses sustained by you or third parties or a failure of
+ the program to operate with any other programs), even if such holder or
+ other party has been advised of the possibility of such damages.
+******************************************************************************/
+
+
+/*
+ * ####################################
+ * Definition
+ * ####################################
+ */
+
+/*
+ * ioctl Command
+ */
+#define CGU_IOC_MAGIC 'u'
+#define CGU_GET_CLOCK_RATES _IOW(CGU_IOC_MAGIC, 0, struct cgu_clock_rates)
+#define CGU_IOC_MAXNR 1
+
+
+/*
+ * ####################################
+ * Data Type
+ * ####################################
+ */
+
+/*
+ * Data Type Used to Call ioctl(GET_CLOCK_RATES)
+ */
+struct cgu_clock_rates {
+ u32 mips0;
+ u32 mips1;
+ u32 cpu;
+ u32 io_region;
+ u32 fpi_bus1;
+ u32 fpi_bus2;
+ u32 pp32;
+ u32 pci;
+ u32 ethernet;
+ u32 usb;
+ u32 clockout0;
+ u32 clockout1;
+ u32 clockout2;
+ u32 clockout3;
+};
+
+
+/*
+ * ####################################
+ * Declaration
+ * ####################################
+ */
+
+#if defined(__KERNEL__)
+ extern u32 cgu_get_mips_clock(int);
+ extern u32 cgu_get_cpu_clock(void);
+ extern u32 cgu_get_io_region_clock(void);
+ extern u32 cgu_get_fpi_bus_clock(int);
+ extern u32 cgu_get_pp32_clock(void);
+ extern u32 cgu_get_pci_clock(void);
+ extern u32 cgu_get_ethernet_clock(void);
+ extern u32 cgu_get_usb_clock(void);
+ extern u32 cgu_get_clockout(int);
+#endif // defined(__KERNEL__)
+
+
+#endif // __DANUBE_CGU_DEV_H__2005_07_20__14_26__
|