Changeset 334 in xtideuniversalbios for trunk/Serial_Server/library
- Timestamp:
- Mar 13, 2012, 5:29:34 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/library/Image.cpp
r284 r334 205 205 // 206 206 #define ATA_wSerialServerVersion 157 207 #define ATA_wSerial FloppyFlagAndType158207 #define ATA_wSerialDriveFlags 158 208 208 #define ATA_wSerialPortAndBaud 159 209 209 … … 214 214 #define ATA_wGenCfg_FIXED 0x40 215 215 216 #define ATA_wSerialFloppyFlagAndType_Flag 0x10 217 #define ATA_wSerialFloppyFlagAndType_TypePosition 5 216 // These are all shifted by 1 bit to the right, so that SerialDPT_Finalize can shift them into proper position 217 // and shift the high order bit into the carry flag to indicate a floppy drive is present. 218 // 219 #define ATA_wSerialDriveFlags_Floppy 0x88 220 #define ATA_wSerialDriveFlags_Present 0x02 221 #define ATA_wSerialDriveFlags_FloppyType_FieldPosition 4 218 222 219 223 struct comPorts { … … 298 302 buff[ ATA_wSerialServerVersion ] = (SERIAL_SERVER_MAJORVERSION << 8) | SERIAL_SERVER_MINORVERSION; 299 303 304 buff[ ATA_wSerialDriveFlags ] = ATA_wSerialDriveFlags_Present; 300 305 if( floppy ) 301 buff[ ATA_wSerial FloppyFlagAndType ]=302 ATA_wSerial FloppyFlagAndType_Flag | (floppyType << ATA_wSerialFloppyFlagAndType_TypePosition);306 buff[ ATA_wSerialDriveFlags ] |= 307 ATA_wSerialDriveFlags_Floppy | (floppyType << ATA_wSerialDriveFlags_FloppyType_FieldPosition); 303 308 304 309 // we always set this, so that the bulk of the BIOS will consider this disk as a hard disk
Note:
See TracChangeset
for help on using the changeset viewer.