4 #include <asm/hypervisor.h>
28 #define LDC_MODE_RAW 0x00
29 #define LDC_MODE_UNRELIABLE 0x01
30 #define LDC_MODE_RESERVED 0x02
31 #define LDC_MODE_STREAM 0x03
34 #define LDC_DEBUG_HS 0x01
35 #define LDC_DEBUG_STATE 0x02
36 #define LDC_DEBUG_RX 0x04
37 #define LDC_DEBUG_TX 0x08
38 #define LDC_DEBUG_DATA 0x10
41 #define LDC_EVENT_RESET 0x01
42 #define LDC_EVENT_UP 0x02
43 #define LDC_EVENT_DATA_READY 0x04
45 #define LDC_STATE_INVALID 0x00
46 #define LDC_STATE_INIT 0x01
47 #define LDC_STATE_BOUND 0x02
48 #define LDC_STATE_READY 0x03
49 #define LDC_STATE_CONNECTED 0x04
79 #define LDC_MAP_SHADOW 0x01
80 #define LDC_MAP_DIRECT 0x02
81 #define LDC_MAP_IO 0x04
82 #define LDC_MAP_R 0x08
83 #define LDC_MAP_W 0x10
84 #define LDC_MAP_X 0x20
85 #define LDC_MAP_RW (LDC_MAP_R | LDC_MAP_W)
86 #define LDC_MAP_RWX (LDC_MAP_R | LDC_MAP_W | LDC_MAP_X)
87 #define LDC_MAP_ALL 0x03f
98 unsigned int map_perm);
101 void *
buf,
unsigned int len,
103 unsigned int map_perm);
109 void *
buf,
unsigned int len,
unsigned long offset,
112 static inline int ldc_get_dring_entry(
struct ldc_channel *
lp,
113 void *
buf,
unsigned int len,
121 static inline int ldc_put_dring_entry(
struct ldc_channel *
lp,
122 void *
buf,
unsigned int len,
132 int *ncookies,
unsigned int map_perm);