Changeset 296d22fc in mainline for uspace/lib/usbhost/include/usb/host/bus.h
- Timestamp:
- 2018-01-25T02:05:57Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa4b12d5
- Parents:
- d369b3b
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-25 02:03:48)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/bus.h
rd369b3b r296d22fc 102 102 */ 103 103 struct bus_ops { 104 /* Undefined operations will be delegated to parent ops */105 const bus_ops_t *parent;106 107 104 /* Global operations on the bus */ 108 105 void (*interrupt)(bus_t *, uint32_t); … … 126 123 void (*batch_destroy)(usb_transfer_batch_t *); /**< Optional */ 127 124 }; 128 129 /**130 * Use this macro to lookup virtual function.131 */132 #define BUS_OPS_LOOKUP(start, fn) ({ bus_ops_t const * ops = (start); while (ops && ops->fn == NULL) ops = ops->parent; ops; })133 125 134 126 /** Endpoint management structure */
Note:
See TracChangeset
for help on using the changeset viewer.