Changeset 774afaae in mainline for uspace/drv/vhc/hc.c


Ignore:
Timestamp:
2010-12-15T21:56:14Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e63a4e1
Parents:
1840e0d
Message:

Refactoring of virtual hub

The hub is now divided into two layers (one as a hub and the other
one as a virtual USB device) and separated into more files for better
readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hc.c

    r1840e0d r774afaae  
    7878        list_get_instance(lnk, transaction_t, link)
    7979
     80#define HUB_STATUS_MAX_LEN (HUB_PORT_COUNT + 64)
     81
    8082static inline unsigned int pseudo_random(unsigned int *seed)
    8183{
     
    115117                }
    116118               
    117                 char ports[HUB_PORT_COUNT + 2];
    118                 hub_get_port_statuses(ports, HUB_PORT_COUNT + 1);
    119                 dprintf(4, "virtual hub: addr=%d ports=%s",
    120                     virthub_dev.address, ports);
     119                char ports[HUB_STATUS_MAX_LEN + 1];
     120                virthub_get_status(&virtual_hub_device, ports, HUB_STATUS_MAX_LEN);
    121121               
    122122                link_t *first_transaction_link = transaction_list.next;
     
    126126               
    127127
    128                 dprintf(0, "about to process " TRANSACTION_FORMAT " (vhub:%s)",
     128                dprintf(0, "about to process " TRANSACTION_FORMAT " [%s]",
    129129                    TRANSACTION_PRINTF(*transaction), ports);
    130130
Note: See TracChangeset for help on using the changeset viewer.