LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
libxenon
drivers
usb
tinyehci
ehci_types.h
Go to the documentation of this file.
1
#ifndef EHCI_TYPES_H
2
#define EHCI_TYPES_H
3
/* linux kernel types needed by our code */
4
#define __iomem
5
6
#include <
xetypes.h
>
7
#include <sys/unistd.h>
8
#include <sys/errno.h>
9
10
#define __u32 u32
11
#define __le32 u32
12
#define dma_addr_t u32
13
#define __GNUG__
14
typedef
unsigned
int
spinlock_t
;
15
typedef
enum
16
{
17
GFP_KERNEL
=1
18
}
gfp_t
;
19
struct
timer_list
20
{
21
int
time
;
22
};
23
24
#define jiffies 0
25
#define likely(x) __builtin_expect(!!(x), 1)
26
#define unlikely(x) __builtin_expect(!!(x), 0)
27
#define container_of(ptr, type, member) ({ \
28
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
29
(type *)( (char *)__mptr - offsetof(type,member) );})
30
31
#undef offsetof
32
#ifdef __compiler_offsetof
33
#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
34
#else
35
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
36
#endif
37
#endif
gfp_t
gfp_t
Definition:
ehci_types.h:16
GFP_KERNEL
@ GFP_KERNEL
Definition:
ehci_types.h:17
spinlock_t
unsigned int spinlock_t
Definition:
ehci_types.h:14
timer_list
Definition:
ehci_types.h:20
timer_list::time
int time
Definition:
ehci_types.h:21
xetypes.h
Generated by
1.9.5