www.pudn.com > hpbios.rar > AHDSK.EQU, change:1998-12-03,size:2617b


;	[]===========================================================[] 
; 
;	NOTICE: THIS PROGRAM BELONGS TO AWARD SOFTWARE INTERNATIONAL(R) 
;	        INC. IT IS CONSIDERED A TRADE SECRET AND IS NOT TO BE 	 
;	        DIVULGED OR USED BY PARTIES WHO HAVE NOT RECEIVED	 
;	        WRITTEN AUTHORIZATION FROM THE OWNER. 
; 
; 	[]===========================================================[] 
; 
 
;---------------------------------------------------------------------------- 
;Rev	Date	 Name	Description 
;---------------------------------------------------------------------------- 
;R02	12/02/98 KVN	Support IDE DMA transfer function 
;R01	11/15/96 KVN	Added IDE HDD Int13 Extensions function 
 
;[]-----------------------------------[] 
; 
;   Award Software BIOS 
;         AHDSK Equates 
;   Initial Revision 3-May-1990 
; 
;[]-----------------------------------[] 
 
 
;;;;;;;;;;;;; HARD DISK WAIT CONSTANTS 
 
WAITCPU_RESET_ON	EQU	150		; 40 microseconds for reset pulse 
 
;Before issuing a command, we wait for previous seeks to be complete. 
;This value tells us how many times we retest. 
 
WAITCPU_NO_SEEK		EQU	1800H		; number of times to recheck 
						; if seek not yet complete. 
 
;;;;;;;;;;;;; STACK REFERENCES 
 
DRIVE			EQU	BYTE PTR -1[BP] 
NUMDSKS			EQU	BYTE PTR -2[BP] 
NUMSECS			EQU	BYTE PTR -3[BP] 
HD_CMD			EQU	BYTE PTR -4[BP] 
SECTOR_PER_BLOCK	EQU	BYTE PTR -5[BP] 
PORT_MODULATE		EQU	BYTE PTR -6[BP] 
 
FUNC_CMD		EQU	BYTE PTR -7[BP] 
Disk_Address_Pkt	struc 
DAP_Packet_Size		db	? 
DAP_Reserve		db	? 
DAP_Block_Count		dw	? 
DAP_Buffer_Address	dd	? 
DAP_Lo_Block_Number	dd	? 
DAP_Hi_Block_Number	dd	? 
Disk_Address_Pkt	ends 
 
;R02 start 
AHDSK_Reserve_Stk_Buf = 7 
;----- for IDE_DMA_Transfer ----- 
;physical region descriptor table 
PRD_Descriptor_Table	EQU	dword ptr -18[bp]	;physical region descriptor table buffer 
	;This area from -8[bp] to -18[bp] total 11 bytes buffer 
PRD_Base_Addr		EQU	0			;Memory region physical base address (bit 31:1/bit0=0) 
PRD_Byte_Count		EQU	4			;Byte count (bit 15:1/bit0=0) 
PRD_EOT			EQU	6			;End of table (bit 15/bit14-0 are reserved) 
;-------------------------------- 
DMA_First_Byte		EQU	byte ptr -19[bp]	;reserve byte for align dword 
DMA_First_Offset	EQU	byte ptr -20[bp]	;reserve byte for align dword 
DMA_Trans_Ret_Offset	EQU	word ptr -22[bp]	;reserve byte for align dword 
PIO_Trans_Ret_Offset	EQU	word ptr -24[bp]	;reserve byte for align dword 
			;fix offset is not locate dword address 
Total_NUMSECS		EQU	byte ptr -25[BP] 
Temp_NUMSECS		EQU	byte ptr -26[BP] 
 
ifdef	IDE_DMA_Transfer 
AHDSK_Reserve_Stk_Buf = 26 
endif	;IDE_DMA_Transfer 
;R02 end