Changeset 6da6039 in mainline for uspace/drv/bus/usb/xhci/commands.c
- Timestamp:
- 2017-08-20T23:53:22Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab5a0830
- Parents:
- 3d8a3bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.c
r3d8a3bd r6da6039 170 170 } 171 171 172 static inline int add_cmd(xhci_hc_t *hc, xhci_cmd_t *cmd) 173 { 174 if (cmd == NULL) { 175 cmd = xhci_alloc_command(); 176 if (cmd == NULL) 177 return ENOMEM; 178 179 cmd->has_owner = false; 180 } 172 static inline void add_cmd(xhci_hc_t *hc, xhci_cmd_t *cmd) 173 { 174 assert(cmd); 181 175 182 176 list_append(&cmd->link, &hc->commands); 183 177 cmd->trb = hc->command_ring.enqueue_trb; 184 185 return EOK;186 178 } 187 179
Note:
See TracChangeset
for help on using the changeset viewer.