
/***********************************************************************
 * file: am_cmd.h
 * part#:
 * internal sequence#:
 *
 *	**************************************************************
 *	*     "(c)Copyright Hewlett-Packard Company, 1984.*  All     *
 *	*    rights are reserved.  Copying or other reproduction     *
 *	*    of this program except for archival purposes is         *
 *	*    prohibited without the prior written consent of         *
 *	*    Hewlett-Packard Company."				     *
 *	**************************************************************
 *
 *		Pisces Q-DOS project
 *		Andy Rood  Kernel project lead
 *		Bob Cline  Kernel project engineer
 *		-----------------------------------------------------
 *		initial					10/83   rcc
 */
/**********************************************************************
 * am_cmd.h
 * 	This header file contains several ahndy macros and constants
 *	for the efficient and easy handling of amigo hpib routines.
 **********************************************************************/

/*
 * command codes for amigo hpib commands.  These identify the commands. 
 */

#define A_IDNT		0x60	/* identify command code */
#define A_DSAD		0x68	/* standard amigo secondary address code */
#define A_DSTAT		0x03	/* status command code */
#define A_DCLR		0x70	/* device clear command code */
#define H_DCLR		0x04	/* additional device command clear code */
#define A_DSJ		0x70	/* dsj (one byte status) command code */
#define A_RADDR		0x14	/* get address command code */
#define A_BWRITE	0x69	/* buffered write command code secondary */
#define A_WRITE		0x08	/* buffered write command code */
#define A_RECV		0x60	/* secondary to direct device to receive data */
#define A_SEEK		0x02	/* seek command code */
#define A_BREAD		0x6A	/* buffered read command code secondary */
#define A_READ		0x05	/* buffered read command code */
#define A_SEND		0x60	/* secondary to direct device to send data */
#define A_VERIFY	0x07	/* verify command code */
#define A_INIT		0x0B	/* initialize command code */
#define A_FORMATS	0x6C	/* format command code secondary */
#define A_FORMAT	0x18	/* format command code */
#define A_FORMATM	0x02	/* format command mask for setting overide */
#define A_FORMPAT	0333	/* format command fill pattern */

#define AM_HIGH 1	/* parallel poll high/low wait indicators */
#define AM_LOW  0

#define FAKEDEV 0	/* fake device number to pass with dcalls to hpib */

#define AM_HPIB_PPOLL_TIME 10000	/* max parallel poll wait */

