- Adapted indenation to new agreed upon system

- Fixed bad status in poldi zug driver
This commit is contained in:
koennecke
2009-02-13 09:01:03 +00:00
parent 6c7bb14fad
commit eb72d5c486
151 changed files with 38234 additions and 38208 deletions

View File

@ -9,7 +9,7 @@
#ifndef VMEMAGGI
#define VMEMAGGI
#define SLOTBASE 0x1000 /* change when Hitec in different VME slot */
#define SLOTBASE 0x1000 /* change when Hitec in different VME slot */
#define MAPREG 0x424
/**
* VME has several completely different address ranges:
@ -28,21 +28,21 @@ struct PSCreg {
REG16BIT data_hi;
REG16BIT data_lo;
REG16BIT not_used;
} ;
};
/* Bits of return status of the stat_and_addr word */
#define PSC_REPLY_ERROR 0x20000
#define PSC_STATUS_REPLY_READFLAG 0x8000
#define PSC_STATUS_REPLY_FLAG_MISMATCH 0x4000
#define PSC_STATUS_REPLY_BUFFERFULL 0x2000
#define PSC_STATUS_REPLY_DSP_STOPPED 0x1000 /* disabled */
#define PSC_STATUS_REPLY_DSP_STOPPED 0x1000 /* disabled */
#define PSC_STATUS_REPLY_PS_LOCAL 0x0800
#define PSC_STATUS_REPLY_LINK_DOWN 0x0400
#define PSC_STATUS_REPLY_ADDR_MISMATCH 0x0080
#define PSC_STATUS_REPLY_DATA_MISMATCH 0x0040
#define PSC_STATUS_REPLY_SOFTTIMEOUT 0x0020
#define PSC_STATUS_REPLY_FPGATIMEOUT 0x0010
#define PSC_STATUS_REPLY_STRLEN 256
#define PSC_STATUS_REPLY_STRLEN 256
/* error codes */
#define BADSLOT 70