Changeset 334 in xtideuniversalbios for trunk/Serial_Server


Ignore:
Timestamp:
Mar 13, 2012, 5:29:34 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Serial server DPT flag optimization, remove Serial/IDE specific header on drive scan results, added GNU GPL v2 banner at boot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Serial_Server/library/Image.cpp

    r284 r334  
    205205//
    206206#define ATA_wSerialServerVersion 157
    207 #define ATA_wSerialFloppyFlagAndType 158
     207#define ATA_wSerialDriveFlags 158
    208208#define ATA_wSerialPortAndBaud 159
    209209
     
    214214#define ATA_wGenCfg_FIXED 0x40
    215215
    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
    218222
    219223struct comPorts {
     
    298302    buff[ ATA_wSerialServerVersion ] = (SERIAL_SERVER_MAJORVERSION << 8) | SERIAL_SERVER_MINORVERSION;
    299303
     304    buff[ ATA_wSerialDriveFlags ] = ATA_wSerialDriveFlags_Present;
    300305    if( floppy )
    301         buff[ ATA_wSerialFloppyFlagAndType ] =
    302             ATA_wSerialFloppyFlagAndType_Flag | (floppyType << ATA_wSerialFloppyFlagAndType_TypePosition);
     306        buff[ ATA_wSerialDriveFlags ] |=
     307            ATA_wSerialDriveFlags_Floppy | (floppyType << ATA_wSerialDriveFlags_FloppyType_FieldPosition);
    303308
    304309    // 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.