Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
5a54225aef
1 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 18
    0
      src/arch/i386/include/int13.h

+ 18
- 0
src/arch/i386/include/int13.h Näytä tiedosto

27
 #define INT13_WRITE_SECTORS		0x03
27
 #define INT13_WRITE_SECTORS		0x03
28
 /** Get drive parameters */
28
 /** Get drive parameters */
29
 #define INT13_GET_PARAMETERS		0x08
29
 #define INT13_GET_PARAMETERS		0x08
30
+/** Get disk type */
31
+#define INT13_GET_DISK_TYPE		0x15
30
 /** Extensions installation check */
32
 /** Extensions installation check */
31
 #define INT13_EXTENSION_CHECK		0x41
33
 #define INT13_EXTENSION_CHECK		0x41
32
 /** Extended read */
34
 /** Extended read */
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
  * @defgroup int13flags INT 13 disk parameter flags
153
  * @defgroup int13flags INT 13 disk parameter flags
136
  * @{
154
  * @{

Loading…
Peruuta
Tallenna