Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.c

    rf9c03b5 rfbefd0e  
    4343#include "port.h"
    4444
    45 static int uhci_port_check(void *port);
    46 static int uhci_port_reset_enable(int portno, void *arg);
    4745static int uhci_port_new_device(uhci_port_t *port, usb_speed_t speed);
    4846static int uhci_port_remove_device(uhci_port_t *port);
    4947static int uhci_port_set_enabled(uhci_port_t *port, bool enabled);
     48static int uhci_port_check(void *port);
     49static int uhci_port_reset_enable(int portno, void *arg);
    5050static void uhci_port_print_status(
    5151    uhci_port_t *port, const port_status_t value);
     
    7474        pio_write_16(port->address, value);
    7575}
     76
    7677/*----------------------------------------------------------------------------*/
    7778/** Initialize UHCI root hub port instance.
     
    258259
    259260        usb_address_t dev_addr;
    260         int ret = usb_hc_new_device_wrapper(port->rh, &port->hc_connection,
     261        int rc = usb_hc_new_device_wrapper(port->rh, &port->hc_connection,
    261262            speed, uhci_port_reset_enable, port->number, port,
    262263            &dev_addr, &port->attached_device, NULL, NULL, NULL);
    263264
    264         if (ret != EOK) {
     265        if (rc != EOK) {
    265266                usb_log_error("%s: Failed(%d) to add device: %s.\n",
    266                     port->id_string, ret, str_error(ret));
     267                    port->id_string, rc, str_error(rc));
    267268                uhci_port_set_enabled(port, false);
    268                 return ret;
     269                return rc;
    269270        }
    270271
     
    286287int uhci_port_remove_device(uhci_port_t *port)
    287288{
    288         usb_log_error("%s: Don't know how to remove device %llu.\n",
    289             port->id_string, port->attached_device);
    290         return ENOTSUP;
     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;
    291292}
    292293/*----------------------------------------------------------------------------*/
     
    340341            (value & STATUS_CONNECTED_CHANGED) ? " CONNECTED-CHANGE," : "",
    341342            (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"
    343344        );
    344345}
Note: See TracChangeset for help on using the changeset viewer.