Changeset 95c675b in mainline for uspace/drv/bus/usb
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv/bus/usb
- Files:
-
- 7 edited
-
ehci/res.c (modified) (2 diffs)
-
ohci/hw_struct/transfer_descriptor.c (modified) (1 diff)
-
ohci/ohci_rh.c (modified) (2 diffs)
-
uhci/main.c (modified) (2 diffs)
-
usbhub/status.h (modified) (1 diff)
-
usbhub/usbhub.h (modified) (2 diffs)
-
usbmid/explore.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/res.c
rdbf32b1 r95c675b 39 39 #include <str_error.h> 40 40 #include <assert.h> 41 #include <d evman.h>41 #include <ddf/driver.h> 42 42 #include <ddi.h> 43 43 #include <usb/debug.h> … … 176 176 assert(device); 177 177 178 async_sess_t *parent_sess = devman_parent_device_connect( 179 ddf_dev_get_handle(device), IPC_FLAG_BLOCKING); 180 if (!parent_sess) 178 async_sess_t *parent_sess = ddf_dev_parent_sess_get(device); 179 if (parent_sess == NULL) 181 180 return ENOMEM; 182 181 -
uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c
rdbf32b1 r95c675b 78 78 79 79 /* Allow less data on input. */ 80 if (dir == USB_DIRECTION_IN) {80 if (direction == USB_DIRECTION_IN) { 81 81 OHCI_MEM32_SET(instance->status, TD_STATUS_ROUND_FLAG); 82 82 } -
uspace/drv/bus/usb/ohci/ohci_rh.c
rdbf32b1 r95c675b 361 361 case USB_HUB_FEATURE_C_PORT_RESET: /*20*/ 362 362 usb_log_debug2("Clearing port C_CONNECTION, C_ENABLE, " 363 "C_SUSPEND, C_OC or C_RESET on port % "PRIu16".\n", port);363 "C_SUSPEND, C_OC or C_RESET on port %u.\n", port); 364 364 /* Bit offsets correspond to the feature number */ 365 365 OHCI_WR(hub->registers->rh_port_status[port], … … 410 410 case USB_HUB_FEATURE_PORT_RESET: /*4*/ 411 411 usb_log_debug2("Setting port POWER, ENABLE, SUSPEND or RESET " 412 "on port % "PRIu16".\n", port);412 "on port %u.\n", port); 413 413 /* Bit offsets correspond to the feature number */ 414 414 OHCI_WR(hub->registers->rh_port_status[port], 1 << feature); -
uspace/drv/bus/usb/uhci/main.c
rdbf32b1 r95c675b 36 36 #include <assert.h> 37 37 #include <ddf/driver.h> 38 #include <devman.h>39 38 #include <errno.h> 40 39 #include <io/log.h> … … 123 122 assert(device); 124 123 125 async_sess_t *parent_sess = devman_parent_device_connect( 126 ddf_dev_get_handle(device), IPC_FLAG_BLOCKING); 127 if (!parent_sess) 124 async_sess_t *parent_sess = ddf_dev_parent_sess_get(device); 125 if (parent_sess == NULL) 128 126 return ENOMEM; 129 127 130 128 /* See UHCI design guide page 45 for these values. 131 129 * Write all WC bits in USB legacy register */ 132 const int rc = pci_config_space_write_16(parent_sess, 0xc0, 0xaf00); 133 134 async_hangup(parent_sess); 135 return rc; 130 return pci_config_space_write_16(parent_sess, 0xc0, 0xaf00); 136 131 } 137 132 -
uspace/drv/bus/usb/usbhub/status.h
rdbf32b1 r95c675b 35 35 #define HUB_STATUS_H 36 36 37 #include <stdbool.h>38 #include <stdint.h>39 37 #include <usb/dev/request.h> 40 38 -
uspace/drv/bus/usb/usbhub/usbhub.h
rdbf32b1 r95c675b 38 38 #define DRV_USBHUB_USBHUB_H 39 39 40 #include <ipc/devman.h>41 40 #include <ddf/driver.h> 42 41 … … 72 71 /** Condition variable for pending_ops_count. */ 73 72 fibril_condvar_t pending_ops_cv; 74 /** Pointer to devmanusbhub function. */73 /** Pointer to usbhub function. */ 75 74 ddf_fun_t *hub_fun; 76 75 /** Status indicator */ -
uspace/drv/bus/usb/usbmid/explore.c
rdbf32b1 r95c675b 132 132 * 133 133 * @param dev Device to be explored. 134 * @return Whether to accept this device from devman.134 * @return Whether to accept this device. 135 135 */ 136 136 int usbmid_explore_device(usb_device_t *dev)
Note:
See TracChangeset
for help on using the changeset viewer.
