Changeset 32fb6bce in mainline for uspace/drv/bus/usb/xhci/hc.h
- Timestamp:
- 2017-12-18T22:50:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f70d1c
- Parents:
- 1ea0bbf
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:04:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:50:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.h
r1ea0bbf r32fb6bce 51 51 52 52 typedef struct xhci_hc { 53 /** Common HC device header */ 54 hc_device_t base; 55 53 56 /* MMIO range */ 54 57 addr_range_t mmio_range; … … 86 89 xhci_port_speed_t speeds [16]; 87 90 uint8_t speed_to_psiv [USB_SPEED_MAX]; 91 } xhci_hc_t; 88 92 89 /* TODO: Hack. Figure out a better way. */ 90 hcd_t *hcd; 91 } xhci_hc_t; 93 static inline xhci_hc_t *bus_to_hc(bus_t *bus) 94 { 95 assert(bus); 96 return member_to_inst(bus, xhci_hc_t, bus); 97 } 92 98 93 99 typedef struct xhci_endpoint xhci_endpoint_t; … … 99 105 int hc_irq_code_gen(irq_code_t *, xhci_hc_t *, const hw_res_list_parsed_t *); 100 106 int hc_start(xhci_hc_t *, bool); 101 int hc_schedule(xhci_hc_t *hc, usb_transfer_batch_t *batch);102 int hc_status(xhci_hc_t *, uint32_t *);103 void hc_interrupt(xhci_hc_t *, uint32_t);104 107 void hc_fini(xhci_hc_t *); 105 108 int hc_ring_doorbell(xhci_hc_t *, unsigned, unsigned); … … 113 116 int hc_update_endpoint(xhci_hc_t *, uint32_t, uint8_t, xhci_ep_ctx_t *); 114 117 118 int hc_schedule(usb_transfer_batch_t *batch); 119 int hc_status(bus_t *, uint32_t *); 120 void hc_interrupt(bus_t *, uint32_t); 121 115 122 #endif 116 123
Note:
See TracChangeset
for help on using the changeset viewer.