Changeset 924c75e1 in mainline for uspace/srv
- 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/srv
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.