Changeset fa48ebe in mainline
- Timestamp:
- 2011-02-18T16:08:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1dde2eb1
- Parents:
- 735eac3
- Location:
- uspace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/iface.c
r735eac3 rfa48ebe 54 54 } 55 55 /*----------------------------------------------------------------------------*/ 56 static int reserve_default_address(device_t *dev, bool full_speed)56 static int reserve_default_address(device_t *dev, usb_speed_t speed) 57 57 { 58 58 assert(dev); … … 72 72 } 73 73 /*----------------------------------------------------------------------------*/ 74 static int request_address(device_t *dev, bool full_speed,74 static int request_address(device_t *dev, usb_speed_t speed, 75 75 usb_address_t *address) 76 76 { -
uspace/drv/uhci-rhd/port.c
r735eac3 rfa48ebe 141 141 /* get address of the future device */ 142 142 const usb_address_t usb_address = usb_hc_request_address( 143 &port->hc_connection, true);143 &port->hc_connection, USB_SPEED_FULL); 144 144 145 145 if (usb_address <= 0) { … … 151 151 152 152 /* get default address */ 153 int ret = usb_hc_reserve_default_address(&port->hc_connection, true);153 int ret = usb_hc_reserve_default_address(&port->hc_connection, USB_SPEED_FULL); 154 154 if (ret != EOK) { 155 155 usb_log_error("Failed to reserve default address on port %d.\n", -
uspace/drv/vhc/connhost.c
r735eac3 rfa48ebe 382 382 383 383 384 static int reserve_default_address(device_t *dev, boolignored)384 static int reserve_default_address(device_t *dev, usb_speed_t ignored) 385 385 { 386 386 usb_address_keeping_reserve_default(&addresses); … … 394 394 } 395 395 396 static int request_address(device_t *dev, bool ignored, usb_address_t *address) 396 static int request_address(device_t *dev, usb_speed_t ignored, 397 usb_address_t *address) 397 398 { 398 399 usb_address_t addr = usb_address_keeping_request(&addresses); -
uspace/lib/drv/generic/remote_usbhc.c
r735eac3 rfa48ebe 164 164 } 165 165 166 bool full_speed = DEV_IPC_GET_ARG1(*call);166 usb_speed_t speed = DEV_IPC_GET_ARG1(*call); 167 167 168 int rc = usb_iface->reserve_default_address(device, full_speed);168 int rc = usb_iface->reserve_default_address(device, speed); 169 169 170 170 async_answer_0(callid, rc); … … 196 196 } 197 197 198 bool full_speed = DEV_IPC_GET_ARG1(*call);198 usb_speed_t speed = DEV_IPC_GET_ARG1(*call); 199 199 200 200 usb_address_t address; 201 int rc = usb_iface->request_address(device, full_speed, &address);201 int rc = usb_iface->request_address(device, speed, &address); 202 202 if (rc != EOK) { 203 203 async_answer_0(callid, rc); -
uspace/lib/drv/include/usbhc_iface.h
r735eac3 rfa48ebe 232 232 int (*tell_address)(device_t *, devman_handle_t, usb_address_t *); 233 233 234 int (*reserve_default_address)(device_t *, bool);234 int (*reserve_default_address)(device_t *, usb_speed_t); 235 235 int (*release_default_address)(device_t *); 236 int (*request_address)(device_t *, bool, usb_address_t *);236 int (*request_address)(device_t *, usb_speed_t, usb_address_t *); 237 237 int (*bind_address)(device_t *, usb_address_t, devman_handle_t); 238 238 int (*release_address)(device_t *, usb_address_t); -
uspace/lib/usb/include/usb/hub.h
r735eac3 rfa48ebe 52 52 } usb_hc_attached_device_t; 53 53 54 int usb_hc_reserve_default_address(usb_hc_connection_t *, bool);54 int usb_hc_reserve_default_address(usb_hc_connection_t *, usb_speed_t); 55 55 int usb_hc_release_default_address(usb_hc_connection_t *); 56 56 57 usb_address_t usb_hc_request_address(usb_hc_connection_t *, bool);57 usb_address_t usb_hc_request_address(usb_hc_connection_t *, usb_speed_t); 58 58 int usb_hc_register_device(usb_hc_connection_t *, 59 59 const usb_hc_attached_device_t *); -
uspace/lib/usb/src/hub.c
r735eac3 rfa48ebe 56 56 */ 57 57 int usb_hc_reserve_default_address(usb_hc_connection_t *connection, 58 bool full_speed)58 usb_speed_t speed) 59 59 { 60 60 CHECK_CONNECTION(connection); … … 62 62 return async_req_2_0(connection->hc_phone, 63 63 DEV_IFACE_ID(USBHC_DEV_IFACE), 64 IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS, full_speed);64 IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS, speed); 65 65 } 66 66 … … 85 85 */ 86 86 usb_address_t usb_hc_request_address(usb_hc_connection_t *connection, 87 bool full_speed)87 usb_speed_t speed) 88 88 { 89 89 CHECK_CONNECTION(connection); … … 92 92 int rc = async_req_2_1(connection->hc_phone, 93 93 DEV_IFACE_ID(USBHC_DEV_IFACE), 94 IPC_M_USBHC_REQUEST_ADDRESS, full_speed,94 IPC_M_USBHC_REQUEST_ADDRESS, speed, 95 95 &address); 96 96 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.