Changes in uspace/lib/c/include/ipc/devman.h [64d2b10:0b5a4131] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/devman.h
r64d2b10 r0b5a4131 30 30 * @{ 31 31 */ 32 32 33 33 #ifndef LIBC_IPC_DEVMAN_H_ 34 34 #define LIBC_IPC_DEVMAN_H_ 35 35 36 #include <ipc/common.h>37 36 #include <adt/list.h> 38 #include <malloc.h> 39 #include <mem.h> 37 #include <ipc/ipc.h> 38 #include <stdlib.h> 39 #include <stdio.h> 40 #include <str.h> 40 41 41 #define DEVMAN_NAME_MAXLEN 42 #define DEVMAN_NAME_MAXLEN 256 42 43 43 typedef sysarg_t devman_handle_t;44 typedef ipcarg_t devman_handle_t; 44 45 45 46 /** Ids of device models used for device-to-driver matching. … … 66 67 } match_id_list_t; 67 68 68 static inline match_id_t *create_match_id(void) 69 70 static inline match_id_t * create_match_id() 69 71 { 70 72 match_id_t *id = malloc(sizeof(match_id_t)); … … 83 85 } 84 86 85 static inline void add_match_id(match_id_list_t *ids, match_id_t *id) 87 static inline void add_match_id(match_id_list_t *ids, match_id_t *id) 86 88 { 87 89 match_id_t *mid = NULL; 88 link_t *link = ids->ids.next; 90 link_t *link = ids->ids.next; 89 91 90 92 while (link != &ids->ids) { … … 96 98 } 97 99 98 list_insert_before(&id->link, link); 100 list_insert_before(&id->link, link); 99 101 } 100 102 … … 121 123 DEVMAN_CLIENT, 122 124 DEVMAN_CONNECT_TO_DEVICE, 123 DEVMAN_CONNECT_FROM_DEVMAP,124 125 DEVMAN_CONNECT_TO_PARENTS_DEVICE 125 126 } devman_interface_t;
Note:
See TracChangeset
for help on using the changeset viewer.