Signed-off-by: Helge Deller <del...@gmx.de>
---
 src/hw/ata.h | 8 ++++++++
 1 file changed, 8 insertions(+)

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
--
2.29.2
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org

Reply via email to