Changeset 1ffa73b in mainline for uspace/lib/drv/generic/dev_iface.c
- Timestamp:
- 2011-01-10T16:33:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b207803
- Parents:
- 863d45e (diff), 6610565b (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/generic/dev_iface.c
r863d45e r1ffa73b 36 36 */ 37 37 38 #include <assert.h> 39 38 40 #include "dev_iface.h" 39 #include "remote_ res.h"40 #include "remote_char .h"41 #include "remote_hw_res.h" 42 #include "remote_char_dev.h" 41 43 #include "remote_usb.h" 42 44 #include "remote_usbhc.h" … … 44 46 static iface_dipatch_table_t remote_ifaces = { 45 47 .ifaces = { 46 &remote_ res_iface,47 &remote_char_ iface,48 &remote_hw_res_iface, 49 &remote_char_dev_iface, 48 50 &remote_usb_iface, 49 51 &remote_usbhc_iface … … 51 53 }; 52 54 53 remote_iface_t *get_remote_iface(int idx)54 { 55 remote_iface_t *get_remote_iface(int idx) 56 { 55 57 assert(is_valid_iface_idx(idx)); 56 58 return remote_ifaces.ifaces[idx]; … … 63 65 return NULL; 64 66 } 67 65 68 return rem_iface->methods[iface_method_idx]; 69 } 70 71 bool is_valid_iface_idx(int idx) 72 { 73 return (0 <= idx) && (idx < DEV_IFACE_MAX); 66 74 } 67 75
Note:
See TracChangeset
for help on using the changeset viewer.