Changeset 183 for trunk/src/os2ahci/os2ahci.h
- Timestamp:
- Dec 13, 2016, 10:52:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.h
r182 r183 124 124 /* Get AHCI port MMIO base from AD_INFO and port number. */ 125 125 #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) 128 128 129 129 /* Convert an SATA adapter/port/device address into a 16-bit IORB unit handle … … 253 253 volatile u32 ncq_cmds; /* bitmap for NCQ commands issued */ 254 254 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 */ 255 257 256 258 struct { … … 300 302 u32 mmio_size; /* size of MMIO region */ 301 303 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 */305 304 306 305 P_INFO ports[AHCI_MAX_PORTS]; /* SATA ports on this adapter */
Note:
See TracChangeset
for help on using the changeset viewer.