Changes in uspace/drv/uhci-rhd/port.c [f9c03b5:fbefd0e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
rf9c03b5 rfbefd0e 43 43 #include "port.h" 44 44 45 static int uhci_port_check(void *port);46 static int uhci_port_reset_enable(int portno, void *arg);47 45 static int uhci_port_new_device(uhci_port_t *port, usb_speed_t speed); 48 46 static int uhci_port_remove_device(uhci_port_t *port); 49 47 static int uhci_port_set_enabled(uhci_port_t *port, bool enabled); 48 static int uhci_port_check(void *port); 49 static int uhci_port_reset_enable(int portno, void *arg); 50 50 static void uhci_port_print_status( 51 51 uhci_port_t *port, const port_status_t value); … … 74 74 pio_write_16(port->address, value); 75 75 } 76 76 77 /*----------------------------------------------------------------------------*/ 77 78 /** Initialize UHCI root hub port instance. … … 258 259 259 260 usb_address_t dev_addr; 260 int r et= usb_hc_new_device_wrapper(port->rh, &port->hc_connection,261 int rc = usb_hc_new_device_wrapper(port->rh, &port->hc_connection, 261 262 speed, uhci_port_reset_enable, port->number, port, 262 263 &dev_addr, &port->attached_device, NULL, NULL, NULL); 263 264 264 if (r et!= EOK) {265 if (rc != EOK) { 265 266 usb_log_error("%s: Failed(%d) to add device: %s.\n", 266 port->id_string, r et, str_error(ret));267 port->id_string, rc, str_error(rc)); 267 268 uhci_port_set_enabled(port, false); 268 return r et;269 return rc; 269 270 } 270 271 … … 286 287 int uhci_port_remove_device(uhci_port_t *port) 287 288 { 288 usb_log_error("%s: Don't know how to remove device % llu.\n",289 port->id_string, port->attached_device);290 return E NOTSUP;289 usb_log_error("%s: Don't know how to remove device %d.\n", 290 port->id_string, (unsigned int)port->attached_device); 291 return EOK; 291 292 } 292 293 /*----------------------------------------------------------------------------*/ … … 340 341 (value & STATUS_CONNECTED_CHANGED) ? " CONNECTED-CHANGE," : "", 341 342 (value & STATUS_CONNECTED) ? " CONNECTED," : "", 342 (value & STATUS_ALWAYS_ONE) ? " ALWAYS ONE" : " ERR : NO ALWAYS ONE"343 (value & STATUS_ALWAYS_ONE) ? " ALWAYS ONE" : " ERROR: NO ALWAYS ONE" 343 344 ); 344 345 }
Note:
See TracChangeset
for help on using the changeset viewer.