Changeset eb522e8 in mainline for uspace/lib/drv/include/dev_iface.h
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (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
-
uspace/lib/drv/include/dev_iface.h
r9e2e715 reb522e8 36 36 #define LIBDRV_DEV_IFACE_H_ 37 37 38 #include "driver.h" 38 #include <ipc/common.h> 39 #include <ipc/dev_iface.h> 39 40 40 /* TODO declare device interface structures here */ 41 /* 42 * Device interface 43 */ 44 45 struct ddf_fun; 46 47 /* 48 * First two parameters: device and interface structure registered by the 49 * devices driver. 50 */ 51 typedef void remote_iface_func_t(struct ddf_fun *, void *, ipc_callid_t, 52 ipc_call_t *); 53 typedef remote_iface_func_t *remote_iface_func_ptr_t; 54 typedef void remote_handler_t(struct ddf_fun *, ipc_callid_t, ipc_call_t *); 55 56 typedef struct { 57 size_t method_count; 58 remote_iface_func_ptr_t *methods; 59 } remote_iface_t; 60 61 typedef struct { 62 remote_iface_t *ifaces[DEV_IFACE_COUNT]; 63 } iface_dipatch_table_t; 64 65 extern remote_iface_t *get_remote_iface(int); 66 extern remote_iface_func_ptr_t get_remote_method(remote_iface_t *, sysarg_t); 67 68 69 extern bool is_valid_iface_idx(int); 41 70 42 71 #endif
Note:
See TracChangeset
for help on using the changeset viewer.