Changeset 0fde1d5 in mainline for uspace/drv/uhci-rhd/port.c
- Timestamp:
- 2011-02-25T20:55:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f183dc
- Parents:
- cabda7f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
rcabda7f r0fde1d5 46 46 #include "port_status.h" 47 47 48 static int uhci_port_new_device(uhci_port_t *port );48 static int uhci_port_new_device(uhci_port_t *port, uint16_t status); 49 49 static int uhci_port_remove_device(uhci_port_t *port); 50 50 static int uhci_port_set_enabled(uhci_port_t *port, bool enabled); … … 122 122 } 123 123 124 port_status_write(port_instance->address, STATUS_CONNECTED_CHANGED); 124 125 usb_log_debug("Change status erased on port %d.\n", 125 126 port_instance->number); 126 port_status_write(port_instance->address, STATUS_CONNECTED_CHANGED);127 127 128 128 if (port_status & STATUS_CONNECTED) { 129 129 /* new device */ 130 uhci_port_new_device(port_instance );130 uhci_port_new_device(port_instance, port_status); 131 131 } 132 132 … … 189 189 190 190 /*----------------------------------------------------------------------------*/ 191 static int uhci_port_new_device(uhci_port_t *port )191 static int uhci_port_new_device(uhci_port_t *port, uint16_t status) 192 192 { 193 193 assert(port); … … 198 198 usb_address_t dev_addr; 199 199 int rc = usb_hc_new_device_wrapper(port->rh, &port->hc_connection, 200 USB_SPEED_FULL,200 ((status & STATUS_LOW_SPEED) != 0) ? USB_SPEED_LOW : USB_SPEED_FULL, 201 201 new_device_enable_port, port->number, port, 202 202 &dev_addr, &port->attached_device, NULL, NULL, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.