Changeset a35b458 in mainline for uspace/drv/bus/usb
- Timestamp:
- 2018-03-02T20:10:49Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- Location:
- uspace/drv/bus/usb
- Files:
-
- 10 edited
-
ehci/ehci_bus.h (modified) (1 diff)
-
ohci/hc.h (modified) (1 diff)
-
ohci/ohci_rh.c (modified) (1 diff)
-
usbhub/port.c (modified) (1 diff)
-
usbmid/explore.c (modified) (1 diff)
-
vhc/conndev.c (modified) (4 diffs)
-
vhc/hub/virthubops.c (modified) (2 diffs)
-
vhc/transfer.c (modified) (1 diff)
-
xhci/debug.c (modified) (1 diff)
-
xhci/rh.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_bus.h
r3061bc1 ra35b458 51 51 /** EHCI endpoint descriptor, backed by dma_buffer */ 52 52 qh_t *qh; 53 53 54 54 dma_buffer_t dma_buffer; 55 55 -
uspace/drv/bus/usb/ohci/hc.h
r3061bc1 ra35b458 64 64 /** Memory mapped I/O registers area */ 65 65 ohci_regs_t *registers; 66 66 67 67 /** Host controller communication area structure */ 68 68 hcca_t *hcca; -
uspace/drv/bus/usb/ohci/ohci_rh.c
r3061bc1 ra35b458 409 409 TEST_SIZE_INIT(0, port, hub); 410 410 const unsigned feature = uint16_usb2host(setup_packet->value); 411 411 412 412 switch (feature) { 413 413 case USB_HUB_FEATURE_PORT_POWER: /*8*/ 414 414 { 415 415 const uint32_t rhda = OHCI_RD(hub->registers->rh_desc_a); 416 416 417 417 /* No power switching */ 418 418 if (rhda & RHDA_NPS_FLAG) 419 419 return EOK; 420 420 421 421 /* Ganged power switching, one port powers all */ 422 422 if (!(rhda & RHDA_PSM_FLAG)) { -
uspace/drv/bus/usb/usbhub/port.c
r3061bc1 ra35b458 87 87 return; 88 88 } 89 89 90 90 const errno_t err = usbhc_device_remove(exch, port->port_number); 91 91 if (err) -
uspace/drv/bus/usb/usbmid/explore.c
r3061bc1 ra35b458 164 164 return rc; 165 165 } 166 166 167 167 /* Create driver soft-state. */ 168 168 usb_mid_t *usb_mid = usb_device_data_alloc(dev, sizeof(usb_mid_t)); -
uspace/drv/bus/usb/vhc/conndev.c
r3061bc1 ra35b458 57 57 { 58 58 async_exch_t *exch = async_exchange_begin(sess); 59 59 60 60 aid_t opening_request = async_send_0(exch, IPC_M_USBVIRT_GET_NAME, NULL); 61 61 if (opening_request == 0) { … … 63 63 return; 64 64 } 65 65 66 66 ipc_call_t data_request_call; 67 67 aid_t data_request = async_data_read(exch, plugged_device_name, 68 68 PLUGGED_DEVICE_NAME_MAXLEN, &data_request_call); 69 69 70 70 async_exchange_end(exch); 71 71 72 72 if (data_request == 0) { 73 73 async_forget(opening_request); 74 74 return; 75 75 } 76 76 77 77 errno_t data_request_rc; 78 78 errno_t opening_request_rc; 79 79 async_wait_for(data_request, &data_request_rc); 80 80 async_wait_for(opening_request, &opening_request_rc); 81 81 82 82 if ((data_request_rc != EOK) || (opening_request_rc != EOK)) 83 83 return; 84 84 85 85 size_t len = IPC_GET_ARG2(data_request_call); 86 86 plugged_device_name[len] = 0; … … 97 97 { 98 98 vhc_data_t *vhc = ddf_fun_data_get(fun); 99 99 100 100 async_sess_t *callback = 101 101 async_callback_receive_start(EXCHANGE_SERIALIZE, icall); 102 102 103 103 if (callback) { 104 104 errno_t rc = vhc_virtdev_plug(vhc, callback, &plugged_device_handle); … … 108 108 return; 109 109 } 110 110 111 111 async_answer_0(icallid, EOK); 112 112 113 113 receive_device_name(callback); 114 114 115 115 usb_log_info("New virtual device `%s' (id: %" PRIxn ").", 116 116 plugged_device_name, plugged_device_handle); -
uspace/drv/bus/usb/vhc/hub/virthubops.c
r3061bc1 ra35b458 73 73 return ESTALL; 74 74 } 75 75 76 76 hub_t *hub = dev->device_data; 77 77 … … 94 94 *actual_size = 0; 95 95 } 96 96 97 97 hub->signal_changes = false; 98 98 -
uspace/drv/bus/usb/vhc/transfer.c
r3061bc1 ra35b458 228 228 229 229 fibril_mutex_unlock(&vhc->guard); 230 230 231 231 if (targets > 1) 232 232 usb_log_warning("Transfer would be accepted by more devices!"); -
uspace/drv/bus/usb/xhci/debug.c
r3061bc1 ra35b458 301 301 static const char speed_exp [] = " KMG"; 302 302 static const char *psi_types [] = { "", " rsvd", " RX", " TX" }; 303 303 304 304 usb_log_debug("Speed %u%s: %5u %cb/s, %s", 305 305 XHCI_REG_RD(psi, XHCI_PSI_PSIV), -
uspace/drv/bus/usb/xhci/rh.c
r3061bc1 ra35b458 273 273 if (status != 0) 274 274 usb_log_debug("RH port %u change not handled: 0x%x", port_id, status); 275 275 276 276 /* Make sure that PSCEG is 0 before exiting the loop. */ 277 277 status = XHCI_REG_RD_FIELD(&port->regs->portsc, 32);
Note:
See TracChangeset
for help on using the changeset viewer.
