#ifndef EHCI_TYPES_H #define EHCI_TYPES_H /* linux kernel types needed by our code */ #define __iomem //typedef unsigned long uint32_t; #include "types.h" #define __u32 u32 #define __le32 u32 #define dma_addr_t u32 #define __GNUG__ #define size_t u32 typedef u32 spinlock_t; typedef enum { GFP_KERNEL=1 }gfp_t; struct timer_list { int time; }; enum{ ENODEV =1, ETIMEDOUT, EINVAL, ENOMEM, EBADDATA, ETRANSERR, EPORTDOWN, }; #define jiffies 0 #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) #undef offsetof #ifdef __compiler_offsetof #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) #else #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #endif #endif