Changes in uspace/lib/drv/generic/dev_iface.c [22027b6e:56fb3732] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/dev_iface.c
r22027b6e r56fb3732 36 36 */ 37 37 38 #include <assert.h>39 40 38 #include "dev_iface.h" 41 #include "remote_hw_res.h" 42 #include "remote_char_dev.h" 39 #include "remote_res.h" 40 #include "remote_char.h" 41 #include "remote_usb.h" 42 #include "remote_usbhc.h" 43 43 44 44 static iface_dipatch_table_t remote_ifaces = { 45 45 .ifaces = { 46 &remote_hw_res_iface, 47 &remote_char_dev_iface 46 &remote_res_iface, 47 &remote_char_iface, 48 &remote_usb_iface, 49 &remote_usbhc_iface 48 50 } 49 51 }; 50 52 51 remote_iface_t *get_remote_iface(int idx)52 { 53 remote_iface_t* get_remote_iface(int idx) 54 { 53 55 assert(is_valid_iface_idx(idx)); 54 56 return remote_ifaces.ifaces[idx]; … … 61 63 return NULL; 62 64 } 63 64 65 return rem_iface->methods[iface_method_idx]; 65 }66 67 bool is_valid_iface_idx(int idx)68 {69 return (0 <= idx) && (idx < DEV_IFACE_MAX);70 66 } 71 67
Note:
See TracChangeset
for help on using the changeset viewer.