Changeset 18e35a7 in mainline for uspace/drv/uhci/root_hub/port_status.h
- Timestamp:
- 2010-12-18T15:40:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f088c00
- Parents:
- 3515533
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/root_hub/port_status.h
r3515533 r18e35a7 37 37 #include <stdint.h> 38 38 39 typedef struct port_status{39 struct port_register { 40 40 uint8_t connected:1; 41 41 uint8_t connect_change:1; … … 66 66 // uint8_t connect_change:1; 67 67 // uint8_t connected:1; 68 } __attribute__((packed)) port_status_t;68 } __attribute__((packed)); 69 69 70 void print_port_status( port_status_t *status ); 70 typedef union port_status { 71 struct port_register status; 72 uint16_t raw_value; 73 } port_status_t; 74 75 void print_port_status( const port_status_t *status ); 71 76 #endif 72 77 /**
Note:
See TracChangeset
for help on using the changeset viewer.