1 | ; Project name : XTIDE Universal BIOS |
---|
2 | ; Description : IDE Device DMA transfer functions. |
---|
3 | |
---|
4 | ; |
---|
5 | ; XTIDE Universal BIOS and Associated Tools |
---|
6 | ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. |
---|
7 | ; |
---|
8 | ; This program is free software; you can redistribute it and/or modify |
---|
9 | ; it under the terms of the GNU General Public License as published by |
---|
10 | ; the Free Software Foundation; either version 2 of the License, or |
---|
11 | ; (at your option) any later version. |
---|
12 | ; |
---|
13 | ; This program is distributed in the hope that it will be useful, |
---|
14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | ; GNU General Public License for more details. |
---|
17 | ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
18 | ; |
---|
19 | |
---|
20 | ; Structure containing variables for DMA transfer functions. |
---|
21 | ; This struct must not be larger than IDEPACK without INTPACK. |
---|
22 | struc DMAVARS ; Must not be larger than 9 bytes! See IDEPACK in RamVars.inc. |
---|
23 | endstruc |
---|
24 | |
---|
25 | |
---|
26 | ; Section containing code |
---|
27 | SECTION .text |
---|
28 | |
---|
29 | ;-------------------------------------------------------------------- |
---|
30 | ; IdeDmaTransfer_StartWithCommandInAL |
---|
31 | ; Parameters: |
---|
32 | ; AL: IDE command that was used to start the transfer |
---|
33 | ; (all PIO read and write commands including Identify Device) |
---|
34 | ; ES:SI: Ptr to normalized data buffer |
---|
35 | ; DS:DI: Ptr to DPT (in RAMVARS segment) |
---|
36 | ; SS:BP: Ptr to IDEPACK |
---|
37 | ; Returns: |
---|
38 | ; AH: INT 13h Error Code |
---|
39 | ; CX: Number of successfully transferred sectors |
---|
40 | ; CF: Cleared if success, Set if error |
---|
41 | ; Corrupts registers: |
---|
42 | ; AL, BX, DX, SI, ES |
---|
43 | ;-------------------------------------------------------------------- |
---|
44 | ALIGN JUMP_ALIGN |
---|
45 | IdeDmaTransfer_StartWithCommandInAL: |
---|