/* register defs for the shared memory device */

struct shmdevice {
  unsigned short dma[2];	/* dma registers (not used) */
  unsigned short csr;		/* csr for sending programed interrupts */
  unsigned char reserved1[6];	/* reserved space */
  unsigned short cableDma;	/* cable DMA control register */
  unsigned char reserved2[2];	/* reserved space */
  unsigned short cmdreg;	/* Q22 bus command register */
  unsigned char reserved3[6];	/* reserved space */
  unsigned char remnodeCmd;	/* remote node command register */
  unsigned char reserved4[1];	/* reserved space */
  unsigned char addrPage;	/* remote node address page reg */
  unsigned char reserved5[2];	/* reserved space */
  unsigned char addrModify;	/* remote node addree modifier reg */
  unsigned char reserved6[2];	/* reserved space */
};

/* command bit settings in the remnodeCmd register */


#define	SHM_VME_IACKADD1	0x01
#define	SHM_VME_IACKADD2	0x02
#define	SHM_VME_IACKADD3	0x04
#define SHM_USEPAGEREG		0x08
#define SHM_LOCKVME		0x10
#define SHM_SETPRIT		0x20
#define SHM_CLEARPRIT		0x40
#define SHM_RESETVME		0x80



  
