/* * * Definition of interupt register * * */ #ifndef __INTREG_H #define __INTREG_H caddr_t vme_mapopen(int, caddr_t, size_t); caddr_t vme_mapclose(caddr_t, int); #define INTREG_SIZE 0x10 #define SLEEP_TIME 200000 typedef volatile struct{ unsigned short latch[2]; unsigned short flipflop; unsigned short in; unsigned short pulse; unsigned short level; unsigned short csr[2]; } IntReg; IntReg *ir; /* CSR SET data-bit write read D07 -- busy 3 D06 enable 3 enable 3 D05 -- busy 1/2 D04 enable 1/2 envable 1/2 D03 mask 1/2 mask 1/2 D02 -- -- D01 clr 1/2 -- D00 clr 3 -- */ #endif