Changeset 175 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Oct 22, 2011, 9:04:01 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/Device.asm
r161 r175 17 17 ;-------------------------------------------------------------------- 18 18 Device_FinalizeDPT: 19 %ifdef MODULE_SERIAL 19 20 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 20 jnz SHORT ReturnSuccessForSerialPort 21 jnz SHORT .FinalizeDptForSerialPortDevice 22 %endif 21 23 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 25 28 26 29 ;-------------------------------------------------------------------- … … 35 38 ;-------------------------------------------------------------------- 36 39 Device_ResetMasterAndSlaveController: 40 %ifdef MODULE_SERIAL 37 41 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 38 42 jnz SHORT ReturnSuccessForSerialPort 43 %endif 39 44 jmp IdeCommand_ResetMasterAndSlaveController 40 45 … … 54 59 ;-------------------------------------------------------------------- 55 60 Device_IdentifyToBufferInESSIwithDriveSelectByteInBH: 61 %ifdef MODULE_SERIAL 56 62 cmp BYTE [cs:bp+IDEVARS.bDevice], DEVICE_SERIAL_PORT 57 63 je SHORT .IdentifyDriveFromSerialPort 64 %endif 58 65 jmp IdeCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 66 %ifdef MODULE_SERIAL 59 67 .IdentifyDriveFromSerialPort: 60 68 jmp SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH 61 69 %endif 62 70 63 71 ;-------------------------------------------------------------------- … … 77 85 ALIGN JUMP_ALIGN 78 86 Device_OutputCommandWithParameters: 87 %ifdef MODULE_SERIAL 79 88 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 80 89 jnz SHORT .OutputCommandToSerialPort 90 %endif 81 91 jmp IdeCommand_OutputWithParameters 92 %ifdef MODULE_SERIAL 82 93 ALIGN JUMP_ALIGN 83 94 .OutputCommandToSerialPort: 84 95 jmp SerialCommand_OutputWithParameters 85 96 %endif 86 97 87 98 ;-------------------------------------------------------------------- … … 98 109 ALIGN JUMP_ALIGN 99 110 Device_SelectDrive: 111 %ifdef MODULE_SERIAL 100 112 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 101 113 jnz SHORT ReturnSuccessForSerialPort 114 %endif 102 115 jmp IdeCommand_SelectDrive 116 %ifdef MODULE_SERIAL 103 117 ReturnSuccessForSerialPort: 104 118 xor ax, ax 105 119 ret 120 %endif
Note:
See TracChangeset
for help on using the changeset viewer.