	SUBTTL	INTELLIGENT SASI HOST ADAPTER HOST DEFINITIONS
;****************************************************************************
;
;	THIS MODULE DEFINES THE ISHA DEFINITIONS NEEDED BY A HOST COMPUTER TO
; INTERFACE ITS SOFTWARE TO THE ISHA BOARD AND ITS FIRMWARE.
;
;****************************************************************************
;
;	REVISIONS:
;
; 1.0 -	18 MAR 84   GRH
;	Removed from the HDMON program and extended for the Boot PROM.
;
; 1.1 -	22 FEB 86   GRH
;	Removed extraneous definitions already defined in 'COMIOPB.DEF' file.
;	Improved the bit definitions.
;	Changed 'ISASI' to 'ISHA'.
;
;****************************************************************************

;============================================================================
;
;				DATA PORT
;
;============================================================================
ISHABAS EQU	0D8H		;BASE ADDRESS OF ISHA PORTS
HDATA	EQU	ISHABAS + 1	;HOST INTERFACE DATA I/O PORT
;
;============================================================================
;
;				STATUS PORT
;
;============================================================================
HSTATUS	EQU	ISHABAS		;HOST INTERFACE CONTROL/STATUS INPUT PORT
;
;	 7	       0
;	| | | | | | | | |
;	 ^           ^ ^___ 1: ADAPTOR BUSY, 0: ADAPTOR FREE
;	 |	     |_____ 1: FIRMWARE ERROR
;	 |_________________ 1: ERROR
;
;   BIT DEFINITIONS:
HBUSYB	EQU	0		;HOST BUSY STATUS BIT
HFERRB	EQU	1		;HOST FIRMWARE ERROR BIT
HERRB	EQU	7		;HOST ERROR BIT
;
;============================================================================
;
;			HOST COMMAND PORT
;
;============================================================================
HCMD	EQU	HSTATUS		;HOST INTERFACE COMMAND PORT
;
;	 7	       0
;	| | |0| | | | | |
;	 ^ ^   \_____/ ^___ 1: HOST INTERRUPT FOR COMMAND
;	 | |	  |________ COMMANDS (SEE BELOW)
;	 | |_______________ 1: EXECUTE IOPB COMMAND
;	 |_________________ 1: RESET, 0: RELEASE THE ADAPTOR
;
;   BIT DEFINITIONS:
HINT	EQU	0		;HOST INTERRUPT (CMD EXECUTE) BIT
HXIOPBB	EQU	6		;HOST EXECUTE IOPB COMMAND BIT
HRESET	EQU	7		;HOST ADAPTER RESET BIT
;
;   COMMANDS:
;
HIOPBL	EQU	00000001B	;SET IOPB LO ADDR CMD
HIOPBH	EQU	00000011B	;SET IOPB HI ADDR CMD
HIOPBX	EQU	00000101B	;SET IOPB XADDR CMD
HDIAG0	EQU	00000111B	;DUMP FIRMWARE DIAGNOSTIC
HDIAG1	EQU	00001001B	;ECHO DATA IN TO DATA OUT & STATUS REGS
HDIAG2	EQU	00001011B	;TEST HOST MEMORY R/W
HDIAG3	EQU	00001101B	;BLOCK MOVE
HDIAG4	EQU	00001111B	;PRINT ASCII TEXT TO PORT
HRETF	EQU	00010001B	;RETURN FIRMWARE VERSION
;
HEXEC	EQU	(1 SHL HXIOPBB) + (1 SHL HINT)	;EXECUTE IOPB COMMAND
;
;	END	FILE
