From b2a3cbf7a9bc671eaad5bccf0ccbae140d8ebe08 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Sat, 12 Mar 2022 00:46:50 -0500 Subject: [PATCH] Reusable IO Port definitions for IDE HDC's --- src/include/86box/hdc_ide.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/include/86box/hdc_ide.h b/src/include/86box/hdc_ide.h index d6914b905..8f1b3551a 100644 --- a/src/include/86box/hdc_ide.h +++ b/src/include/86box/hdc_ide.h @@ -19,6 +19,18 @@ #ifndef EMU_IDE_H # define EMU_IDE_H +#define HDC_PRIMARY_BASE 0x01F0 +#define HDC_PRIMARY_SIDE 0x03F6 +#define HDC_PRIMARY_IRQ 14 +#define HDC_SECONDARY_BASE 0x0170 +#define HDC_SECONDARY_SIDE 0x0376 +#define HDC_SECONDARY_IRQ 15 +#define HDC_TERTIARY_BASE 0x0168 +#define HDC_TERTIARY_SIDE 0x036E +#define HDC_TERTIARY_IRQ 10 +#define HDC_QUATERNARY_BASE 0x01E8 +#define HDC_QUATERNARY_SIDE 0x03EE +#define HDC_QUATERNARY_IRQ 11 enum {