Changeset 04df063 in mainline for uspace/drv/bus/usb/xhci/commands.h
- Timestamp:
- 2017-10-02T19:16:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1f76b7d
- Parents:
- 370a1c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.h
r370a1c8 r04df063 50 50 xhci_trb_t trb; 51 51 uintptr_t trb_phys; 52 xhci_input_ctx_t *ictx; 52 53 53 uint32_t slot_id; 54 54 uint32_t status; 55 55 56 56 bool completed; 57 bool has_owner;58 bool owns_trb;59 57 60 /* Will b e unlocked after command completes*/58 /* Will broadcast after command completes. */ 61 59 fibril_mutex_t completed_mtx; 62 60 fibril_condvar_t completed_cv; … … 65 63 int xhci_init_commands(xhci_hc_t *); 66 64 void xhci_fini_commands(xhci_hc_t *); 67 int xhci_wait_for_command(xhci_cmd_t *, uint32_t); 68 xhci_cmd_t *xhci_ alloc_command(void);65 66 xhci_cmd_t *xhci_cmd_alloc(void); 69 67 void xhci_cmd_init(xhci_cmd_t *); 70 void xhci_free_command(xhci_cmd_t *); 68 int xhci_cmd_wait(xhci_cmd_t *, suseconds_t); 69 void xhci_cmd_fini(xhci_cmd_t *); 70 void xhci_cmd_free(xhci_cmd_t *); 71 71 72 72 void xhci_stop_command_ring(xhci_hc_t *); … … 77 77 int xhci_send_enable_slot_command(xhci_hc_t *, xhci_cmd_t *); 78 78 int xhci_send_disable_slot_command(xhci_hc_t *, xhci_cmd_t *); 79 int xhci_send_address_device_command(xhci_hc_t *, xhci_cmd_t * );80 int xhci_send_configure_endpoint_command(xhci_hc_t *, xhci_cmd_t * );81 int xhci_send_evaluate_context_command(xhci_hc_t *, xhci_cmd_t * );79 int xhci_send_address_device_command(xhci_hc_t *, xhci_cmd_t *, xhci_input_ctx_t *); 80 int xhci_send_configure_endpoint_command(xhci_hc_t *, xhci_cmd_t *, xhci_input_ctx_t *); 81 int xhci_send_evaluate_context_command(xhci_hc_t *, xhci_cmd_t *, xhci_input_ctx_t *); 82 82 int xhci_send_reset_endpoint_command(xhci_hc_t *, xhci_cmd_t *, uint32_t, uint8_t); 83 83 int xhci_send_stop_endpoint_command(xhci_hc_t *, xhci_cmd_t *, uint32_t, uint8_t);
Note:
See TracChangeset
for help on using the changeset viewer.