/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-*
 *									    *
 *	Copyright (C) 1991 by John E. Lloyd.				    *
 *									    *
 *	Information on copyright permissions, as well as a complete	    *
 *	disclaimer of warranty, is given in the file COPYRIGHT.		    *
 *									    *
 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
/* Exercising/test program for the XYCOM XVME 203 clock timer board */

extern unsigned char *rciIOpage;

#define CTRS_COM_BUF	(rciIOpage[0x1003])
#define CTRS_DATA_BUF	(rciIOpage[0x1001])
#define ICTL_COM_BUF	(rciIOpage[0x100b])
#define ICTL_DATA_BUF	(rciIOpage[0x1009])
#define CSR		(rciIOpage[0x1081])

typedef struct {
	int command;
#define SET_CTRS		1
#define GET_CTRS		2
#define RESET_CTRS		3
#define LOAD_AND_ARM_CTRS	4
#define LOAD_CTRS		5
#define SAVE_CTRS		6
#define DISARM_CTRS		7
#define ARM_CTRS		8
#define READ_CTRS		9
#define GET_CTRS_STATUS		10

#define RESET_ICTL		20
#define SET_MODE_ICTL		21
#define CLEAR_IMR_BIT		22
#define SET_IMR_BIT		23
#define CLEAR_IRR_BIT		24
#define SET_IRR_BIT		25
#define SET_ACR_ICTL		26
#define GET_ICTL		27
#define ENABLE_ICTL		28
#define DISABLE_ICTL		29
#define GET_ICTL_STATUS		30
#define SET_VECTOR		31

#define GET_CSR			40
#define SET_CSR			41

	unsigned mask;
	int counter;
	int addr;
	union {
	    unsigned short s;
	    unsigned char c[2];
	  } value;
	  } XC_BLK;

	
