Changeset b4b534ac in mainline for uspace/drv/bus/usb/ohci/ohci_regs.h
- Timestamp:
- 2016-07-22T08:24:47Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f76d2c2
- Parents:
- 5b18137 (diff), 8351f9a4 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_regs.h
r5b18137 rb4b534ac 34 34 #ifndef DRV_OHCI_OHCI_REGS_H 35 35 #define DRV_OHCI_OHCI_REGS_H 36 #include <ddi.h> 36 37 #include <sys/types.h> 37 38 #include <byteorder.h> 38 39 39 #define OHCI_WR(reg, val) reg = host2uint32_t_le(val) 40 #define OHCI_RD(reg) uint32_t_le2host(reg) 41 #define OHCI_SET(reg, val) reg |= host2uint32_t_le(val) 42 #define OHCI_CLR(reg, val) reg &= host2uint32_t_le(~val) 43 40 #define OHCI_WR(reg, val) pio_write_32(&(reg), host2uint32_t_le(val)) 41 #define OHCI_RD(reg) uint32_t_le2host(pio_read_32(&(reg))) 42 #define OHCI_SET(reg, val) pio_set_32(&(reg), host2uint32_t_le(val), 1) 43 #define OHCI_CLR(reg, val) pio_clear_32(&(reg), host2uint32_t_le(val), 1) 44 44 45 45 #define LEGACY_REGS_OFFSET 0x100 … … 215 215 /** Root hub per port status */ 216 216 ioport32_t rh_port_status[]; 217 #define RHPS_CCS_FLAG (1 << 0) /* r: current connect status,217 #define RHPS_CCS_FLAG (1 << 0) /* r: current connect status, 218 218 * w: 1-clear port enable, 0-N/S*/ 219 219 #define RHPS_CLEAR_PORT_ENABLE RHPS_CCS_FLAG 220 #define RHPS_PES_FLAG (1 << 1) /* r: port enable status220 #define RHPS_PES_FLAG (1 << 1) /* r: port enable status 221 221 * w: 1-set port enable, 0-N/S */ 222 222 #define RHPS_SET_PORT_ENABLE RHPS_PES_FLAG 223 #define RHPS_PSS_FLAG (1 << 2) /* r: port suspend status223 #define RHPS_PSS_FLAG (1 << 2) /* r: port suspend status 224 224 * w: 1-set port suspend, 0-N/S */ 225 225 #define RHPS_SET_PORT_SUSPEND RHPS_PSS_FLAG 226 #define RHPS_POCI_FLAG (1 << 3) /* r: port over-current226 #define RHPS_POCI_FLAG (1 << 3) /* r: port over-current 227 227 * (if reports are per-port 228 228 * w: 1-clear port suspend … … 230 230 * 0-nothing */ 231 231 #define RHPS_CLEAR_PORT_SUSPEND RHPS_POCI_FLAG 232 #define RHPS_PRS_FLAG (1 << 4) /* r: port reset status232 #define RHPS_PRS_FLAG (1 << 4) /* r: port reset status 233 233 * w: 1-set port reset, 0-N/S */ 234 234 #define RHPS_SET_PORT_RESET RHPS_PRS_FLAG 235 #define RHPS_PPS_FLAG (1 << 8) /* r: port power status235 #define RHPS_PPS_FLAG (1 << 8) /* r: port power status 236 236 * w: 1-set port power, 0-N/S */ 237 237 #define RHPS_SET_PORT_POWER RHPS_PPS_FLAG 238 #define RHPS_LSDA_FLAG (1 << 9) /* r: low speed device attached238 #define RHPS_LSDA_FLAG (1 << 9) /* r: low speed device attached 239 239 * w: 1-clear port power, 0-N/S*/ 240 240 #define RHPS_CLEAR_PORT_POWER RHPS_LSDA_FLAG
Note:
See TracChangeset
for help on using the changeset viewer.