Changeset 58563585 in mainline for uspace/drv/bus/usb/vhc
- Timestamp:
- 2016-08-31T11:15:39Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10cb47e
- Parents:
- 7a67416
- Location:
- uspace/drv/bus/usb/vhc
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/devconn.c
r7a67416 r58563585 95 95 } 96 96 97 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle, usb_address_t address) 97 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, 98 uintptr_t *handle, usb_address_t address) 98 99 { 99 100 return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false, address); -
uspace/drv/bus/usb/vhc/hub/virthub.c
r7a67416 r58563585 33 33 * @brief 34 34 */ 35 35 36 #include <usb/classes/classes.h> 36 37 #include <usb/classes/hub.h> -
uspace/drv/bus/usb/vhc/hub/virthub.h
r7a67416 r58563585 33 33 * @brief USB hub as a virtual USB device. 34 34 */ 35 35 36 #ifndef VHC_HUB_VIRTHUB_H_ 36 37 #define VHC_HUB_VIRTHUB_H_ … … 86 87 87 88 #endif 89 88 90 /** 89 91 * @} -
uspace/drv/bus/usb/vhc/hub/virthubops.c
r7a67416 r58563585 33 33 * @brief Virtual USB hub operations. 34 34 */ 35 35 36 #include <errno.h> 36 37 #include <usb/classes/hub.h> -
uspace/drv/bus/usb/vhc/main.c
r7a67416 r58563585 43 43 #include <usb/debug.h> 44 44 #include "vhcd.h" 45 46 45 47 46 static ddf_dev_ops_t vhc_ops = { -
uspace/drv/bus/usb/vhc/transfer.c
r7a67416 r58563585 233 233 if (rc == EOK) { 234 234 if (is_set_address_transfer(transfer)) { 235 usb_device_request_setup_packet_t *setup 236 = (void*)transfer->batch->setup_buffer;235 usb_device_request_setup_packet_t *setup = 236 (void*) transfer->batch->setup_buffer; 237 237 dev->address = setup->value; 238 238 usb_log_debug2("Address changed to %d\n", -
uspace/drv/bus/usb/vhc/vhcd.h
r7a67416 r58563585 33 33 * @brief Virtual USB host controller common definitions. 34 34 */ 35 35 36 #ifndef VHCD_VHCD_H_ 36 37 #define VHCD_VHCD_H_ … … 41 42 42 43 #include <usb/host/hcd.h> 43 44 44 45 45 #define NAME "vhc" … … 67 67 } vhc_transfer_t; 68 68 69 70 69 void on_client_close(ddf_fun_t *fun); 71 70 void default_connection_handler(ddf_fun_t *fun, ipc_callid_t icallid, … … 82 81 83 82 #endif 83 84 84 /** 85 85 * @}
Note:
See TracChangeset
for help on using the changeset viewer.