Changeset 226 in xtideuniversalbios


Ignore:
Timestamp:
Jan 28, 2012, 3:08:47 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Moved .bSerialPortAndBaud out of the main DPT into a an attached struc DPT_SERIAL, used by the serial port code only

Location:
trunk/XTIDE_Universal_BIOS
Files:
3 edited

Legend:

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

    r200 r226  
    1212    .bFlagsHigh                 resb    1
    1313    .bIdevarsOffset             resb    1   ; Offset to IDEVARS for this drive
    14 %ifdef MODULE_SERIAL
    15     .bSerialPortAndBaud         resb    1   ; Packed I/O port and baud rate for serial drives
    16 %else
    17                                 resb    1   ; without serial port support, alignment byte
    18 %endif
     14                                resb    1   ; alignment byte
    1915
    2016    ; IDE Drive related
     
    3531    .bMaxBlock                  resb    1   ; Maximum block size, 0 = block mode not supported
    3632endstruc
     33
     34%ifdef MODULE_SERIAL
     35; DPT for Serial devices
     36struc DPT_SERIAL
     37    .dpt                        resb    DPT_size
     38
     39    .bSerialPortAndBaud         resb    1   ; Packed I/O port and baud rate for serial drives
     40                                resb    1   ; unused alignment
     41endstruc
     42%endif
    3743
    3844LARGEST_DPT_SIZE                EQU     DPT_ATA_size
  • trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm

    r223 r226  
    9191        mov     [bp+IDEPACK.bFeatures],ah       ; store protocol command
    9292
    93         mov     dl, byte [di+DPT.bSerialPortAndBaud]
     93        mov     dl, byte [di+DPT_SERIAL.bSerialPortAndBaud]
    9494
    9595; fall-through
     
    113113        push    di
    114114        push    bp
    115         push    es
    116115
    117116;
     
    438437        pop     bp              ;  recover ax (command and count) from stack, throw away
    439438
    440         pop     es
    441439        pop     bp
    442440        pop     di
  • trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm

    r203 r226  
    1818        or      byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
    1919        mov     al, [RAMVARS.xlateVars+XLATEVARS.bLastSerial]
    20         mov     byte [di+DPT.bSerialPortAndBaud], al
     20        mov     byte [di+DPT_SERIAL.bSerialPortAndBaud], al
    2121        ret
    2222
Note: See TracChangeset for help on using the changeset viewer.