Ignore:
Timestamp:
2010-12-18T15:40:36Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f088c00
Parents:
3515533
Message:

root hub detection of devices works

TODO: assign correct match ids before reporting
TODO: communicate new address to the device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/root_hub/port_status.h

    r3515533 r18e35a7  
    3737#include <stdint.h>
    3838
    39 typedef struct port_status {
     39struct port_register {
    4040        uint8_t connected:1;
    4141        uint8_t connect_change:1;
     
    6666//      uint8_t connect_change:1;
    6767//      uint8_t connected:1;
    68 } __attribute__((packed)) port_status_t;
     68} __attribute__((packed));
    6969
    70 void print_port_status( port_status_t *status );
     70typedef union port_status {
     71        struct port_register status;
     72        uint16_t raw_value;
     73} port_status_t;
     74
     75void print_port_status( const port_status_t *status );
    7176#endif
    7277/**
Note: See TracChangeset for help on using the changeset viewer.