Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/commands.h
- Timestamp:
- 2018-02-03T02:14:26Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb862fd
- Parents:
- 961a5ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.h
r961a5ee r45457265 125 125 126 126 /* Command handling control */ 127 extern int xhci_init_commands(xhci_hc_t *);127 extern errno_t xhci_init_commands(xhci_hc_t *); 128 128 extern void xhci_fini_commands(xhci_hc_t *); 129 129 … … 133 133 extern void xhci_start_command_ring(xhci_hc_t *); 134 134 135 extern int xhci_handle_command_completion(xhci_hc_t *, xhci_trb_t *);135 extern errno_t xhci_handle_command_completion(xhci_hc_t *, xhci_trb_t *); 136 136 137 137 /* Command lifecycle */ … … 140 140 141 141 /* Issuing commands */ 142 extern int xhci_cmd_sync(xhci_hc_t *, xhci_cmd_t *);143 extern int xhci_cmd_sync_fini(xhci_hc_t *, xhci_cmd_t *);144 extern int xhci_cmd_async_fini(xhci_hc_t *, xhci_cmd_t *);142 extern errno_t xhci_cmd_sync(xhci_hc_t *, xhci_cmd_t *); 143 extern errno_t xhci_cmd_sync_fini(xhci_hc_t *, xhci_cmd_t *); 144 extern errno_t xhci_cmd_async_fini(xhci_hc_t *, xhci_cmd_t *); 145 145 146 static inline int xhci_cmd_sync_inline_wrapper(xhci_hc_t *hc, xhci_cmd_t cmd)146 static inline errno_t xhci_cmd_sync_inline_wrapper(xhci_hc_t *hc, xhci_cmd_t cmd) 147 147 { 148 148 /* Poor man's xhci_cmd_init (everything else is zeroed) */ … … 152 152 153 153 /* Issue the command */ 154 const int err = xhci_cmd_sync(hc, &cmd);154 const errno_t err = xhci_cmd_sync(hc, &cmd); 155 155 xhci_cmd_fini(&cmd); 156 156 … … 166 166 * 167 167 * Example: 168 * int err = xhci_cmd_sync_inline(hc, DISABLE_SLOT, .slot_id = 42);168 * errno_t err = xhci_cmd_sync_inline(hc, DISABLE_SLOT, .slot_id = 42); 169 169 */ 170 170
Note:
See TracChangeset
for help on using the changeset viewer.