Changeset df949c5 in mainline for uspace/drv/uhci-rhd/port_status.h


Ignore:
Timestamp:
2011-03-11T17:33:50Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd6f59f
Parents:
b3bdb68 (diff), bf4cc3e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Get max_packet_size when initializing default pipe

UHCI root hub refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port_status.h

    rb3bdb68 rdf949c5  
    5454#define STATUS_SUSPEND   (1 << 12)
    5555
    56 static inline port_status_t port_status_read(port_status_t * address)
    57         { return pio_read_16(address); }
    5856
    59 static inline void port_status_write(
    60   port_status_t *address, port_status_t value)
    61         { pio_write_16(address, value); }
    62 
    63 void print_port_status(const port_status_t status);
     57static inline void print_port_status(
     58    const char* prefix, const port_status_t value)
     59{
     60        usb_log_debug2("%s Port status:%s%s%s%s%s%s%s%s.\n",
     61            prefix,
     62            (value & STATUS_SUSPEND) ? " SUSPENDED," : "",
     63            (value & STATUS_IN_RESET) ? " IN RESET," : "",
     64            (value & STATUS_LOW_SPEED) ? " LOWSPEED," : "",
     65            (value & STATUS_ENABLED_CHANGED) ? " ENABLED-CHANGE," : "",
     66            (value & STATUS_ENABLED) ? " ENABLED," : "",
     67            (value & STATUS_CONNECTED_CHANGED) ? " CONNECTED-CHANGE," : "",
     68            (value & STATUS_CONNECTED) ? " CONNECTED," : "",
     69            (value & STATUS_ALWAYS_ONE) ? " ALWAYS ONE" : " ERROR: NO ALWAYS ONE"
     70        );
     71}
    6472#endif
    6573/**
Note: See TracChangeset for help on using the changeset viewer.