Rev 2594 | Rev 3076 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2594 | Rev 2635 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | #define DEVMAP_NAME_MAXLEN 512 |
39 | #define DEVMAP_NAME_MAXLEN 512 |
40 | 40 | ||
41 | typedef enum { |
41 | typedef enum { |
42 | DEVMAP_DRIVER_REGISTER = IPC_FIRST_USER_METHOD, |
42 | DEVMAP_DRIVER_REGISTER = IPC_FIRST_USER_METHOD, |
43 | DEVMAP_DRIVER_UNREGISTER, |
43 | DEVMAP_DRIVER_UNREGISTER, |
44 | DEVMAP_DEVICE_CONNECT_ME_TO, |
- | |
45 | DEVMAP_DEVICE_REGISTER, |
44 | DEVMAP_DEVICE_REGISTER, |
46 | DEVMAP_DEVICE_UNREGISTER, |
45 | DEVMAP_DEVICE_UNREGISTER, |
47 | DEVMAP_DEVICE_GET_NAME, |
46 | DEVMAP_DEVICE_GET_NAME, |
48 | DEVMAP_DEVICE_GET_HANDLE |
47 | DEVMAP_DEVICE_GET_HANDLE |
49 | } devmap_request_t; |
48 | } devmap_request_t; |
Line 80... | Line 79... | ||
80 | char *name; |
79 | char *name; |
81 | /** Device driver handling this device */ |
80 | /** Device driver handling this device */ |
82 | devmap_driver_t *driver; |
81 | devmap_driver_t *driver; |
83 | } devmap_device_t; |
82 | } devmap_device_t; |
84 | 83 | ||
85 | /** Interface provided by DevMap. |
84 | /** Interface provided by devmap. |
86 | * |
- | |
- | 85 | * Every process that connects to devmap must ask one of following |
|
- | 86 | * interfaces otherwise connection will be refused. |
|
87 | */ |
87 | */ |
88 | typedef enum { |
88 | typedef enum { |
- | 89 | /** Connect as device driver */ |
|
89 | DEVMAP_DRIVER = 1, |
90 | DEVMAP_DRIVER = 1, |
- | 91 | /** Connect as client */ |
|
90 | DEVMAP_CLIENT |
92 | DEVMAP_CLIENT, |
- | 93 | /** Create new connection to instance of device that |
|
- | 94 | * is specified by second argument of call. */ |
|
- | 95 | DEVMAP_CONNECT_TO_DEVICE |
|
91 | } devmap_interface_t; |
96 | } devmap_interface_t; |
92 | 97 | ||
93 | #endif |
98 | #endif |
94 | 99 |