From 624c30d2d98c2c5f9db492c6493fa78691c94d12 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 12 Aug 2017 19:51:11 +0100 Subject: [PATCH] plus3: add a header for generic 8bit IDE --- Kernel/platform-plus3/platform_ide.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Kernel/platform-plus3/platform_ide.h diff --git a/Kernel/platform-plus3/platform_ide.h b/Kernel/platform-plus3/platform_ide.h new file mode 100644 index 00000000..d7975815 --- /dev/null +++ b/Kernel/platform-plus3/platform_ide.h @@ -0,0 +1,15 @@ +/* Simple IDE interface */ +#define IDE_REG_DATA 0xA3 +#define IDE_REG_ERROR 0xA7 +#define IDE_REG_FEATURES 0xA7 +#define IDE_REG_SEC_COUNT 0xAB +#define IDE_REG_LBA_0 0xAF +#define IDE_REG_LBA_1 0xB3 +#define IDE_REG_LBA_2 0xB7 +#define IDE_REG_LBA_3 0xBB +#define IDE_REG_DEVHEAD 0xBB +#define IDE_REG_STATUS 0xBF +#define IDE_REG_COMMAND 0xBF + +#define ide_select(x) +#define ide_deselect() -- 2.34.1