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.c

    r3515533 r18e35a7  
    44#include "port_status.h"
    55
    6 void print_port_status( port_status_t *status )
     6void print_port_status( const port_status_t *status )
    77{
    88        assert( status );
    9         printf( "\tsuspended: %s\n", status->suspended ? "YES" : "NO" );
    10         printf( "\tin reset: %s\n", status->reset ? "YES" : "NO" );
    11         printf( "\tlow speed: %s\n", status->low_speed ? "YES" : "NO" );
    12         printf( "\tresume detected: %s\n", status->resume ? "YES" : "NO" );
     9        printf( "\tsuspended: %s\n", status->status.suspended ? "YES" : "NO" );
     10        printf( "\tin reset: %s\n", status->status.reset ? "YES" : "NO" );
     11        printf( "\tlow speed: %s\n", status->status.low_speed ? "YES" : "NO" );
     12        printf( "\tresume detected: %s\n", status->status.resume ? "YES" : "NO" );
    1313        printf( "\talways \"1\" reserved bit: %s\n",
    14           status->always_one ? "YES" : "NO" );
     14          status->status.always_one ? "YES" : "NO" );
    1515        /* line status skipped */
    16         printf( "\tenable/disable change: %s\n", status->enabled_change ? "YES" : "NO" );
    17         printf( "\tport enabled: %s\n", status->enabled ? "YES" : "NO" );
    18         printf( "\tconnect change: %s\n", status->connect_change ? "YES" : "NO" );
    19         printf( "\tconnected: %s\n", status->connected ? "YES" : "NO" );
     16        printf( "\tenable/disable change: %s\n", status->status.enabled_change ? "YES" : "NO" );
     17        printf( "\tport enabled: %s\n", status->status.enabled ? "YES" : "NO" );
     18        printf( "\tconnect change: %s\n", status->status.connect_change ? "YES" : "NO" );
     19        printf( "\tconnected: %s\n", status->status.connected ? "YES" : "NO" );
    2020}
Note: See TracChangeset for help on using the changeset viewer.