Changeset 3005db6 in mainline for uspace/drv/uhci-rhd/port_status.h
- Timestamp:
- 2011-03-11T13:51:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab5a43d1
- Parents:
- 0c8562c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port_status.h
r0c8562c r3005db6 54 54 #define STATUS_SUSPEND (1 << 12) 55 55 56 static inline port_status_t port_status_read(port_status_t * address)57 { return pio_read_16(address); }58 56 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); 57 static 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 } 64 72 #endif 65 73 /**
Note:
See TracChangeset
for help on using the changeset viewer.