Changes in contrib/arch/uspace/srv/devmap/devmap.adl [07fdf203:afe34be] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/uspace/srv/devmap/devmap.adl
r07fdf203 rafe34be 1 interface dev ice_mapper_driver {1 interface devmap_driver { 2 2 /* Establish connection (iface is DEVMAP_DRIVER) */ 3 3 ipcarg_t ipc_m_connect_me_to(in ipcarg_t iface); 4 4 5 5 /* Register as a new driver */ 6 ipcarg_t driver_register( void);6 ipcarg_t driver_register(in_copy string name); 7 7 8 8 /* Unregister all devices and the driver itself */ … … 10 10 11 11 /* Register new device and return handle */ 12 ipcarg_t device_register( out ipcarg_t handle);12 ipcarg_t device_register(in_copy string name, out ipcarg_t handle); 13 13 14 14 /* Unregister device */ … … 16 16 17 17 /* Resolve device name to handle */ 18 ipcarg_t device_get_handle(in ipcarg_t flags );18 ipcarg_t device_get_handle(in ipcarg_t flags, in_copy string name); 19 19 20 20 /* Get device name for a given handle */ 21 21 ipcarg_t device_get_name(in ipcarg_t handle); 22 22 23 /* Transfer driver or device name */24 ipcarg_t ipc_m_data_write(in ipcarg_t src_addr, in ipcarg_t src_size, out ipcarg_t dst_addr, out ipcarg_t dst_size);25 26 23 /* Close connection */ 27 24 ipcarg_t ipc_m_phone_hungup(void); 28 25 protocol: 29 [dev ice_mapper_driver.bp]26 [devmap_driver.bp] 30 27 }; 31 28 32 interface dev ice_mapper_client {29 interface devmap_client { 33 30 /* Establish connection (iface is DEVMAP_CLIENT) or forward to device (iface is DEVMAP_CONNECT_TO_DEVICE) */ 34 31 ipcarg_t ipc_m_connect_me_to(in ipcarg_t iface, in ipcarg_t handle); 35 32 36 33 /* Resolve device name to handle */ 37 ipcarg_t device_get_handle(in ipcarg_t flags );34 ipcarg_t device_get_handle(in ipcarg_t flags, in_copy string name); 38 35 39 36 /* Get device name for a given handle */ … … 50 47 51 48 /* Get an array of (device_name, handle) pairs */ 52 ipcarg_t device_get_devices(void) 53 54 /* Transfer device name from client */ 55 ipcarg_t ipc_m_data_write(in ipcarg_t src_addr, in ipcarg_t src_size, out ipcarg_t dst_addr, out ipcarg_t dst_size); 56 57 /* Transfer (device_name, handle) pairs to client */ 58 ipcarg_t ipc_m_data_read(in ipcarg_t src_addr, in ipcarg_t src_size, out ipcarg_t dst_addr, out ipcarg_t dst_size); 49 ipcarg_t device_get_devices(out_copy stream data); 59 50 60 51 /* Close connection */ 61 52 ipcarg_t ipc_m_phone_hungup(void); 62 53 protocol: 63 [dev ice_mapper_client.bp]54 [devmap_client.bp] 64 55 65 56 }; … … 67 58 frame devmap { 68 59 provides: 69 dev ice_mapper_driver dm_driver;70 dev ice_mapper_client dm_client;60 devmap_driver devmap_driver; 61 devmap_client devmap_client; 71 62 requires: 72 [/lib/libc/iface.requires] 63 [/uspace/lib/libc/requires] 64 ns ns; 65 rd rd; 66 console console; 67 initialization: 68 !ns.ipc_m_connect_to_me /* devmap */ 73 69 protocol: 74 [ devmap.bp]70 [/uspace/lib/libc/protocol] 75 71 };
Note:
See TracChangeset
for help on using the changeset viewer.