Changes in uspace/lib/drv/include/dev_iface.h [22027b6e:7a252ec8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/dev_iface.h
r22027b6e r7a252ec8 36 36 #define LIBDRV_DEV_IFACE_H_ 37 37 38 #include <ipc/dev_iface.h>38 #include "driver.h" 39 39 40 /* 41 * Device interface 42 */ 43 44 struct device; 45 46 /* 47 * First two parameters: device and interface structure registered by the 48 * devices driver. 49 */ 50 typedef void remote_iface_func_t(struct device *, void *, ipc_callid_t, 51 ipc_call_t *); 52 typedef remote_iface_func_t *remote_iface_func_ptr_t; 53 typedef void remote_handler_t(struct device *, ipc_callid_t, ipc_call_t *); 54 55 typedef struct { 56 size_t method_count; 57 remote_iface_func_ptr_t *methods; 58 } remote_iface_t; 59 60 typedef struct { 61 remote_iface_t *ifaces[DEV_IFACE_COUNT]; 62 } iface_dipatch_table_t; 63 64 extern remote_iface_t *get_remote_iface(int); 65 extern remote_iface_func_ptr_t get_remote_method(remote_iface_t *, sysarg_t); 66 67 68 extern bool is_valid_iface_idx(int); 40 /* TODO declare device interface structures here */ 69 41 70 42 #endif
Note:
See TracChangeset
for help on using the changeset viewer.