Changeset 175 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device


Ignore:
Timestamp:
Oct 22, 2011, 9:04:01 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

ifdef of existing serial code, in preperation for checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/Device.asm

    r161 r175  
    1717;--------------------------------------------------------------------
    1818Device_FinalizeDPT:
     19%ifdef MODULE_SERIAL
    1920    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
    20     jnz     SHORT ReturnSuccessForSerialPort
     21    jnz     SHORT .FinalizeDptForSerialPortDevice
     22%endif
    2123    jmp     IdeDPT_Finalize
    22 ;.FinalizeDptForSerialPortDevice:   ; Dead label
    23 ;   jmp     SerialDPT_Finalize      ; and code
    24 
     24%ifdef MODULE_SERIAL
     25.FinalizeDptForSerialPortDevice:
     26    jmp     SerialDPT_Finalize     
     27%endif
    2528
    2629;--------------------------------------------------------------------
     
    3538;--------------------------------------------------------------------
    3639Device_ResetMasterAndSlaveController:
     40%ifdef MODULE_SERIAL
    3741    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
    3842    jnz     SHORT ReturnSuccessForSerialPort
     43%endif
    3944    jmp     IdeCommand_ResetMasterAndSlaveController
    4045
     
    5459;--------------------------------------------------------------------
    5560Device_IdentifyToBufferInESSIwithDriveSelectByteInBH:
     61%ifdef MODULE_SERIAL
    5662    cmp     BYTE [cs:bp+IDEVARS.bDevice], DEVICE_SERIAL_PORT
    5763    je      SHORT .IdentifyDriveFromSerialPort
     64%endif
    5865    jmp     IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH
     66%ifdef MODULE_SERIAL
    5967.IdentifyDriveFromSerialPort:
    6068    jmp     SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH
    61 
     69%endif
    6270
    6371;--------------------------------------------------------------------
     
    7785ALIGN JUMP_ALIGN
    7886Device_OutputCommandWithParameters:
     87%ifdef MODULE_SERIAL
    7988    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
    8089    jnz     SHORT .OutputCommandToSerialPort
     90%endif
    8191    jmp     IdeCommand_OutputWithParameters
     92%ifdef MODULE_SERIAL
    8293ALIGN JUMP_ALIGN
    8394.OutputCommandToSerialPort:
    8495    jmp     SerialCommand_OutputWithParameters
    85 
     96%endif
    8697
    8798;--------------------------------------------------------------------
     
    98109ALIGN JUMP_ALIGN
    99110Device_SelectDrive:
     111%ifdef MODULE_SERIAL
    100112    test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
    101113    jnz     SHORT ReturnSuccessForSerialPort
     114%endif
    102115    jmp     IdeCommand_SelectDrive
     116%ifdef MODULE_SERIAL
    103117ReturnSuccessForSerialPort:
    104118    xor     ax, ax
    105119    ret
     120%endif
Note: See TracChangeset for help on using the changeset viewer.