Browse Source

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).
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
5a54225aef
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      src/arch/i386/include/int13.h

+ 18
- 0
src/arch/i386/include/int13.h View File

@@ -27,6 +27,8 @@ struct block_device;
27 27
 #define INT13_WRITE_SECTORS		0x03
28 28
 /** Get drive parameters */
29 29
 #define INT13_GET_PARAMETERS		0x08
30
+/** Get disk type */
31
+#define INT13_GET_DISK_TYPE		0x15
30 32
 /** Extensions installation check */
31 33
 #define INT13_EXTENSION_CHECK		0x41
32 34
 /** Extended read */
@@ -131,6 +133,22 @@ struct int13_disk_parameters {
131 133
 	
132 134
 };
133 135
 
136
+/**
137
+ * @defgroup int13types INT 13 disk types
138
+ * @{
139
+ */
140
+
141
+/** No such drive */
142
+#define INT13_DISK_TYPE_NONE	0x00
143
+/** Floppy without change-line support */
144
+#define INT13_DISK_TYPE_FDD	0x01
145
+/** Floppy with change-line support */
146
+#define INT13_DISK_TYPE_FDD_CL	0x02
147
+/** Hard disk */
148
+#define INT13_DISK_TYPE_HDD	0x03
149
+
150
+/** @} */
151
+
134 152
 /**
135 153
  * @defgroup int13flags INT 13 disk parameter flags
136 154
  * @{

Loading…
Cancel
Save