1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Serial Device Command functions.
|
---|
3 |
|
---|
4 | ; Section containing code
|
---|
5 | SECTION .text
|
---|
6 |
|
---|
7 | ;--------------------------------------------------------------------
|
---|
8 | ; SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH
|
---|
9 | ; Parameters:
|
---|
10 | ; BH: Drive Select byte for Drive and Head Select Register
|
---|
11 | ; DS: Segment to RAMVARS
|
---|
12 | ; ES:SI: Ptr to buffer to receive 512-byte IDE Information
|
---|
13 | ; CS:BP: Ptr to IDEVARS
|
---|
14 | ; Returns:
|
---|
15 | ; AH: INT 13h Error Code
|
---|
16 | ; CF: Cleared if success, Set if error
|
---|
17 | ; Corrupts registers:
|
---|
18 | ; AL, BL, CX, DX, SI, DI, ES
|
---|
19 | ;--------------------------------------------------------------------
|
---|
20 | ALIGN JUMP_ALIGN
|
---|
21 | SerialCommand_IdentifyDeviceToBufferInESSIwithDriveSelectByteInBH:
|
---|
22 |
|
---|
23 |
|
---|
24 | ;--------------------------------------------------------------------
|
---|
25 | ; SerialCommand_OutputWithParameters
|
---|
26 | ; Parameters:
|
---|
27 | ; BH: Non-zero if 48-bit addressing used
|
---|
28 | ; BL: IDE Status Register bit to poll after command
|
---|
29 | ; ES:SI: Ptr to buffer (for data transfer commands)
|
---|
30 | ; DS:DI: Ptr to DPT (in RAMVARS segment)
|
---|
31 | ; SS:BP: Ptr to IDEREGS_AND_INTPACK
|
---|
32 | ; Returns:
|
---|
33 | ; AH: INT 13h Error Code
|
---|
34 | ; CF: Cleared if success, Set if error
|
---|
35 | ; Corrupts registers:
|
---|
36 | ; AL, BX, CX, DX, (ES:SI for data transfer commands)
|
---|
37 | ;--------------------------------------------------------------------
|
---|
38 | ALIGN JUMP_ALIGN
|
---|
39 | SerialCommand_OutputWithParameters:
|
---|
40 |
|
---|
41 |
|
---|