Rev 2550 | Rev 2622 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2550 | Rev 2614 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | #ifndef KERN_IPC_H_ |
35 | #ifndef KERN_IPC_H_ |
| 36 | #define KERN_IPC_H_ |
36 | #define KERN_IPC_H_ |
| 37 | 37 | ||
| 38 | /* Length of data being transfered with IPC call */ |
38 | /* Length of data being transfered with IPC call */ |
| 39 | /* - the uspace may not be able to utilize full length */ |
39 | /* - the uspace may not be able to utilize full length */ |
| 40 | #define IPC_CALL_LEN 4 |
40 | #define IPC_CALL_LEN 6 |
| 41 | 41 | ||
| 42 | /** Maximum active async calls per thread */ |
42 | /** Maximum active async calls per thread */ |
| 43 | #ifdef CONFIG_DEBUG |
43 | #ifdef CONFIG_DEBUG |
| 44 | #define IPC_MAX_ASYNC_CALLS 4 |
44 | #define IPC_MAX_ASYNC_CALLS 4 |
| 45 | #else |
45 | #else |
| Line 80... | Line 80... | ||
| 80 | #define IPC_SET_RETVAL(data, retval) ((data).args[0] = (retval)) |
80 | #define IPC_SET_RETVAL(data, retval) ((data).args[0] = (retval)) |
| 81 | #define IPC_SET_METHOD(data, val) ((data).args[0] = (val)) |
81 | #define IPC_SET_METHOD(data, val) ((data).args[0] = (val)) |
| 82 | #define IPC_SET_ARG1(data, val) ((data).args[1] = (val)) |
82 | #define IPC_SET_ARG1(data, val) ((data).args[1] = (val)) |
| 83 | #define IPC_SET_ARG2(data, val) ((data).args[2] = (val)) |
83 | #define IPC_SET_ARG2(data, val) ((data).args[2] = (val)) |
| 84 | #define IPC_SET_ARG3(data, val) ((data).args[3] = (val)) |
84 | #define IPC_SET_ARG3(data, val) ((data).args[3] = (val)) |
| - | 85 | #define IPC_SET_ARG4(data, val) ((data).args[4] = (val)) |
|
| - | 86 | #define IPC_SET_ARG5(data, val) ((data).args[5] = (val)) |
|
| 85 | 87 | ||
| 86 | #define IPC_GET_METHOD(data) ((data).args[0]) |
88 | #define IPC_GET_METHOD(data) ((data).args[0]) |
| 87 | #define IPC_GET_RETVAL(data) ((data).args[0]) |
89 | #define IPC_GET_RETVAL(data) ((data).args[0]) |
| 88 | 90 | ||
| 89 | #define IPC_GET_ARG1(data) ((data).args[1]) |
91 | #define IPC_GET_ARG1(data) ((data).args[1]) |
| 90 | #define IPC_GET_ARG2(data) ((data).args[2]) |
92 | #define IPC_GET_ARG2(data) ((data).args[2]) |
| 91 | #define IPC_GET_ARG3(data) ((data).args[3]) |
93 | #define IPC_GET_ARG3(data) ((data).args[3]) |
| - | 94 | #define IPC_GET_ARG4(data) ((data).args[4]) |
|
| - | 95 | #define IPC_GET_ARG5(data) ((data).args[5]) |
|
| 92 | 96 | ||
| 93 | /* Well known phone descriptors */ |
97 | /* Well known phone descriptors */ |
| 94 | #define PHONE_NS 0 |
98 | #define PHONE_NS 0 |
| 95 | 99 | ||
| 96 | /* System-specific methods - only through special syscalls |
100 | /* System-specific methods - only through special syscalls |