Changeset 2e38385 in mainline
- Timestamp:
- 2011-01-14T14:51:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 76c40eb
- Parents:
- f9dd44d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/root_hub/port.c
rf9dd44d r2e38385 32 32 uhci_print_info("Port(%d) status %#.4x:\n", 33 33 port_instance->number, port_status); 34 print_port_status( port_status);34 print_port_status(port_status); 35 35 36 36 if (port_status & STATUS_CONNECTED_CHANGED) { … … 51 51 assert(port->hc); 52 52 53 54 53 uhci_print_info("Adding new device on port %d.\n", port->number); 55 54 … … 67 66 68 67 /* enable port */ 69 uhci_port_set_enabled( port, true);68 uhci_port_set_enabled(port, true); 70 69 71 70 /* assign address to device */ 72 int ret = usb_drv_req_set_address( port->hc_phone, 0, usb_address);71 int ret = usb_drv_req_set_address(port->hc_phone, 0, usb_address); 73 72 74 73 … … 95 94 } 96 95 97 98 96 return EOK; 99 97 } … … 101 99 static int uhci_port_remove_device(uhci_port_t *port) 102 100 { 103 uhci_print_error( 101 uhci_print_error("Don't know how to remove device %#x.\n", 104 102 port->attached_device); 105 103 uhci_port_set_enabled(port, false); … … 121 119 port_status &= ~STATUS_ENABLED; 122 120 } 123 port_status_write( port->address, port_status);121 port_status_write(port->address, port_status); 124 122 125 uhci_print_info( 126 enabled ? "Enabled" : "Disabled", port->number 123 uhci_print_info("%s port %d.\n", 124 enabled ? "Enabled" : "Disabled", port->number); 127 125 return EOK; 128 126 }
Note:
See TracChangeset
for help on using the changeset viewer.