Changeset 1433ecda in mainline for uspace/drv/bus/usb/xhci
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 4 edited
-
device.c (modified) (2 diffs)
-
hw_struct/common.h (modified) (3 diffs)
-
scratchpad.c (modified) (1 diff)
-
transfers.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/device.c
r47b2d7e3 r1433ecda 159 159 if (dev->base.speed == USB_SPEED_HIGH) { 160 160 dev->tt_think_time = 8 + 161 8 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_8) +162 16 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_16);161 8 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_8) + 162 16 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_16); 163 163 } 164 164 … … 222 222 if ((err = hc_get_device_desc(dev, &desc))) { 223 223 usb_log_error("Device(%d): failed to get device " 224 "descriptor: %s", dev->address, str_error(err));224 "descriptor: %s", dev->address, str_error(err)); 225 225 goto err_address; 226 226 } -
uspace/drv/bus/usb/xhci/hw_struct/common.h
r47b2d7e3 r1433ecda 70 70 */ 71 71 static inline void xhci_dword_set_bits(xhci_dword_t *storage, uint32_t value, 72 unsigned hi, unsigned lo)72 unsigned hi, unsigned lo) 73 73 { 74 74 const uint32_t mask = host2xhci(32, BIT_RANGE(uint32_t, hi, lo)); … … 86 86 87 87 static inline void xhci_qword_set_bits(xhci_qword_t *storage, uint64_t value, 88 unsigned hi, unsigned lo)88 unsigned hi, unsigned lo) 89 89 { 90 90 const uint64_t mask = host2xhci(64, BIT_RANGE(uint64_t, hi, lo)); … … 94 94 95 95 static inline int xhci_reg_wait(xhci_dword_t *reg, uint32_t mask, 96 uint32_t expected)96 uint32_t expected) 97 97 { 98 98 mask = host2xhci(32, mask); -
uspace/drv/bus/usb/xhci/scratchpad.c
r47b2d7e3 r1433ecda 77 77 for (unsigned i = 0; i < num_bufs; ++i) { 78 78 array[i] = host2xhci(64, dma_buffer_phys(&hc->scratchpad_array, 79 base + i * PAGE_SIZE));79 base + i * PAGE_SIZE)); 80 80 } 81 81 -
uspace/drv/bus/usb/xhci/transfers.h
r47b2d7e3 r1433ecda 53 53 } xhci_transfer_t; 54 54 55 extern usb_transfer_batch_t *xhci_transfer_create(endpoint_t *);55 extern usb_transfer_batch_t *xhci_transfer_create(endpoint_t *); 56 56 extern errno_t xhci_transfer_schedule(usb_transfer_batch_t *); 57 57
Note:
See TracChangeset
for help on using the changeset viewer.
