summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-08-27 03:22:01 +0200
committerMichael Brown2006-08-27 03:22:01 +0200
commit5a54225aef1773c752fbea51fb6b0cc677c92265 (patch)
treef26b03f969de9ccdd1d60c7c565bd88642900d1b /src
parentAdded support for INT 13,15; NTLDR calls it (though it may not (diff)
downloadipxe-5a54225aef1773c752fbea51fb6b0cc677c92265.tar.gz
ipxe-5a54225aef1773c752fbea51fb6b0cc677c92265.tar.xz
ipxe-5a54225aef1773c752fbea51fb6b0cc677c92265.zip
Added support for INT 13,15; NTLDR calls it (though it may not
actually do anything with the result, since it carried on using us even when we returned failure).
Diffstat (limited to 'src')
-rw-r--r--src/arch/i386/include/int13.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/arch/i386/include/int13.h b/src/arch/i386/include/int13.h
index 4d5743e9c..0525229da 100644
--- a/src/arch/i386/include/int13.h
+++ b/src/arch/i386/include/int13.h
@@ -27,6 +27,8 @@ struct block_device;
#define INT13_WRITE_SECTORS 0x03
/** Get drive parameters */
#define INT13_GET_PARAMETERS 0x08
+/** Get disk type */
+#define INT13_GET_DISK_TYPE 0x15
/** Extensions installation check */
#define INT13_EXTENSION_CHECK 0x41
/** Extended read */
@@ -132,6 +134,22 @@ struct int13_disk_parameters {
};
/**
+ * @defgroup int13types INT 13 disk types
+ * @{
+ */
+
+/** No such drive */
+#define INT13_DISK_TYPE_NONE 0x00
+/** Floppy without change-line support */
+#define INT13_DISK_TYPE_FDD 0x01
+/** Floppy with change-line support */
+#define INT13_DISK_TYPE_FDD_CL 0x02
+/** Hard disk */
+#define INT13_DISK_TYPE_HDD 0x03
+
+/** @} */
+
+/**
* @defgroup int13flags INT 13 disk parameter flags
* @{
*/