Changeset 49f2f29 in mainline for uspace/drv/bus/usb/uhci/uhci_rh.c


Ignore:
Timestamp:
2013-02-08T20:47:19Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86a01cc
Parents:
c5f4e6a
Message:

libusbvirt: Drop port_count param.

Use library provided macro to compute additional space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci_rh.c

    rc5f4e6a r49f2f29  
    3030#include <macros.h>
    3131#include <usb/debug.h>
     32#include <usb/classes/hub.h>
    3233#include <ddi.h>
    3334
     
    3637enum {
    3738        UHCI_RH_PORT_COUNT = 2,
    38         /* 1 byte for hub status bit and 2 port status bits */
    39         UHCI_PORT_BYTES = (1 + UHCI_RH_PORT_COUNT + 7) / 8,
     39        UHCI_PORT_BYTES = STATUS_BYTES(UHCI_RH_PORT_COUNT),
    4040};
    4141
     
    7878        instance->reset_changed[1] = false;
    7979        return virthub_base_init(&instance->base, name, &ops, instance,
    80             NULL, &hub_descriptor.header, HUB_STATUS_CHANGE_PIPE, 2);
     80            NULL, &hub_descriptor.header, HUB_STATUS_CHANGE_PIPE);
    8181}
    8282
Note: See TracChangeset for help on using the changeset viewer.