/* * * Definition of 'normal' TMC * * */ #ifndef __TMC_H #define __TMC_H caddr_t vme_mapopen( int, caddr_t, size_t ); #ifdef VMELIB06_USE caddr_t vme_mapclose( caddr_t, int ); #else int vme_mapclose(int); #endif #define TMC_DATA_SIZE 4022 #define TMC_SIZE 16208 // 0x3f50 - 0x0000 typedef struct { unsigned short header; unsigned short content; } event; typedef volatile struct { unsigned short dready; unsigned short reserved[15]; unsigned short ntotal; unsigned short status; unsigned short t0; unsigned short lastwp; event data[ TMC_DATA_SIZE ]; unsigned short Drun; unsigned short Dcstsp; unsigned short Dcount; unsigned short Ddisp; unsigned short Dsuboff; unsigned short Dedge; unsigned short Dmodule; unsigned short reserved2; unsigned short offset[ TMC_CH ]; } TMC_FORM; #endif