diff options
| author | Jiaxun Yang <[email protected]> | 2024-05-17 19:14:52 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-22 15:08:47 -0600 |
| commit | 8daa1fadc2c45bc954537a70942674e0a4cf85a8 (patch) | |
| tree | ed36e0476006253fd113abf8aaeb1d7fb37ac0b0 /include | |
| parent | 1864dfb1c457e090d2e84d14ee56d9579a898e7f (diff) | |
ahci: DMA addressing fixes
Ensure that we are using correct physical/virtual address for
DMA buffer write and hardware register settings.
The convention is: in ahci_ioports all pointers are virtual,
that will be converted to physical address when writing to
hardware registers or into sg/cmd_tbl.
Also fixed 64bit physical address support for dwc_ahsata, ensure
higher bits are written into registers/sg properly.
Use memalign for allocating aligned buffer in dwc_ahsata so we
don't have to do our own alignment in driver.
Signed-off-by: Jiaxun Yang <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ahci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ahci.h b/include/ahci.h index d4f0f3ce0e7..eb05cc687f6 100644 --- a/include/ahci.h +++ b/include/ahci.h @@ -137,8 +137,8 @@ struct ahci_ioports { void __iomem *port_mmio; struct ahci_cmd_hdr *cmd_slot; struct ahci_sg *cmd_tbl_sg; - ulong cmd_tbl; - u32 rx_fis; + void *cmd_tbl; + void *rx_fis; }; /** |
