Changeset ea28272 in mainline for contrib/arch/uspace/srv/devmap/devmap.adl
- Timestamp:
- 2010-12-30T13:43:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d770deb
- Parents:
- d70d80ed (diff), f418e51 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/uspace/srv/devmap/devmap.adl
rd70d80ed rea28272 1 1 interface devmap_driver { 2 2 /* Establish connection (iface is DEVMAP_DRIVER) */ 3 ipcarg_t ipc_m_connect_me_to(in ipcarg_t iface);3 sysarg_t ipc_m_connect_me_to(in sysarg_t iface); 4 4 5 5 /* Register as a new driver */ 6 ipcarg_t driver_register(in_copy string name);6 sysarg_t driver_register(in_copy string name); 7 7 8 8 /* Unregister all devices and the driver itself */ 9 ipcarg_t driver_unregister(void);9 sysarg_t driver_unregister(void); 10 10 11 11 /* Register new device and return handle */ 12 ipcarg_t device_register(in_copy string name, out ipcarg_t handle);12 sysarg_t device_register(in_copy string name, out sysarg_t handle); 13 13 14 14 /* Unregister device */ 15 ipcarg_t device_unregister(in ipcarg_t handle);15 sysarg_t device_unregister(in sysarg_t handle); 16 16 17 17 /* Resolve device name to handle */ 18 ipcarg_t device_get_handle(in ipcarg_t flags, in_copy string name);18 sysarg_t device_get_handle(in sysarg_t flags, in_copy string name); 19 19 20 20 /* Get device name for a given handle */ 21 ipcarg_t device_get_name(in ipcarg_t handle);21 sysarg_t device_get_name(in sysarg_t handle); 22 22 23 23 /* Close connection */ 24 ipcarg_t ipc_m_phone_hungup(void);24 sysarg_t ipc_m_phone_hungup(void); 25 25 protocol: 26 26 [devmap_driver.bp] … … 29 29 interface devmap_client { 30 30 /* Establish connection (iface is DEVMAP_CLIENT) or forward to device (iface is DEVMAP_CONNECT_TO_DEVICE) */ 31 ipcarg_t ipc_m_connect_me_to(in ipcarg_t iface, in ipcarg_t handle);31 sysarg_t ipc_m_connect_me_to(in sysarg_t iface, in sysarg_t handle); 32 32 33 33 /* Resolve device name to handle */ 34 ipcarg_t device_get_handle(in ipcarg_t flags, in_copy string name);34 sysarg_t device_get_handle(in sysarg_t flags, in_copy string name); 35 35 36 36 /* Get device name for a given handle */ 37 ipcarg_t device_get_name(in ipcarg_t handle);37 sysarg_t device_get_name(in sysarg_t handle); 38 38 39 39 /* Clone NULL device */ 40 ipcarg_t device_null_create(out ipcarg_t index);40 sysarg_t device_null_create(out sysarg_t index); 41 41 42 42 /* Destroy NULL device */ 43 ipcarg_t device_null_destroy(in ipcarg_t index);43 sysarg_t device_null_destroy(in sysarg_t index); 44 44 45 45 /* Get number of devices */ 46 ipcarg_t device_get_count(out ipcarg_t count);46 sysarg_t device_get_count(out sysarg_t count); 47 47 48 48 /* Get an array of (device_name, handle) pairs */ 49 ipcarg_t device_get_devices(out_copy stream data);49 sysarg_t device_get_devices(out_copy stream data); 50 50 51 51 /* Close connection */ 52 ipcarg_t ipc_m_phone_hungup(void);52 sysarg_t ipc_m_phone_hungup(void); 53 53 protocol: 54 54 [devmap_client.bp]
Note:
See TracChangeset
for help on using the changeset viewer.