Changeset 77ded647 in mainline for uspace/drv/bus/usb/xhci/hw_struct


Ignore:
Timestamp:
2018-02-01T11:42:11Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3e6ff9a
Parents:
17d34a8
Message:

xhci: do not avoid 64-bit writes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hw_struct/regs.h

    r17d34a8 r77ded647  
    371371         * 64:6 - Command Ring Pointer
    372372         */
    373         ioport32_t crcr_lo;
    374         ioport32_t crcr_hi;
     373        ioport64_t crcr;
    375374
    376375        PADD32[4];
    377376
    378         ioport32_t dcbaap_lo;
    379         ioport32_t dcbaap_hi;
     377        ioport64_t dcbaap;
    380378
    381379        /*
     
    416414#define XHCI_OP_PAGESIZE      pagesize, 32, FIELD
    417415#define XHCI_OP_NOTIFICATION    dnctrl, 32, RANGE, 15, 0
    418 #define XHCI_OP_RCS            crcr_lo, 32,  FLAG, 0
    419 #define XHCI_OP_CS             crcr_lo, 32,  FLAG, 1
    420 #define XHCI_OP_CA             crcr_lo, 32,  FLAG, 2
    421 #define XHCI_OP_CRR            crcr_lo, 32,  FLAG, 3
     416#define XHCI_OP_RCS               crcr, 64,  FLAG, 0
     417#define XHCI_OP_CS                crcr, 64,  FLAG, 1
     418#define XHCI_OP_CA                crcr, 64,  FLAG, 2
     419#define XHCI_OP_CRR               crcr, 64,  FLAG, 3
    422420/*
    423421 * This shall be RANGE, 6, 0, but the value containing CR pointer and RCS flag
    424422 * must be written at once.
    425423 */
    426 #define XHCI_OP_CRCR_LO        crcr_lo, 32, FIELD
    427 #define XHCI_OP_CRCR_HI        crcr_hi, 32, FIELD
    428 #define XHCI_OP_DCBAAP_LO    dcbaap_lo, 32, FIELD
    429 #define XHCI_OP_DCBAAP_HI    dcbaap_hi, 32, FIELD
     424#define XHCI_OP_CRCR              crcr, 64, FIELD
     425#define XHCI_OP_DCBAAP          dcbaap, 64, FIELD
    430426#define XHCI_OP_MAX_SLOTS_EN    config, 32, RANGE, 7, 0
    431427#define XHCI_OP_U3E             config, 32,  FLAG, 8
     
    458454        PADD32;
    459455
    460         ioport32_t erstba_lo;
    461         ioport32_t erstba_hi;
     456        ioport64_t erstba;
    462457
    463458        /*
     
    466461         * 63:4 - Event Ring Dequeue Pointer
    467462         */
    468         ioport32_t erdp_lo;
    469         ioport32_t erdp_hi;
     463        ioport64_t erdp;
    470464} xhci_interrupter_regs_t;
    471465
     
    475469#define XHCI_INTR_IMC             imod, 32, RANGE, 31, 16
    476470#define XHCI_INTR_ERSTSZ        erstsz, 32, FIELD
    477 #define XHCI_INTR_ERSTBA_LO  erstba_lo, 32, FIELD
    478 #define XHCI_INTR_ERSTBA_HI  erstba_hi, 32, FIELD
    479 #define XHCI_INTR_ERDP_ESI     erdp_lo, 32, RANGE,  2, 0
    480 #define XHCI_INTR_ERDP_EHB     erdp_lo, 32,  FLAG,  3
    481 #define XHCI_INTR_ERDP_LO      erdp_lo, 32, FIELD
    482 #define XHCI_INTR_ERDP_HI      erdp_hi, 32, FIELD
     471#define XHCI_INTR_ERSTBA        erstba, 64, FIELD
     472#define XHCI_INTR_ERDP_ESI        erdp, 64, RANGE,  2, 0
     473#define XHCI_INTR_ERDP_EHB        erdp, 64,  FLAG,  3
     474#define XHCI_INTR_ERDP            erdp, 64, FIELD
    483475
    484476/**
Note: See TracChangeset for help on using the changeset viewer.