Ignore:
Timestamp:
Dec 13, 2016, 10:52:53 PM (9 years ago)
Author:
David Azarewicz
Message:

Moved dma buffer pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.h

    r182 r183  
    124124/* Get AHCI port MMIO base from AD_INFO and port number. */
    125125#define port_base(ai, p) ((u8 *) (ai)->mmio + 0x100 + (p) * 0x80)
    126 #define port_dma_base(ai, p) ((AHCI_PORT_DMA *) ((ai)->dma_buf[(p)]))
    127 #define port_dma_base_phys(ai, p) ((ai)->dma_buf_phys[(p)])
     126#define port_dma_base(ai, p) ((AHCI_PORT_DMA *) ((ai)->ports[(p)].dma_buf))
     127#define port_dma_base_phys(ai, p) ((ai)->ports[p].dma_buf_phys)
    128128
    129129/* Convert an SATA adapter/port/device address into a 16-bit IORB unit handle
     
    253253  volatile u32  ncq_cmds;              /* bitmap for NCQ commands issued */
    254254  volatile u32  reg_cmds;              /* bitmap for regular commands issued */
     255  u32           dma_buf_phys;          /* physical address of DMA scratch buffer */
     256  u8           *dma_buf;               /* DMA scatch buffers */
    255257
    256258  struct {
     
    300302  u32           mmio_size;             /* size of MMIO region */
    301303  u8           *mmio;                  /* pointer to this adapter's MMIO region */
    302 
    303   u32           dma_buf_phys[AHCI_MAX_PORTS];          /* physical address of DMA scratch buffer */
    304   u8           *dma_buf[AHCI_MAX_PORTS]; /* DMA scatch buffers */
    305304
    306305  P_INFO        ports[AHCI_MAX_PORTS]; /* SATA ports on this adapter */
Note: See TracChangeset for help on using the changeset viewer.