Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

dwc_otg_os_dep.h

Go to the documentation of this file.
00001 #ifndef _DWC_OS_DEP_H_
00002 #define _DWC_OS_DEP_H_
00003 
00011 #include <linux/kernel.h>
00012 #include <linux/module.h>
00013 #include <linux/moduleparam.h>
00014 #include <linux/init.h>
00015 #include <linux/device.h>
00016 #include <linux/errno.h>
00017 #include <linux/types.h>
00018 #include <linux/slab.h>
00019 #include <linux/list.h>
00020 #include <linux/interrupt.h>
00021 #include <linux/ctype.h>
00022 #include <linux/string.h>
00023 #include <linux/dma-mapping.h>
00024 #include <linux/jiffies.h>
00025 #include <linux/delay.h>
00026 #include <linux/timer.h>
00027 #include <linux/workqueue.h>
00028 #include <linux/stat.h>
00029 #include <linux/pci.h>
00030 
00031 #include <linux/version.h>
00032 
00033 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
00034 # include <linux/irq.h>
00035 #endif
00036 
00037 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
00038 # include <linux/usb/ch9.h>
00039 #else
00040 # include <linux/usb_ch9.h>
00041 #endif
00042 
00043 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
00044 # include <linux/usb/gadget.h>
00045 #else
00046 # include <linux/usb_gadget.h>
00047 #endif
00048 
00049 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
00050 # include <asm/irq.h>
00051 #endif
00052 
00053 #ifdef PCI_INTERFACE
00054 # include <asm/io.h>
00055 #endif
00056 
00057 #ifdef LM_INTERFACE
00058 # include <asm/unaligned.h>
00059 # include <asm/sizes.h>
00060 # include <asm/param.h>
00061 # include <asm/io.h>
00062 # include <asm/arch/lm.h>
00063 # include <asm/arch/irqs.h>
00064 # include <asm/arch/regs-irq.h>
00065 #endif
00066 
00068 #define DWC_OS_PAGE_SIZE        PAGE_SIZE
00069 
00070 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
00071 typedef int gfp_t;
00072 #endif
00073 
00074 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
00075 # define IRQF_SHARED SA_SHIRQ
00076 #endif
00077 
00078 typedef struct os_dependent {
00080         void *base;
00081 
00083         uint32_t reg_offset;
00084 
00085 #ifdef LM_INTERFACE
00086         struct lm_device *lmdev;
00087 #elif  defined(PCI_INTERFACE)
00088         struct pci_dev *pcidev;
00089 
00091         resource_size_t rsrc_start;
00092         
00094         resource_size_t rsrc_len;
00095 #endif
00096 } os_dependent_t;
00097 
00098 #ifdef __cplusplus
00099 }
00100 #endif
00101 
00102 #endif /* _DWC_OS_DEP_H_ */

Generated on Thu Oct 27 03:56:37 2011 for DesignWare USB 2.0 OTG Controller (DWC_otg) Device Driver by  doxygen 1.3.9.1