Changeset b4b534ac in mainline for uspace/drv/bus/usb/ohci/ohci_regs.h


Ignore:
Timestamp:
2016-07-22T08:24:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge from lp:~jan.vesely/helenos/usb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_regs.h

    r5b18137 rb4b534ac  
    3434#ifndef DRV_OHCI_OHCI_REGS_H
    3535#define DRV_OHCI_OHCI_REGS_H
     36#include <ddi.h>
    3637#include <sys/types.h>
    3738#include <byteorder.h>
    3839
    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)
    4444
    4545#define LEGACY_REGS_OFFSET 0x100
     
    215215        /** Root hub per port status */
    216216        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,
    218218                                               * w: 1-clear port enable, 0-N/S*/
    219219#define RHPS_CLEAR_PORT_ENABLE RHPS_CCS_FLAG
    220 #define RHPS_PES_FLAG (1 << 1) /* r: port enable status
     220#define RHPS_PES_FLAG (1 << 1)               /* r: port enable status
    221221                                              * w: 1-set port enable, 0-N/S */
    222222#define RHPS_SET_PORT_ENABLE RHPS_PES_FLAG
    223 #define RHPS_PSS_FLAG (1 << 2) /* r: port suspend status
     223#define RHPS_PSS_FLAG (1 << 2)                /* r: port suspend status
    224224                                               * w: 1-set port suspend, 0-N/S */
    225225#define RHPS_SET_PORT_SUSPEND RHPS_PSS_FLAG
    226 #define RHPS_POCI_FLAG (1 << 3) /* r: port over-current
     226#define RHPS_POCI_FLAG (1 << 3)                /* r: port over-current
    227227                                                * (if reports are per-port
    228228                                                * w: 1-clear port suspend
     
    230230                                                *    0-nothing */
    231231#define RHPS_CLEAR_PORT_SUSPEND RHPS_POCI_FLAG
    232 #define RHPS_PRS_FLAG (1 << 4) /* r: port reset status
     232#define RHPS_PRS_FLAG (1 << 4)                /* r: port reset status
    233233                                               * w: 1-set port reset, 0-N/S */
    234234#define RHPS_SET_PORT_RESET RHPS_PRS_FLAG
    235 #define RHPS_PPS_FLAG (1 << 8) /* r: port power status
     235#define RHPS_PPS_FLAG (1 << 8)               /* r: port power status
    236236                                              * w: 1-set port power, 0-N/S */
    237237#define RHPS_SET_PORT_POWER RHPS_PPS_FLAG
    238 #define RHPS_LSDA_FLAG (1 << 9) /* r: low speed device attached
     238#define RHPS_LSDA_FLAG (1 << 9)                /* r: low speed device attached
    239239                                                * w: 1-clear port power, 0-N/S*/
    240240#define RHPS_CLEAR_PORT_POWER RHPS_LSDA_FLAG
Note: See TracChangeset for help on using the changeset viewer.