/* SCCS_ID @(#)dios.h    	3.3	 20:21:51 - 81/11/27 */

#ifndef LOCALS_INCLUDED
# include <sys/local.h>
#endif

#define MAXDIOS 16      /* maximum number of dioses */

extern short diosaddr[];        /* dios device addresses indexed by
				/* dios minor device */
/*
 * DIOS commands
 */
#define DISARM_DIOS     0xC0
#define ENABLE_DIOS     0x40
#define DISABLE_DIOS    0x80
#define READPIQ         0x01
#define KILL_CMD        0x02
#define ACTIVE_CMD      0x00

/*
 * DIOS status bits
 */
#define KILL_STATUS     0x01
#define PIQEMPTY        0x02

/*
 * PIQ fields
 */
#define PIQ_DEVICE      0x00FF
#define PIQ_REASON      0x0F00
#define PIQ_VALID       0x8000
