Changeset 200 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
Nov 22, 2011, 8:38:36 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Added logic to skip scanning COM ports if a COM port was already found during the normal detection process, to avoid finding the same serial drive twice and preseting the OS with two drives which in reality point to the same physical file on the server. Also added logic to skip scanning for the slave serial drive if the master was not found. And various small optimizations.

Location:
trunk/XTIDE_Universal_BIOS/Inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc

    r193 r200  
    6565ADDRESSING_MODE_LBA48           EQU     3   ; 48-bit LBA Addressing Mode
    6666
    67 %macro CustomDPT_GetUnshiftedAddressModeToALZF 0
    68     mov     al, [di+DPT.bFlagsLow]
    69     and     al, MASKL_DPT_ADDRESSING_MODE
    70 %endmacro
    71 
    7267; Number of Sectors per Track is fixed to 63 for LBA assist calculation.
    7368; 1024 cylinders, 256 heads, 63 sectors = 8.4 GB limit (but DOS does not support more than 255 heads)
  • trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc

    r199 r200  
    100100;   baud rate = b, where 00 = 2400, 01 = 9600, 10 = 38.4K, 11 = 115.2K
    101101;
    102 DEVICE_SERIAL_PACKEDPORTANDBAUD_PORTMASK        EQU     0fch
    103 DEVICE_SERIAL_PACKEDPORTANDBAUD_PORTBITS        EQU     03fh
    104 DEVICE_SERIAL_PACKEDPORTANDBAUD_STARTINGPORT    EQU     240h
    105 DEVICE_SERIAL_PACKEDPORTANDBAUD_BAUDMASK        EQU     3h
    106 DEVICE_SERIAL_PACKEDPORTANDBAUD_BAUDBITS        EQU     3h
     102; 240h/2400baud corresponds to 0 for a PackedPortAndBaud value, which is reserved (in case we need
     103; it to know if a value has been set).  Which is why ..._MINPORT is 248h.
     104;
     105DEVICE_SERIAL_PACKEDPORTANDBAUD_PORTMASK            EQU     0fch
     106DEVICE_SERIAL_PACKEDPORTANDBAUD_PORTBITS            EQU     03fh
     107DEVICE_SERIAL_PACKEDPORTANDBAUD_PORT_FIELD_POSITION EQU     2
     108DEVICE_SERIAL_PACKEDPORTANDBAUD_STARTINGPORT        EQU     240h
     109DEVICE_SERIAL_PACKEDPORTANDBAUD_MINPORT             EQU     248h        ; minimum port value that the user can set
     110DEVICE_SERIAL_PACKEDPORTANDBAUD_MAXPORT             EQU     438h        ; or (..._PORTMASK << 1) + ..._STARTINGPORT
     111
     112DEVICE_SERIAL_PACKEDPORTANDBAUD_BAUDMASK            EQU     3h
     113DEVICE_SERIAL_PACKEDPORTANDBAUD_BAUDBITS            EQU     3h
     114DEVICE_SERIAL_PACKEDPORTANDBAUD_BAUD_FIELD_POSITION EQU     0
    107115
    108116; Defines for IDEVARS.wSerialPrintBaud
Note: See TracChangeset for help on using the changeset viewer.