diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-02-02 22:11:30 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-02-02 23:16:40 -0500 |
commit | 6e3436b33aa0981ac6458c691505b1de5c536804 (patch) | |
tree | 8092d4aeda8c46262431f1ccad13e387b8cf78ee /src/hw/ahci.h | |
parent | f1b1d76159a8e7091e783bbc296b928226ccf153 (diff) | |
download | seabios-6e3436b33aa0981ac6458c691505b1de5c536804.tar.gz |
ahci: Convert to new PCI BAR helper functions
Use the pci_enable_x() functions.
This patch also converts cntl->iobase from a 'u32' to a 'void*' so
that it is clear that the address is a virtual memory address.
After this change, the AHCI driver will no longer enable
PCI_COMMAND_IO io accesses, as the AHCI driver doesn't actually
attempt IO accesses to the device.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/ahci.h')
-rw-r--r-- | src/hw/ahci.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hw/ahci.h b/src/hw/ahci.h index fa11d661..5c4f6e18 100644 --- a/src/hw/ahci.h +++ b/src/hw/ahci.h @@ -30,9 +30,8 @@ struct sata_cmd_fis { struct ahci_ctrl_s { struct pci_device *pci_tmp; - u16 pci_bdf; u8 irq; - u32 iobase; + void *iobase; u32 caps; u32 ports; }; |