Changeset 924c75e1 in mainline
- Timestamp:
- 2010-02-24T22:09:12Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 729fa2d6
- Parents:
- 0c3666d
- Location:
- uspace
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
r0c3666d r924c75e1 49 49 srv/devmap \ 50 50 srv/devman \ 51 srv/drivers/root \ 51 52 srv/loader \ 52 53 srv/ns \ -
uspace/lib/libc/include/ipc/devman.h
r0c3666d r924c75e1 36 36 #include <ipc/ipc.h> 37 37 38 typedef enum { 39 DEVMAN_DRIVER = 1, 40 DEVMAN_CLIENT, 41 DEVMAN_CONNECT_TO_DEVICE 42 } devman_interface_t; 38 43 39 44 typedef enum { … … 41 46 DEVMAN_ADD_CHILD_DEVICE 42 47 43 } devman_request_t; 48 } driver_to_devman_t; 49 50 typedef enum { 51 DRIVER_ADD_DEVICE = IPC_FIRST_USER_METHOD 52 53 } devman_to_driver_t; 44 54 45 55 -
uspace/srv/devman/devman.h
r0c3666d r924c75e1 201 201 list_initialize(&drv->match_ids.ids); 202 202 list_initialize(&drv->devices); 203 fibril_mutex_initialize(&drv->driver_mutex); 203 204 } 204 205 -
uspace/srv/devman/main.c
r0c3666d r924c75e1 63 63 * 64 64 */ 65 static void devman_connection (ipc_callid_t iid, ipc_call_t *icall)65 static void devman_connection_driver(ipc_callid_t iid, ipc_call_t *icall) 66 66 { 67 67 ipc_callid_t callid; … … 85 85 break; 86 86 } 87 } 88 } 89 90 /** Function for handling connections to device manager. 91 * 92 */ 93 static void devman_connection(ipc_callid_t iid, ipc_call_t *icall) 94 { 95 // Select interface 96 switch ((ipcarg_t) (IPC_GET_ARG1(*icall))) { 97 case DEVMAN_DRIVER: 98 devman_connection_driver(iid, icall); 99 break; 100 /*case DEVMAN_CLIENT: 101 devmap_connection_client(iid, icall); 102 break; 103 case DEVMAN_CONNECT_TO_DEVICE: 104 // Connect client to selected device 105 devmap_forward(iid, icall); 106 break;*/ 107 default: 108 /* No such interface */ 109 ipc_answer_0(iid, ENOENT); 87 110 } 88 111 }
Note:
See TracChangeset
for help on using the changeset viewer.