Changeset 78ab6d4 in mainline for uspace/drv/bus/usb/ohci/ohci_regs.h
- Timestamp:
- 2011-07-10T22:45:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d62aa0
- Parents:
- 1f6eb7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_regs.h
r1f6eb7d r78ab6d4 36 36 #include <stdint.h> 37 37 38 #define LEGACY_REGS_OFFSET 0x100 39 38 40 /** OHCI memory mapped registers structure */ 39 41 typedef struct ohci_regs { 40 42 const volatile uint32_t revision; 43 #define R_REVISION_MASK (0x3f) 44 #define R_REVISION_SHIFT (0) 45 #define R_LEGACY_FLAG (0x80) 46 41 47 volatile uint32_t control; 42 48 #define C_CSBR_MASK (0x3) /* Control-bulk service ratio */ … … 58 64 #define C_HCFS_SUSPEND (0x3) 59 65 #define C_HCFS_SHIFT (6) 66 67 #define C_HCFS_GET(reg) \ 68 ((reg >> C_HCFS_SHIFT) & C_HCFS_MASK) 69 #define C_HCFS_SET(reg, hcfs_state) \ 70 do { \ 71 reg = (reg & ~(C_HCFS_MASK << C_HCFS_SHIFT)) \ 72 | ((hcfs_state & C_HCFS_MASK) << C_HCFS_SHIFT); \ 73 } while (0) 74 60 75 61 76 #define C_IR (1 << 8) /* Interrupt routing, make sure it's 0 */
Note:
See TracChangeset
for help on using the changeset viewer.