diff options
author | Helge Deller <deller@gmx.de> | 2021-02-10 20:45:41 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-09-24 11:10:17 +0200 |
commit | 0fc4c0f004cc26732c27e39a986731b0b5801b40 (patch) | |
tree | c9f86c8b9952b4b0519341486dd9785a57c13be9 | |
parent | 25958c2cb21262a54c56166c9721d2780ed63848 (diff) | |
download | seabios-hppa-0fc4c0f004cc26732c27e39a986731b0b5801b40.zip seabios-hppa-0fc4c0f004cc26732c27e39a986731b0b5801b40.tar.gz seabios-hppa-0fc4c0f004cc26732c27e39a986731b0b5801b40.tar.bz2 |
ata.h: Add ATA IDE port addresses for PA-RISC
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/hw/ata.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hw/ata.h b/src/hw/ata.h index 36c333d..dff209a 100644 --- a/src/hw/ata.h +++ b/src/hw/ata.h @@ -29,10 +29,18 @@ int ata_process_op(struct disk_op_s *op); int ata_atapi_process_op(struct disk_op_s *op); void ata_setup(void); +#if CONFIG_X86 #define PORT_ATA2_CMD_BASE 0x0170 #define PORT_ATA1_CMD_BASE 0x01f0 #define PORT_ATA2_CTRL_BASE 0x0374 #define PORT_ATA1_CTRL_BASE 0x03f4 +#elif CONFIG_PARISC +#include "parisc/hppa_hardware.h" +#define PORT_ATA2_CMD_BASE (IDE_HPA+0x0170) +#define PORT_ATA1_CMD_BASE (IDE_HPA+0x01f0) +#define PORT_ATA2_CTRL_BASE (IDE_HPA+0x0374) +#define PORT_ATA1_CTRL_BASE (IDE_HPA+0x03f4) +#endif // Global defines -- ATA register and register bits. // command block & control block regs |