	SUBTTL	INTELLIGENT SASI INTERFACE HOST DEFINITIONS
;*************************************************************************
;
;	THIS MODULE DEFINES THE ISASI DEFINITIONS NEEDED BY A HOST
; COMPUTER TO INTERFACE ITS SOFTWARE TO THE ISASI BOARD AND ITS
; FIRMWARE.
;
;*************************************************************************
;
;	REVISIONS:
;
; 1.0 -	18 MAR 84   GRH
;	Removed from the HDMON program and extended for the Boot PROM.
;
;*************************************************************************
;
;	PORTS & BITS
;
ISASIBAS EQU	0D8H		;BASE ADDRESS OF ISASI PORTS
HDATA	EQU	ISASIBAS + 1	;HOST INTERFACE DATA I/O PORT

HSTATUS	EQU	ISASIBAS	;HOST INTERFACE CONTROL/STATUS INPUT PORT
HBUSYB	EQU	0		;HOST BUSY STATUS BIT
HFERRB	EQU	1		;HOST FIRMWARE ERROR BIT
HERRB	EQU	7		;HOST ERROR BIT

HCMD	EQU	HSTATUS		;HOST INTERFACE COMMAND PORT
HINT	EQU	0		;HOST INTERRUPT (CMD EXECUTE) BIT
HXIOPBB	EQU	6		;HOST EXECUTE IOPB COMMAND BIT
HRESET	EQU	7		;HOST ADAPTER RESET BIT

HIOPBL	EQU	01H		;SET IOPB LO ADDR CMD
HIOPBH	EQU	03H		;SET IOPB HI ADDR CMD
HIOPBX	EQU	05H		;SET IOPB XADDR CMD
HDIAG0	EQU	07H		;DUMP FIRMWARE DIAGNOSTIC
HDIAG1	EQU	09H		;ECHO DATA IN TO DATA OUT & STATUS REGS
HDIAG2	EQU	0BH		;TEST HOST MEMORY R/W
HDIAG3	EQU	0DH		;BLOCK MOVE
HSPAR1	EQU	0FH		;SPARE

HEXEC	EQU	(1 SHL HXIOPBB) + (1 SHL HINT)	;EXECUTE IOPB COMMAND


;
;	IOPB OFFSETS
;
PBCMD	EQU	0	;COMMAND BYTE
LOGCMD	EQU	0	;LOG ON DISK DRIVE COMMAND
RDCMD	EQU	1	;READ SECTOR COMMAND
WRCMD	EQU	2	;WRITE SECTOR COMMAND
FMTCMD	EQU	3	;FORMAT TRACK COMMAND
RECCMD	EQU	4	;RECALIBRATE COMMAND
SEKCMD	EQU	5	;SEEK COMMAND
SPRCMD	EQU	6	;SPARE
DEFCMD	EQU	7	;DEFINE FLOPPY DISK COMMAND

PBDRV	EQU	1	;DRIVE BYTE

PBTRK	EQU	2	;TRACK WORD

PBSEC	EQU	4	;SECTOR WORD (FORMAT INTERLEAVE, FLOPPY PARAMS)

PBFLG	EQU	6	;FLAGS (LOG- 0: FULL, BLOCKING (SAME AS CP/M))
PBLOG	EQU	0	;LOGON REQUEST BIT #
PBRTRY	EQU	7	;DISABLE RETRYS BIT

PBDMA	EQU	7	;XFER ADDRESS WORD

PBDMAX	EQU	9	;XFER BANK ADDRESS BYTE

PBSTAT	EQU	10	;SENSE STATUS WORDS (4 BYTES)

PBSP1	EQU	14	;SPARES
PBSP2	EQU	15
IOPBSIZ	EQU	16	;SIZE OF THIS IOPB
