acnet_errors_h

/*
**	Copyright 1991-2017, Fermi Research Alliance, LLC.  All rights reserved.
*/
/******************************************************************************/
/* acnet_errors.h
**
**	This file includes symbolic representations for many ACNET
**	error codes and facilities.
**
**  MODIFICATION HISTORY:
**
**	V0.2	K Cahill / Accelerator Controls		09-Apr-93
**	Added BPM facility
**
**	V0.3	B Hendricks / Accelerator Controls	15-Apr-93
**	Renamed TECAR facility from _TECAR_ to TECAR_
**
**	V0.4	S Shtirbu / Accelerator Controls	15-May-93
**	DBM codes used by the new database added
**
**	V0.5	J Smedinghoff / Accelerator Controls	19-Nov-93
**	Updated FTP facility
**
**	V0.6	S Shtirbu / Accelerator Controls	19-Nov-93
**	SQL facility added (for Sybase/dbinterface/db_send)
**
**	V0.7	B Hendricks / Accelerator Controls	08-Dec-93
**	Added some more GAS_TEV errors
**
**	V0.8	B Hendricks / Accelerator Controls	16-Jun-94
**	Added IOMAC errors
**
**	V0.9	B Hendricks / Accelerator Controls	24-Jun-94
**	Began using 'ERRFAC_' prefix for all error facility codes
**
**	V1.0	B Hendricks / Accelerator Controls	27-Jun-95
**	Added CAMFE2, OAF, OAFC, OAFP, OAM, OAMC, OAMP, and
**	Consolidator errors
**
**	V1.1	B Hendricks / Accelerator Controls	29-Jun-95
**	Added RDAT_CAM and RDAT_LIN errors and renamed GAS_TEV
**	to CAMAC_FE
**
**	V1.2	B Hendricks / Accelerator Controls	26-Jan-96
**	Replaced BPM errors with the correct MOOC ones
**
**	V1.3	G Johnson / Accelerator Controls	14-Mar-96
**	Added DOWNLD facility and NETAPI facility errors
**
**	V1.4	R Joshel / Accelerator Controls		10-Apr-96
**	Added LOCK facility.
**
**	V1.5	G Johnson / Accelerator Controls	23-Jul-96
**	Added more DOWNLD and NETAPI errors
**
**	V1.6	G Johnson / Accelerator Controls	02-Aug-96
**	Added one more DOWNLD error
**
**	V1.7	K Yacoben / Accelerator Controls	13-Aug-96
**	Added Application Data Storage facility
**
**	V1.8	B Hendricks / Accelerator Controls	26-Jan-00
**	Added Time Line Generator (TLG) facility
**
**	V1.9	B Hendricks / Accelerator Controls	01-Apr-00
**	Added DAE ACNET bridge (DAE_BRDG) facility
**
**	V2.0	T Zingelman / Accelerator Controls	01-Jun-00
**	Imported into MOOC, added CVS tag.
**	Please email zingelman@fnal.gov when this file get changed on
**	the VAX/VMS side so it can be updated in CVS.  Thanks.
**
**	V2.1	B Hendricks / Accelerator Controls	27-Nov-01
**	Added LabView facility
**
*/
/******************************************************************************/


#ifndef ACNET_ERRORS_DEFINED				/* do this only once */
#define	ACNET_ERRORS_DEFINED

/*
**  Facility codes
*/
#define	ERRFAC_ACNET	1				/* ACNET facility code */
#define	ERRFAC_FSHARE	2				/* Filesharing facility code */
#define	ERRFAC_VAXAPM	3				/* VAX APM facility code */
#define	ERRFAC_LJ	4				/* Lumberjack facility code */
#define	ERRFAC_DATA_LOG	4				/* (obsolete) Datalogger facility code */
#define	ERRFAC_CBS	5				/* CBS library routine facility code */
#define	ERRFAC_CMU	6				/* console message (CMU) facility code */
#define	ERRFAC_CLIB	7				/* CLIB library routine facility code */
#define	ERRFAC_LOCK	8				/* LOCK facility code */
#define	ERRFAC_APPDS	9				/* APPDS facility code */
#define	ERRFAC_APPL	13				/* APPLication specific facility code */
#define	ERRFAC_DIO	14				/* DIO facility code */
#define	ERRFAC_FTP	15				/* fast time plot facility code */
#define	ERRFAC_DBM	16				/* DBM facility code */
#define	ERRFAC_DPM	17				/* DPM facility code */
#define	ERRFAC_CAMAC_FE	18				/* CAMAC FE driver facility code */
/* #define	ERRFAC_GAS_TEV	18 */			/* Tev FE facility code */
/* #define	ERRFAC_GAS_SY	19 */			/* SY FE facility code */
/* #define	ERRFAC_GAS_PBAR	20 */			/* P-bar FE facility code */
#define	ERRFAC_IOMAC	21				/* IOMAC facility code */
/* #define	ERRFAC_GAS_BSTR	22 */			/* Booster FE facility code */
#define	ERRFAC_GAS_PAUX	23				/* PAUX facility code */
/* #define	ERRFAC_GAS_TRF	24 */			/* TRF FE facility code */
#define	ERRFAC_OOC	25				/* OOC facility code */
#define	ERRFAC_RDAT_FRG	27				/* refrigerator system facility code */
#define	ERRFAC_SAV_RST	31				/* save/restore facility code */
#define	ERRFAC_RDAT_CAM	33				/* CAMAC FE retdat/setdat facility code */
/* #define	ERRFAC_RDAT_TEV	33 */			/* Tev FE retdat/setdat facility code */
/* #define	ERRFAC_RDAT_MR	34 */			/* DEC-M retdat/setdat facility code */
/* #define	ERRFAC_RDAT_BOO	35 */			/* Booster FE retdat/setdat facility code */
#define	ERRFAC_RDAT_LIN	36				/* Linac retdat/setdat facility code */
/* #define	ERRFAC_RDAT_SY	37 */			/* SY FE retdat/setdat facility code */
/* #define	ERRFAC_RDAT_PB	38 */			/* P-bar FE retdat/setdat facility code */
#define	ERRFAC_RDAT_OPR	39				/* OPER retdat/setdat facility code */
#define	ERRFAC_RDAT_AUX	40				/* PAUX retdat/setdat facility code */
/* #define	ERRFAC_RDAT_TRF	41 */			/* TRF FE retdat/setdat facility code */
#define	ERRFAC_RDAT_BRF	43				/* DEC-BRF retdat/setdat facility code */
#define	ERRFAC_RDAT_QPM	44				/* low beta QPM retdat/setdat facility code */
#define	ERRFAC_CAMFE2	45				/* additional CAMAC FE facility code */
#define	ERRFAC_TECAR	46				/* TECAR */
#define	ERRFAC_RDAT_BPM	47				/* BPM facility */
#define	ERRFAC_OAF	48				/* open access front end facility */
#define	ERRFAC_OAFC	49				/* open access front end contributors facility */
#define	ERRFAC_OAFP	50				/* open access front end processes facility */
#define	ERRFAC_OAM	52				/* open access model facility */
#define	ERRFAC_OAMC	53				/* open access model contributors facility */
#define	ERRFAC_OAMP	54				/* open access model processes facility */
#define	ERRFAC_OAFP2	54				/* open access front end processes facility 2 */
#define	ERRFAC_SQL	55				/* SQL (Sybase/dbinterface) */
#define	ERRFAC_MECAR	56				/* MECAR FE facility code */
#define	ERRFAC_MOOC	57				/* MOOC FE facility code */
#define	ERRFAC_MOOC_INTERNAL	58			/* internal MOOC FE facility code (users should never see this) */
#define	ERRFAC_MOOC_INTERNAL2	59			/* internal MOOC FE facility code (users should never see this) */
#define	ERRFAC_TLG	60				/* TLG facility code */
#define	ERRFAC_CNSLIDTR	61				/* Consolidator FE facility code */
#define	ERRFAC_FIXTAR	62				/* FIXTAR OAF facility code */
#define	ERRFAC_DOWNLD	63				/* DOWNLD facility code */
#define	ERRFAC_NETAPI	64				/* NETAPI facility for IP communications */
#define	ERRFAC_DAE_BRDG	65				/* DAE bridge facility code */
#define	ERRFAC_DAE	66				/* DAE facility code */
#define	ERRFAC_LABVIEW	67				/* LabView FE facility code */
#define	ERRFAC_BPM	68				/* BPM facility */
#define	ERRFAC_DMQ	72				/* DAQ Message Queue facility */

#define	ERRFAC_MAX_FACILITY	(ERRFAC_DMQ)		/* maximum facility */

/* Error code categories */

#define	ERROR_CAT_UNKNOWN	0			/* unknown */
#define	ERROR_CAT_SUCCESS	1			/* success code */
#define	ERROR_CAT_INFORMATIONAL	2			/* informational */
#define	ERROR_CAT_FATAL		3			/* fatal error */
#define	ERROR_CAT_RETRYABLE	4			/* retryable error */

/*
**  ACNET
*/
#define	ACNET_OK	0				/* successful completion */
#define	ACNET_SUCCESS	0				/* ACNET success code */
#define	ACNET_PEND	(ERRFAC_ACNET + (1*256))	/* operation is pending */
#define	ACNET_ENDMULT	(ERRFAC_ACNET + (2*256))	/* end multiple replies (on final reply) */
#define	ACNET_END	(ERRFAC_ACNET + (2*256))	/* end multiple replies (on final reply) */
#define	ACNET_SSR	(ERRFAC_ACNET + (3*256))	/* reply status reserved to support software seen */
#define	ACNET_USR	(ERRFAC_ACNET + (4*256))	/* reply status reserved to user software seen */
#define	ACNET_RETRY	(ERRFAC_ACNET + (-1*256))	/* retryable I/O error */
#define	ACNET_RIO	(ERRFAC_ACNET + (-1*256))	/* retryable I/O error */
#define	ACNET_NOLCLMEM	(ERRFAC_ACNET + (-2*256))	/* no local memory available */
#define	ACNET_NLM	(ERRFAC_ACNET + (-2*256))	/* no local memory available */
#define	ACNET_NOREMMEM	(ERRFAC_ACNET + (-3*256))	/* no remote memory available */
#define	ACNET_MRM	(ERRFAC_ACNET + (-3*256))	/* no remote memory available */
#define	ACNET_RPLYPACK	(ERRFAC_ACNET + (-4*256))	/* reply message packet assembly error */
#define	ACNET_RPE	(ERRFAC_ACNET + (-4*256))	/* reply message packet assembly error */
#define	ACNET_REQPACK	(ERRFAC_ACNET + (-5*256))	/* request message packet assembly error */
#define	ACNET_QPE	(ERRFAC_ACNET + (-5*256))	/* request message packet assembly error */
#define	ACNET_REQTMO	(ERRFAC_ACNET + (-6*256))	/* request timeout with queued at destination */
#define	ACNET_TMO	(ERRFAC_ACNET + (-6*256))	/* request timeout with queued at destination */
#define	ACNET_QUEFULL	(ERRFAC_ACNET + (-7*256))	/* request failed, destination queue full */
#define	ACNET_FUL	(ERRFAC_ACNET + (-7*256))	/* request failed, destination queue full */
#define	ACNET_BUSY	(ERRFAC_ACNET + (-8*256))	/* request failed, destination task busy */
#define	ACNET_BSY	(ERRFAC_ACNET + (-8*256))	/* request failed, destination task busy */
#define	ACNET_NOCON	(ERRFAC_ACNET + (-21*256))	/* not connected to the network */
#define	ACNET_NOT_CONNECTED	(ERRFAC_ACNET + (-21*256))	/* not connected to the network */
#define	ACNET_NCN	(ERRFAC_ACNET + (-21*256))	/* not connected to the network */
#define	ACNET_ARG	(ERRFAC_ACNET + (-22*256))	/* missing arguments */
#define	ACNET_IVM	(ERRFAC_ACNET + (-23*256))	/* invalid message length or buffer address */
#define	ACNET_NOSUCH	(ERRFAC_ACNET + (-24*256))	/* no such request or reply */
#define	ACNET_NO_SUCH	(ERRFAC_ACNET + (-24*256))	/* no such request or reply */
#define	ACNET_NSR	(ERRFAC_ACNET + (-24*256))	/* no such request or reply */
#define	ACNET_REQREJ	(ERRFAC_ACNET + (-25*256))	/* request to destination task was rejected */
#define	ACNET_CANCEL	(ERRFAC_ACNET + (-26*256))	/* request has been cancelled */
#define	ACNET_CANCELLED	(ERRFAC_ACNET + (-26*256))	/* request has been cancelled */
#define	ACNET_CAN	(ERRFAC_ACNET + (-26*256))	/* request has been cancelled */
#define	ACNET_NAME_IN_USE	(ERRFAC_ACNET + (-27*256))	/* task name already in use */
#define	ACNET_NCR	(ERRFAC_ACNET + (-28*256))	/* not connected as a RUM task */
#define	ACNET_NONODE	(ERRFAC_ACNET + (-30*256))	/* no such logical node */
#define	ACNET_NO_NODE	(ERRFAC_ACNET + (-30*256))	/* no such logical node */
#define	ACNET_NOD	(ERRFAC_ACNET + (-30*256))	/* no such logical node */
#define	ACNET_TRUNCREQ	(ERRFAC_ACNET + (-31*256))	/* truncated request */
#define	ACNET_TRUNC_REQUEST	(ERRFAC_ACNET + (-31*256))	/* truncated request */
#define	ACNET_TRQ	(ERRFAC_ACNET + (-31*256))	/* truncated request */
#define	ACNET_TRUNCRPLY	(ERRFAC_ACNET + (-32*256))	/* truncated reply */
#define	ACNET_TRUNC_REPLY	(ERRFAC_ACNET + (-32*256))	/* truncated reply */
#define	ACNET_TRP	(ERRFAC_ACNET + (-32*256))	/* truncated reply */
#define	ACNET_NOTASK	(ERRFAC_ACNET + (-33*256))	/* no such destination task */
#define	ACNET_NO_TASK	(ERRFAC_ACNET + (-33*256))	/* no such destination task */
#define	ACNET_TSK	(ERRFAC_ACNET + (-33*256))	/* no such destination task */
#define	ACNET_DISCONNECTED	(ERRFAC_ACNET + (-34*256))	/* replier task being disconnected */
#define	ACNET_DCN	(ERRFAC_ACNET + (-34*256))	/* replier task being disconnected */
#define	ACNET_LEVEL2	(ERRFAC_ACNET + (-35*256))	/* ACNET level II function error */
#define	ACNET_L2E	(ERRFAC_ACNET + (-35*256))	/* ACNET level II function error */
#define	ACNET_HARDIO	(ERRFAC_ACNET + (-41*256))	/* hard I/O error */
#define	ACNET_HARD_IO	(ERRFAC_ACNET + (-41*256))	/* hard I/O error */
#define	ACNET_HIO	(ERRFAC_ACNET + (-41*256))	/* hard I/O error */
#define	ACNET_NODE_DOWN	(ERRFAC_ACNET + (-42*256))	/* logical node down or offline */
#define	ACNET_DWN	(ERRFAC_ACNET + (-42*256))	/* logical node down or offline */
#define	ACNET_SYS	(ERRFAC_ACNET + (-43*256))	/* system service error */
#define	ACNET_NXE	(ERRFAC_ACNET + (-44*256))	/* untranslatable error */
#define	ACNET_BUG	(ERRFAC_ACNET + (-45*256))	/* network internal error */
#define	ACNET_NE1	(ERRFAC_ACNET + (-46*256))	/* VMS exceeded some quota or limit */
#define	ACNET_NE2	(ERRFAC_ACNET + (-47*256))	/* VMS no address for request/reply ID word */
#define	ACNET_NE3	(ERRFAC_ACNET + (-48*256))	/* VMS buffer/control block vector in use or block already locked */
#define	ACNET_UTIME	(ERRFAC_ACNET + (-49*256))	/* user-generated network timeout */
#define	ACNET_INVARG	(ERRFAC_ACNET + (-50*256))	/* invalid argument passed */
#define	ACNET_MEMFAIL	(ERRFAC_ACNET + (-51*256))	/* memory allocation failed */
#define	ACNET_NO_HANDLE	(ERRFAC_ACNET + (-52*256))	/* requested handle doesn't exist */

/*
**  Filesharing
*/
#define	FSHARE_OK	0				/* successful completion */
#define	FSHARE_SUCCESS	0				/* FSHARE success code */
#define	FSHARE_PENDING	2				/* FSHARE asynch pending OK */
#define	FSHARE_NOWBUF	(ERRFAC_FSHARE + (2*256))	/* no working buffer for FSWADC call */
#define	FSHARE_LOCKWAIT	(ERRFAC_FSHARE + (117*256))	/* record locked after after wait operation */
#define	FSHARE_LCKAW	(ERRFAC_FSHARE + (117*256))	/* record locked after after wait operation */
#define	FSHARE_LOCKREAD	(ERRFAC_FSHARE + (118*256))	/* record locked, but can be read */
#define	FSHARE_LCKBR	(ERRFAC_FSHARE + (118*256))	/* record locked, but can be read */
#define	FSHARE_BOF	(ERRFAC_FSHARE + (119*256))	/* beginning of file */
#define	FSHARE_NOTLOCK	(ERRFAC_FSHARE + (120*256))	/* record not locked */
#define	FSHARE_RNL	(ERRFAC_FSHARE + (120*256))	/* record not locked */
#define	FSHARE_FOUND	(ERRFAC_FSHARE + (121*256))	/* known file found */
#define	FSHARE_KNF	(ERRFAC_FSHARE + (121*256))	/* known file found */
#define	FSHARE_ALRDYLCK	(ERRFAC_FSHARE + (122*256))	/* record already locked */
#define	FSHARE_RAL	(ERRFAC_FSHARE + (122*256))	/* record already locked */
#define	FSHARE_DRAS	(ERRFAC_FSHARE + (123*256))	/* deleted (or non-existent) record accessed successfully */
#define	FSHARE_DUPKEY	(ERRFAC_FSHARE + (124*256))	/* record inserted has duplicate key */
#define	FSHARE_RECDUP	(ERRFAC_FSHARE + (124*256))	/* record inserted has duplicate key */
#define	FSHARE_INDXERR	(ERRFAC_FSHARE + (125*256))	/* record inserted but error on index update */
#define	FSHARE_IDXUER	(ERRFAC_FSHARE + (125*256))	/* record inserted but error on index update */
#define	FSHARE_EXCKEY	(ERRFAC_FSHARE + (126*256))	/* retieved record exceeds specified key value */
#define	FSHARE_RRXKEY	(ERRFAC_FSHARE + (126*256))	/* retieved record exceeds specified key value */
#define	FSHARE_NO_AST_SERVICE	(ERRFAC_FSHARE + (-1*256))	/* UTI AST service routine did not execute (could be at AST level) */
#define	FSHARE_ASYNCH	(ERRFAC_FSHARE + (-2*256))	/* asynchronous operation in progress */
#define	FSHARE_BUSY	(ERRFAC_FSHARE + (-2*256))	/* asynchronous operation in progress */
#define	FSHARE_TOOLONG	(ERRFAC_FSHARE + (-5*256))	/* maximum record length exceeded */
#define	FSHARE_MXRCLN	(ERRFAC_FSHARE + (-5*256))	/* maximum record length exceeded */
#define	FSHARE_TMO	(ERRFAC_FSHARE + (-6*256))	/* Filesharing timeout */
#define	FSHARE_NETTMO	(ERRFAC_FSHARE + (-6*256))	/* Filesharing timeout */
#define	FSHARE_USERLOCK	(ERRFAC_FSHARE + (-7*256))	/* write user lock is locked */
#define	FSHARE_USRLCK	(ERRFAC_FSHARE + (-7*256))	/* write user lock is locked */
#define	FSHARE_NOPRIV	(ERRFAC_FSHARE + (-8*256))	/* cns class nopriv to write */
#define	FSHARE_VUNERR	(ERRFAC_FSHARE + (-67*256))	/* VUN assign error (no table room) */
#define	FSHARE_VUNNTR	(ERRFAC_FSHARE + (-67*256))	/* VUN assign error (no table room) */
#define	FSHARE_VUNASSGN	(ERRFAC_FSHARE + (-68*256))	/* VUN already assigned */
#define	FSHARE_VUNAE	(ERRFAC_FSHARE + (-68*256))	/* VUN already assigned */
#define	FSHARE_NOVUN	(ERRFAC_FSHARE + (-69*256))	/* VUN never assigned */
#define	FSHARE_TCERR	(ERRFAC_FSHARE + (-70*256))	/* Filesharing operation type code error */
#define	FSHARE_FSOPER	(ERRFAC_FSHARE + (-70*256))	/* Filesharing operation type code error */
#define	FSHARE_FSOAER	(ERRFAC_FSHARE + (-71*256))	/* open argument error detected */
#define	FSHARE_FSRSER	(ERRFAC_FSHARE + (-72*256))	/* record size error detected */
#define	FSHARE_FSREQE	(ERRFAC_FSHARE + (-79*256))	/* Filesharing network request buffer size error */
#define	FSHARE_INVRCSIZ	(ERRFAC_FSHARE + (-85*256))	/* invalid record size */
#define	FSHARE_INVRSZ	(ERRFAC_FSHARE + (-85*256))	/* invalid record size */
#define	FSHARE_EXISTS	(ERRFAC_FSHARE + (-86*256))	/* record already exists */
#define	FSHARE_RAE	(ERRFAC_FSHARE + (-86*256))	/* record already exists */
#define	FSHARE_EOF	(ERRFAC_FSHARE + (-87*256))	/* end of file */
#define	FSHARE_DEVFUL	(ERRFAC_FSHARE + (-88*256))	/* device full, file extend error */
#define	FSHARE_NOREC	(ERRFAC_FSHARE + (-89*256))	/* record not found */
#define	FSHARE_INVREC	(ERRFAC_FSHARE + (-89*256))	/* record not found */
#define	FSHARE_NOTSEQ	(ERRFAC_FSHARE + (-90*256))	/* operation not sequential */
#define	FSHARE_LOCKED	(ERRFAC_FSHARE + (-92*256))	/* record locked by another process */
#define	FSHARE_IVMAXR	(ERRFAC_FSHARE + (-93*256))	/* invalid value for maximum record number */
#define	FSHARE_INVOP	(ERRFAC_FSHARE + (-94*256))	/* invalid operation */
#define	FSHARE_KEYERR	(ERRFAC_FSHARE + (-95*256))	/* invalid key or record */
#define	FSHARE_IDXERR	(ERRFAC_FSHARE + (-96*256))	/* index tree error */
#define	FSHARE_FILOCK	(ERRFAC_FSHARE + (-100*256))	/* file is locked */
#define	FSHARE_SUBFAIL	(ERRFAC_FSHARE + (-101*256))	/* submit or spool failed */
#define	FSHARE_SPLFAI	(ERRFAC_FSHARE + (-101*256))	/* submit or spool failed */
#define	FSHARE_CLSERR	(ERRFAC_FSHARE + (-102*256))	/* cannot close file */
#define	FSHARE_TYPERR	(ERRFAC_FSHARE + (-103*256))	/* error in file type */
#define	FSHARE_IVRFIL	(ERRFAC_FSHARE + (-105*256))	/* invalid related file */
#define	FSHARE_KEYSIZ	(ERRFAC_FSHARE + (-106*256))	/* key size too large */
#define	FSHARE_IVATTR	(ERRFAC_FSHARE + (-107*256))	/* invalid file attributes */
#define	FSHARE_IVFOP	(ERRFAC_FSHARE + (-108*256))	/* invalid file procesing options */
#define	FSHARE_NOFILE	(ERRFAC_FSHARE + (-109*256))	/* file not found */
#define	FSHARE_FSYNTX	(ERRFAC_FSHARE + (-110*256))	/* logical name error, syntax error in file name */
#define	FSHARE_BADDEV	(ERRFAC_FSHARE + (-111*256))	/* bad device type */
#define	FSHARE_FILACC	(ERRFAC_FSHARE + (-112*256))	/* file access error */
#define	FSHARE_DEADLK	(ERRFAC_FSHARE + (-118*256))	/* lock manager finds deadlock */
#define	FSHARE_LOCKWRIT	(ERRFAC_FSHARE + (-119*256))	/* file is write locked */
#define	FSHARE_DEVRO	(ERRFAC_FSHARE + (-119*256))	/* file is write locked */
#define	FSHARE_QIOERR	(ERRFAC_FSHARE + (-120*256))	/* QIO error */
#define	FSHARE_BADOP	(ERRFAC_FSHARE + (-121*256))	/* operation not supported */
#define	FSHARE_NOWRIT	(ERRFAC_FSHARE + (-122*256))	/* write to file opened for read only */
#define	FSHARE_PROT	(ERRFAC_FSHARE + (-122*256))	/* write to file opened for read only */
#define	FSHARE_NOTREADY	(ERRFAC_FSHARE + (-123*256))	/* device not ready */
#define	FSHARE_DNR	(ERRFAC_FSHARE + (-123*256))	/* device not ready */
#define	FSHARE_NOAST	(ERRFAC_FSHARE + (-124*256))	/* cannot deliver AST */
#define	FSHARE_FHWERR	(ERRFAC_FSHARE + (-125*256))	/* file header write error */
#define	FSHARE_FHRERR	(ERRFAC_FSHARE + (-126*256))	/* file header read error */
#define	FSHARE_OTHER	(ERRFAC_FSHARE + (-128*256))	/* not Filesharing specific error */

/*
**  VAXAPM
*/
#define	VAXAPM_OK	0				/* successful completion */
#define	VAXAPM_SUCCESS	0				/* VAXAPM success code */
#define	VAXAPM_SLVEXIT	(ERRFAC_VAXAPM + (2*256))	/* slave task has exited */
#define	VAXAPM_SLVXIT	(ERRFAC_VAXAPM + (2*256))	/* slave task has exited */
#define	VAXAPM_TSKSTOP	(ERRFAC_VAXAPM + (3*256))	/* VAXAPM stopped task on abort request */
#define	VAXAPM_TSKSTP	(ERRFAC_VAXAPM + (3*256))	/* VAXAPM stopped task on abort request */
#define	VAXAPM_SUTACT	(ERRFAC_VAXAPM + (-1*256))	/* single user task is already active */
#define	VAXAPM_UNKTSK	(ERRFAC_VAXAPM + (-2*256))	/* no such task is known by VAXAPM */
#define	VAXAPM_REQERR	(ERRFAC_VAXAPM + (-3*256))	/* error in request frame */
#define	VAXAPM_REQFRE	(ERRFAC_VAXAPM + (-3*256))	/* error in request frame */
#define	VAXAPM_CREATERR	(ERRFAC_VAXAPM + (-4*256))	/* create process directive failed */
#define	VAXAPM_CRPRER	(ERRFAC_VAXAPM + (-4*256))	/* create process directive failed */
#define	VAXAPM_CNCTED	(ERRFAC_VAXAPM + (-5*256))	/* already connected to this task */
#define	VAXAPM_NOPRIV	(ERRFAC_VAXAPM + (-6*256))	/* no privilege - settings are locked out on this console */

/*
**  LJ Lumberjack datalogger
*/
#define	LJ_OK		0				/* successful completion */
#define	LJ_SUCCESS	0				/* Lumberjack success code */
#define	LJ_INVLEN	(ERRFAC_LJ + (-1*256))		/* invalid length */
#define	LJ_INVTC	(ERRFAC_LJ + (-2*256))		/* invalid typecode */
#define	LJ_MEMFAIL	(ERRFAC_LJ + (-3*256))		/* memory allocation failed */
#define	LJ_COMM		(ERRFAC_LJ + (-4*256))		/* network error */
#define	LJ_DLREAD	(ERRFAC_LJ + (-5*256))		/* error reading spec file*/
#define	LJ_DVREAD	(ERRFAC_LJ + (-6*256))		/* error reading device file */
#define	LJ_DVWRITE	(ERRFAC_LJ + (-7*256))		/* error writing device file */
#define	LJ_INVARG	(ERRFAC_LJ + (-8*256))		/* invalid argument passed */
#define	LJ_NO_SUCH	(ERRFAC_LJ + (-9*256))		/* object of request does not exist */
#define	LJ_INV_TIMES	(ERRFAC_LJ + (-10*256))		/* invalid time window */
#define	LJ_NODEDOWN	(ERRFAC_LJ + (-11*256))		/* node not responding */
#define	LJ_TIME		(ERRFAC_LJ + (-12*256))		/* time accuracy error */
#define	LJ_ABORT	(ERRFAC_LJ + (-21*256))		/* user abort */
#define	LJ_INVALID_SDA_CASE	(ERRFAC_LJ + (-22*256))	/* invalid SDA case requested */
#define	LJ_INVALID_SDA_SET	(ERRFAC_LJ + (-23*256))	/* invalid SDA set requested */
#define	LJ_MATH_EXCEPTION	(ERRFAC_LJ + (-25*256))	/* math exception occurred */

/*
**  CBS
*/
#define	CBS_OK		0				/* successful completion */
#define	CBS_SUCCESS	0				/* successful completion */
#define	CBS_TOO_MANY_ARGS	(ERRFAC_CBS + (1*256))	/* too many arguments passed */
#define	CBS_READY	(ERRFAC_CBS + (2*256))		/* ready to go */
#define	CBS_PEND	(ERRFAC_CBS + (3*256))		/* operation is pending */
#define	CBS_MORE_VALUES	(ERRFAC_CBS + (5*256))		/* additional values are available */
#define	CBS_NO_CHANGE	(ERRFAC_CBS + (6*256))		/* data has not changed */
#define	CBS_INCONSISTENT_TIMES	(ERRFAC_CBS + (7*256))	/* data contains inconsistent timestamps */
#define	CBS_INCOMPLETE_DATA	(ERRFAC_CBS + (8*256))	/* some, but not all requested data was returned */
#define	CBS_REENTER_DATA	(ERRFAC_CBS + (9*256))	/* data is not acceptable - enter new data */
#define	CBS_END_OF_FILE	(ERRFAC_CBS + (10*256))		/* end of file reached */
#define	CBS_MORE_DATA	(ERRFAC_CBS + (11*256))		/* more data is available than what was returned */
#define	CBS_INVARG	(ERRFAC_CBS + (-1*256))		/* invalid argument passed */
#define	CBS_MEMFAIL	(ERRFAC_CBS + (-2*256))		/* memory allocation failed */
#define	CBS_NOTYET	(ERRFAC_CBS + (-3*256))		/* not implemented yet */
#define	CBS_NOINIT	(ERRFAC_CBS + (-4*256))		/* not initialized */
#define	CBS_INVID	(ERRFAC_CBS + (-5*256))		/* invalid ID */
#define	CBS_TIMEOUT	(ERRFAC_CBS + (-6*256))		/* call timed out */
#define	CBS_DUPREQ	(ERRFAC_CBS + (-7*256))		/* duplicate request */
#define	CBS_INVNAME	(ERRFAC_CBS + (-8*256))		/* invalid name */
#define	CBS_READONLY	(ERRFAC_CBS + (-9*256))		/* read only */
#define	CBS_GONE	(ERRFAC_CBS + (-10*256))	/* task/utility terminated */
#define	CBS_REQLIMIT	(ERRFAC_CBS + (-11*256))	/* request limit hit */
#define	CBS_BUSY	(ERRFAC_CBS + (-12*256))	/* busy on previous request */
#define	CBS_NODAT	(ERRFAC_CBS + (-13*256))	/* no data exists for this request */
#define	CBS_NO_DATA	(ERRFAC_CBS + (-13*256))	/* no data exists for this request */
#define	CBS_INVSLOT	(ERRFAC_CBS + (-14*256))	/* invalid slot */
#define	CBS_NOTOPN	(ERRFAC_CBS + (-15*256))	/* required file not opened */
#define	CBS_NOT_OPEN	(ERRFAC_CBS + (-15*256))	/* required file not opened */
#define	CBS_NOTENB	(ERRFAC_CBS + (-16*256))	/* requested feature not enabled */
#define	CBS_NOT_ENABLED	(ERRFAC_CBS + (-16*256))	/* requested feature not enabled */
#define	CBS_STALE	(ERRFAC_CBS + (-17*256))	/* receiving stale data */
#define	CBS_NOSETUP	(ERRFAC_CBS + (-18*256))	/* appropriate setup not done */
#define	CBS_CHGFAIL	(ERRFAC_CBS + (-19*256))	/* CHGPGM failed */
#define	CBS_CHGPGM_FAIL	(ERRFAC_CBS + (-19*256))	/* CHGPGM failed */
#define	CBS_RANGE	(ERRFAC_CBS + (-20*256))	/* value out of range */
#define	CBS_ABORT	(ERRFAC_CBS + (-21*256))	/* user abort */
#define	CBS_NO_WINDOW	(ERRFAC_CBS + (-22*256))	/* no such window */
#define	CBS_WINDOW_OCCLUDED	(ERRFAC_CBS + (-23*256))	/* window is occluded */
#define	CBS_NOT_IN_WINDOW	(ERRFAC_CBS + (-24*256))	/* not in the specified window */
#define	CBS_WINDOW_OFF_SCRN	(ERRFAC_CBS + (-25*256))	/* window isn't entirely on the screen */
#define	CBS_WINDOW_TOO_BIG	(ERRFAC_CBS + (-26*256))	/* window is too large */
#define	CBS_NO_SUCH	(ERRFAC_CBS + (-27*256))	/* object of request does not exist */
#define	CBS_TOO_MANY	(ERRFAC_CBS + (-28*256))	/* too many already exist */
#define	CBS_GENERR	(ERRFAC_CBS + (-29*256))	/* generic error */
#define	CBS_GENERIC_ERROR	(ERRFAC_CBS + (-29*256))	/* generic error */
#define	CBS_INVSIZ	(ERRFAC_CBS + (-30*256))	/* invalid size or length */
#define	CBS_INVTYP	(ERRFAC_CBS + (-31*256))	/* invalid type */
#define	CBS_BUGCHK	(ERRFAC_CBS + (-32*256))	/* program bug-check */
#define	CBS_CORRUPT	(ERRFAC_CBS + (-33*256))	/* file or data is corrupted or inconsistent */
#define	CBS_INSUFFICIENT_ARGS	(ERRFAC_CBS + (-34*256))	/* not enough arguments passed */
#define	CBS_INVALID_DATA	(ERRFAC_CBS + (-36*256))	/* invalid data encountered */
#define	CBS_TRUNCATED	(ERRFAC_CBS + (-38*256))	/* result has been truncated */
#define	CBS_SYNTAX	(ERRFAC_CBS + (-39*256))	/* syntax error */
#define	CBS_TOO_BIG	(ERRFAC_CBS + (-40*256))	/* request is too big */
#define	CBS_DELETED	(ERRFAC_CBS + (-41*256))	/* requested item has been deleted */
#define	CBS_INVALID_CONVERSION	(ERRFAC_CBS + (-42*256))	/* invalid data conversion requested */
#define	CBS_CONVERSION_ERROR	(ERRFAC_CBS + (-43*256))	/* data conversion failed */
#define	CBS_NULL_VALUE	(ERRFAC_CBS + (-44*256))	/* null value supplied */
#define	CBS_MISMATCH	(ERRFAC_CBS + (-45*256))	/* data doesn't match request */
#define	CBS_MATH_EXCEPTION	(ERRFAC_CBS + (-46*256))	/* math exception occurred */
#define	CBS_COL_NOSIZE	(ERRFAC_CBS + (-47*256))	/* collimator: no size parameter */
#define	CBS_COL_NOFREQ	(ERRFAC_CBS + (-48*256))	/* collimator: no freq parameter */
#define	CBS_COL_MISMCH	(ERRFAC_CBS + (-49*256))	/* collimator: freq/size mismatch */
#define	CBS_COL_LIMPOS	(ERRFAC_CBS + (-50*256))	/* collimator: positive limit */
#define	CBS_COL_LIMNEG	(ERRFAC_CBS + (-51*256))	/* collimator: negative limit */
#define	CBS_COL_NOLOSS	(ERRFAC_CBS + (-52*256))	/* collimator: no loss parameter */
#define	CBS_COL_NOPRCT	(ERRFAC_CBS + (-53*256))	/* collimator: no percent parameter */
#define	CBS_COL_NOLOCK	(ERRFAC_CBS + (-54*256))	/* collimator: not locked */
#define	CBS_COL_BADX	(ERRFAC_CBS + (-55*256))	/* collimator: x0 or xi parameter bad */
#define	CBS_COL_BADMDAT	(ERRFAC_CBS + (-56*256))	/* collimator: bad MDAT frame detected */
#define	CBS_COL_NO_EVENT	(ERRFAC_CBS + (-57*256))	/* collimator: no events given */
#define	CBS_COL_NO_TIMEOUT	(ERRFAC_CBS + (-58*256))	/* collimator: no timeout given */
#define	CBS_NOPRIV	(ERRFAC_CBS + (-59*256))	/* no privilege for the requested action */
#define	CBS_MISSING_VALUE	(ERRFAC_CBS + (-61*256))	/* expected value was missing */
#define	CBS_EXTRANEOUS_VALUE	(ERRFAC_CBS + (-62*256))	/* value found when none was expected */
#define	CBS_OUT_OF_BOUNDS	(ERRFAC_CBS + (-63*256))	/* parameter (usually array index) was out of bounds */
#define	CBS_SETLOCK	(ERRFAC_CBS + (-64*256))	/* a requested setting was not permitted */
#define	CBS_EMPTY	(ERRFAC_CBS + (-65*256))	/* empty request made */
#define	CBS_CALC_ERROR	(ERRFAC_CBS + (-66*256))	/* calculation error occurred */
#define	CBS_TOO_FEW_VALUES	(ERRFAC_CBS + (-67*256))	/* too few values supplied */
#define	CBS_UNAVAILABLE	(ERRFAC_CBS + (-68*256))	/* requested object is unavailable */
#define	CBS_NOT_SUPPORTED	(ERRFAC_CBS + (-69*256))	/* requested operation is not supported */
#define	CBS_AMBIGUOUS	(ERRFAC_CBS + (-70*256))	/* request was ambiguous */

/*
**  CMU
*/
#define	CMU_OK		0				/* successful completion */
#define	CMU_SUCCESS	0				/* CMU success code */
#define	CMU_NOMB	(ERRFAC_CMU + (-1*256))		/* no mail box found */
#define	CMU_MEMFAIL	(ERRFAC_CMU + (-2*256))		/* memory allocation failed */
#define	CMU_ILLEN	(ERRFAC_CMU + (-3*256))		/* illegal byte transfer count */
#define	CMU_BADHEAD	(ERRFAC_CMU + (-4*256))		/* message header corrupted */
#define	CMU_NOACC	(ERRFAC_CMU + (-5*256))		/* no read access allowed */
#define	CMU_DUPCON	(ERRFAC_CMU + (-6*256))		/* user already connected to box */
#define	CMU_TRUNC	(ERRFAC_CMU + (-7*256))		/* user truncated message */
#define	CMU_SYSERR	(ERRFAC_CMU + (-8*256))		/* miscellaneous system error */
#define	CMU_NOMESS	(ERRFAC_CMU + (-9*256))		/* no message in mailbox */
#define	CMU_EXQUO	(ERRFAC_CMU + (-10*256))	/* exceeded byte limit quota */
#define	CMU_MBFULL	(ERRFAC_CMU + (-11*256))	/* mailbox is full */
#define	CMU_MBTOOSML	(ERRFAC_CMU + (-12*256))	/* message is too large for mailbox */

/*
**  CLIB
*/
#define	CLIB_OK		0				/* successful completion */
#define	CLIB_SUCCESS	0				/* CLIB success code */
#define	CLIB_NOTCNSINST	(ERRFAC_CLIB + (127*256))	/* not running in a console environment */
#define	CLIB_TOO_MANY_ARGS	(ERRFAC_CLIB + (1*256))	/* too many arguments passed */
#define	CLIB_NOW_EMPTY		(ERRFAC_CLIB + (2*256))	/* this object or facility is now empty */
#define	CLIB_PEND		(ERRFAC_CLIB + (3*256))	/* operation is pending */
#define	CLIB_MORE_VALUES	(ERRFAC_CLIB + (5*256))	/* additional values are available */
#define	CLIB_NO_CHANGE	(ERRFAC_CLIB + (6*256))		/* data has not changed */
#define	CLIB_INCONSISTENT_TIMES	(ERRFAC_CLIB + (7*256))	/* data contains inconsistent timestamps */
#define	CLIB_INCOMPLETE_DATA	(ERRFAC_CLIB + (8*256))	/* some, but not all requested data was returned */
#define	CLIB_REENTER_DATA	(ERRFAC_CLIB + (9*256))	/* data is not acceptable - enter new data */
#define	CLIB_END_OF_FILE	(ERRFAC_CLIB + (10*256))	/* end of file reached */
#define	CLIB_MORE_DATA	(ERRFAC_CLIB + (11*256))	/* more data is available than what was returned */
#define	CLIB_CHGPGM_BADSLOT	(ERRFAC_CLIB + (-1*256))	/* bad slot for CHGPGM */
#define	CLIB_GETCMD_NOBUFFER	(ERRFAC_CLIB + (-2*256))	/* no command buffer queued */
#define	CLIB_CHGPGM_ENQLOCK	(ERRFAC_CLIB + (-3*256))	/* error manipulating PLD lock */
#define	CLIB_CHGPGM_BUFLOCK	(ERRFAC_CLIB + (-4*256))	/* command buf or waiting task */
#define	CLIB_IPP_BADCHAR	(ERRFAC_CLIB + (-5*256))	/* bad charater in call */
#define	CLIB_IPP_NETERR		(ERRFAC_CLIB + (-6*256))	/* network error */
#define	CLIB_PRIV_NORPC		(ERRFAC_CLIB + (-7*256))	/* RPCs not allowed */
#define	CLIB_STALE	(ERRFAC_CLIB + (-8*256))	/* no new data received */
#define	CLIB_NOINIT	(ERRFAC_CLIB + (-9*256))	/* not initialized */
#define	CLIB_PUTCMD_NOTTASK	(ERRFAC_CLIB + (-10*256))	/* task does not match */
#define	CLIB_INVARG	(ERRFAC_CLIB + (-11*256))	/* invalid argument passed */
#define	CLIB_INVID	(ERRFAC_CLIB + (-12*256))	/* invalid ID */
#define	CLIB_MEMFAIL	(ERRFAC_CLIB + (-13*256))	/* memory allocation failed */
#define	CLIB_NOTYET	(ERRFAC_CLIB + (-14*256))	/* not implemented yet */
#define	CLIB_TIMEOUT	(ERRFAC_CLIB + (-15*256))	/* call timed out */
#define	CLIB_DUPREQ	(ERRFAC_CLIB + (-16*256))	/* duplicate request */
#define	CLIB_BUSY	(ERRFAC_CLIB + (-17*256))	/* busy on previous request */
#define	CLIB_NODAT	(ERRFAC_CLIB + (-18*256))	/* no data exists for this request */
#define	CLIB_NO_DATA	(ERRFAC_CLIB + (-18*256))	/* no data exists for this request */
#define	CLIB_NOTENB	(ERRFAC_CLIB + (-19*256))	/* requested feature not enabled */
#define	CLIB_NOT_ENABLED	(ERRFAC_CLIB + (-19*256))	/* requested feature not enabled */
#define	CLIB_NOSETUP	(ERRFAC_CLIB + (-20*256))	/* appropriate setup not done */
#define	CLIB_ABORT	(ERRFAC_CLIB + (-21*256))	/* user abort */
#define	CLIB_NO_SUCH	(ERRFAC_CLIB + (-27*256))	/* object of request does not exist */
#define	CLIB_TOO_MANY	(ERRFAC_CLIB + (-28*256))	/* too many already exist */
#define	CLIB_GENERR	(ERRFAC_CLIB + (-29*256))	/* generic error */
#define	CLIB_GENERIC_ERROR	(ERRFAC_CLIB + (-29*256))	/* generic error */
#define	CLIB_INVSIZ	(ERRFAC_CLIB + (-30*256))	/* invalid size or length */
#define	CLIB_INVTYP	(ERRFAC_CLIB + (-31*256))	/* invalid type */
#define	CLIB_BUGCHK	(ERRFAC_CLIB + (-32*256))	/* program bug-check */
#define	CLIB_CORRUPT	(ERRFAC_CLIB + (-33*256))	/* file or data is corrupted or inconsistent */
#define	CLIB_INSUFFICIENT_ARGS	(ERRFAC_CLIB + (-34*256))	/* not enough arguments passed */
#define	CLIB_REDIRECT	(ERRFAC_CLIB + (-35*256))	/* operation not allowed while dpm redirection exists */
#define	CLIB_INVALID_DATA	(ERRFAC_CLIB + (-36*256))	/* invalid data encountered */
#define	CLIB_NOTOPN	(ERRFAC_CLIB + (-37*256))	/* required file not opened */
#define	CLIB_NOT_OPEN	(ERRFAC_CLIB + (-37*256))	/* required file not opened */
#define	CLIB_TRUNCATED	(ERRFAC_CLIB + (-38*256))	/* result has been truncated */
#define	CLIB_SYNTAX	(ERRFAC_CLIB + (-39*256))	/* syntax error */
#define	CLIB_TOO_BIG	(ERRFAC_CLIB + (-40*256))	/* request is too big */
#define	CLIB_DELETED	(ERRFAC_CLIB + (-41*256))	/* requested item has been deleted */
#define	CLIB_INVALID_CONVERSION	(ERRFAC_CLIB + (-42*256))	/* invalid data conversion requested */
#define	CLIB_CONVERSION_ERROR	(ERRFAC_CLIB + (-43*256))	/* data conversion failed */
#define	CLIB_NULL_VALUE	(ERRFAC_CLIB + (-44*256))	/* null value supplied */
#define	CLIB_MISMATCH	(ERRFAC_CLIB + (-45*256))	/* data doesn't match request */
#define	CLIB_MATH_EXCEPTION	(ERRFAC_CLIB + (-46*256))	/* math exception occurred */
#define	CLIB_TOO_SMALL	(ERRFAC_CLIB + (-56*256))	/* supplied buffer is too small */
#define	CLIB_WRONG_CONTEXT	(ERRFAC_CLIB + (-57*256))	/* request was made in an inappropriate context */
#define	CLIB_RANGE	(ERRFAC_CLIB + (-58*256))	/* value out of range */
#define	CLIB_NOPRIV	(ERRFAC_CLIB + (-59*256))	/* no privilege for the requested action */
#define	CLIB_NO_PRIV	(ERRFAC_CLIB + (-59*256))	/* no privilege for the requested action */
#define	CLIB_READONLY	(ERRFAC_CLIB + (-60*256))	/* read only */
#define	CLIB_READ_ONLY	(ERRFAC_CLIB + (-60*256))	/* read only */
#define	CLIB_MISSING_VALUE	(ERRFAC_CLIB + (-61*256))	/* expected value was missing */
#define	CLIB_EXTRANEOUS_VALUE	(ERRFAC_CLIB + (-62*256))	/* value found when none was expected */
#define	CLIB_OUT_OF_BOUNDS	(ERRFAC_CLIB + (-63*256))	/* parameter (usually array index) was out of bounds */
#define	CLIB_SETLOCK	(ERRFAC_CLIB + (-64*256))	/* a requested setting was not permitted */
#define	CLIB_EMPTY	(ERRFAC_CLIB + (-65*256))	/* empty request made */
#define	CLIB_CALC_ERROR	(ERRFAC_CLIB + (-66*256))	/* calculation error occurred */
#define	CLIB_TOO_FEW_VALUES	(ERRFAC_CLIB + (-67*256))	/* too few values supplied */
#define	CLIB_UNAVAILABLE	(ERRFAC_CLIB + (-68*256))	/* requested object is unavailable */
#define	CLIB_NOT_SUPPORTED	(ERRFAC_CLIB + (-69*256))	/* requested operation is not supported */
#define	CLIB_AMBIGUOUS	(ERRFAC_CLIB + (-70*256))	/* request was ambiguous */
#define	CLIB_BADARG_1	(ERRFAC_CLIB + (-71*256))	/* arg 1 is bad */
#define	CLIB_BADARG_2	(ERRFAC_CLIB + (-72*256))	/* arg 2 is bad */
#define	CLIB_BADARG_3	(ERRFAC_CLIB + (-73*256))	/* arg 3 is bad */
#define	CLIB_BADARG_4	(ERRFAC_CLIB + (-74*256))	/* arg 4 is bad */
#define	CLIB_BADARG_5	(ERRFAC_CLIB + (-75*256))	/* arg 5 is bad */
#define	CLIB_BADARG_6	(ERRFAC_CLIB + (-76*256))	/* arg 6 is bad */
#define	CLIB_MATH_OVERFLOW	(ERRFAC_CLIB + (-81*256))	/* math overflow occurred */
#define	CLIB_INVALID_STATE	(ERRFAC_CLIB + (-82*256))	/* invalid state detected */
#define	CLIB_INSUFFICIENT_RESOURCES	(ERRFAC_CLIB + (-83*256))	/* insufficient resources to satisfy request */
#define	CLIB_INTYPE_UNINITIALIZED	(ERRFAC_CLIB + (-84*256))	/* routine called before intype */
#define	CLIB_LOCKED	(ERRFAC_CLIB + (-85*256))	/* requested object is locked */
#define	CLIB_NOT_CONSTANT	(ERRFAC_CLIB + (-86*256))	/* expected constant value */

/*
**  LOCK
*/
#define	LOCK_OK		0				/* LOCK success code */
#define	LOCK_OTHER	(ERRFAC_LOCK + (1*256))		/* locked by other */
#define	LOCK_ALREADY	(ERRFAC_LOCK + (2*256))		/* you already locked */
#define	LOCK_NOT	(ERRFAC_LOCK + (3*256))		/* no lock present */
#define	LOCK_INVARG	(ERRFAC_LOCK + (-1*256))	/* invalid argument */

/*
**  APPDS
*/
#define	APPDS_OK	0				/* APPDS success code */
#define	APPDS_SUCCESS	0				/* APPDS success code */
#define	APPDS_EXISTS	(ERRFAC_APPDS + (1*256))	/* requested table exists */
#define	APPDS_NOTEXIST	(ERRFAC_APPDS + (2*256))	/* requested table does not exist */
#define	APPDS_MEMFAIL	(ERRFAC_APPDS + (-1*256))	/* memory allocation failed */
#define	APPDS_GETFAIL	(ERRFAC_APPDS + (-2*256))	/* failed to retrieve table information */
#define	APPDS_INVARG	(ERRFAC_APPDS + (-3*256))	/* invalid argument passed */
#define	APPDS_SETFAIL	(ERRFAC_APPDS + (-4*256))	/* failed to set table information */
#define	APPDS_BADMAST	(ERRFAC_APPDS + (-5*256))	/* corrupt master table */
#define	APPDS_MAXREC	(ERRFAC_APPDS + (-6*256))	/* attempt to add records beyond table limit */
#define	APPDS_OVERWRT	(ERRFAC_APPDS + (-7*256))	/* attempt to overwrite */
#define	APPDS_BADSTRUC	(ERRFAC_APPDS + (-8*256))	/* corrupt internal table structure */
#define	APPDS_TBLRO	(ERRFAC_APPDS + (-9*256))	/* attempt to write to a read only table */
#define	APPDS_CONFAIL	(ERRFAC_APPDS + (-10*256))	/* data conversion fail */
#define	APPDS_READEND	(ERRFAC_APPDS + (-11*256))	/* attempt to access beyond last record */
#define	APPDS_BADID	(ERRFAC_APPDS + (-12*256))	/* bad record identifier */
#define	APPDS_LOCK	(ERRFAC_APPDS + (-13*256))	/* table locked */
#define	APPDS_SQLLIMIT	(ERRFAC_APPDS + (-14*256))	/* SQL limit violation */
#define	APPDS_OVERRUN	(ERRFAC_APPDS + (-15*256))	/* requested record data overruns given buffer size */

/*
**  DIO
*/
#define	DIO_OK		0				/* successful completion */
#define	DIO_SUCCESS	0				/* DIO success code */
#define	DIO_TOO_MANY_ARGS	(ERRFAC_DIO + (1*256))	/* too many arguments passed */
#define	DIO_ALREADY_SET	(ERRFAC_DIO + (2*256))		/* setting attempted with the current value - no setting made */
#define	DIO_PEND	(ERRFAC_DIO + (3*256))		/* operation is pending */
#define	DIO_PENDING	(ERRFAC_DIO + (3*256))		/* operation is pending */
#define	DIO_NOW_EMPTY	(ERRFAC_DIO + (4*256))		/* this object is now empty */
#define	DIO_MORE_VALUES	(ERRFAC_DIO + (5*256))		/* additional values are available */
#define	DIO_NO_CHANGE	(ERRFAC_DIO + (6*256))		/* data has not changed */
#define	DIO_INCONSISTENT_TIMES	(ERRFAC_DIO + (7*256))	/* data contains inconsistent timestamps */
#define	DIO_INCOMPLETE_DATA	(ERRFAC_DIO + (8*256))	/* some, but not all requested data was returned */
#define	DIO_TOO_LOW	(ERRFAC_DIO + (9*256))		/* value is too low */
#define	DIO_TOO_HIGH	(ERRFAC_DIO + (10*256))		/* value is too high */
#define	DIO_NOT_UNIQUE	(ERRFAC_DIO + (11*256))		/* request did not have a unique result */
#define	DIO_NOT_SCALABLE	(ERRFAC_DIO + (12*256))	/* value is not scalable as a floating point number */
#define	DIO_MEMFAIL	(ERRFAC_DIO + (-1*256))		/* memory allocation failed */
#define	DIO_CANFAIL	(ERRFAC_DIO + (-2*256))		/* cancel failed */
#define	DIO_CANCEL_FAILED	(ERRFAC_DIO + (-2*256))		/* cancel failed */
#define	DIO_NOLIST	(ERRFAC_DIO + (-3*256))		/* no such data list */
#define	DIO_NO_LIST	(ERRFAC_DIO + (-3*256))		/* no such data list */
#define	DIO_STALE	(ERRFAC_DIO + (-4*256))		/* stale data returned */
#define	DIO_INVATT	(ERRFAC_DIO + (-5*256))		/* no such attribute exists */
#define	DIO_NOATT	(ERRFAC_DIO + (-6*256))		/* no such attribute exists for this device */
#define	DIO_NO_ATTRIBUTE	(ERRFAC_DIO + (-6*256))		/* no such attribute exists for this device */
#define	DIO_NOSCALE	(ERRFAC_DIO + (-7*256))		/* no scaling info found for this device */
#define	DIO_NO_SCALE	(ERRFAC_DIO + (-7*256))		/* no scaling info found for this device */
#define	DIO_BADARG	(ERRFAC_DIO + (-8*256))		/* bad argument list passed */
#define	DIO_INVARG	(ERRFAC_DIO + (-8*256))		/* bad argument list passed */
#define	DIO_BADSCALE	(ERRFAC_DIO + (-9*256))		/* bad PDB info */
#define	DIO_NOFAMILY	(ERRFAC_DIO + (-10*256))	/* not a family device */
#define	DIO_NO_FAMILY	(ERRFAC_DIO + (-10*256))	/* not a family device */
#define	DIO_NOINFO	(ERRFAC_DIO + (-11*256))	/* no existing info node */
#define	DIO_NO_INFO	(ERRFAC_DIO + (-11*256))	/* no existing info node */
#define	DIO_INVDBDAT	(ERRFAC_DIO + (-12*256))	/* invalid database data received */
#define	DIO_INVLEN	(ERRFAC_DIO + (-13*256))	/* invalid raw data length */
#define	DIO_INVALID_LENGTH	(ERRFAC_DIO + (-13*256))	/* invalid raw data length */
#define	DIO_SETDIS	(ERRFAC_DIO + (-14*256))	/* setting attempted with DIO settings disabled */
#define	DIO_SETS_DISABLED	(ERRFAC_DIO + (-14*256))	/* setting attempted with DIO settings disabled */
#define	DIO_SMOFF	(ERRFAC_DIO + (-15*256))	/* stepping motor off */
#define	DIO_SMITER	(ERRFAC_DIO + (-16*256))	/* stepping motor: iterations used up */
#define	DIO_NO_SUCH	(ERRFAC_DIO + (-17*256))	/* no such device */
#define	DIO_UNAVAIL	(ERRFAC_DIO + (-18*256))	/* desired service is unavailable */
#define	DIO_UNAVAILABLE	(ERRFAC_DIO + (-18*256))	/* desired service is unavailable */
#define	DIO_INVDEV	(ERRFAC_DIO + (-19*256))	/* invalid device (for this operation) */
#define	DIO_INVALID_DEVICE	(ERRFAC_DIO + (-19*256))	/* invalid device (for this operation) */
#define	DIO_SCALEFAIL	(ERRFAC_DIO + (-20*256))	/* scaling failed */
#define	DIO_NOTYET	(ERRFAC_DIO + (-21*256))	/* not implemented yet */
#define	DIO_NOT_YET	(ERRFAC_DIO + (-21*256))	/* not implemented yet */
#define	DIO_MISMATCH	(ERRFAC_DIO + (-22*256))	/* data does not match request */
#define	DIO_TOO_MANY	(ERRFAC_DIO + (-28*256))	/* too many already exist */
#define	DIO_GENERR	(ERRFAC_DIO + (-29*256))	/* generic error */
#define	DIO_GENERIC_ERROR	(ERRFAC_DIO + (-29*256))	/* generic error */
#define	DIO_BUGCHK	(ERRFAC_DIO + (-32*256))	/* program bug-check */
#define	DIO_CORRUPT	(ERRFAC_DIO + (-33*256))	/* data is corrupted or inconsistent */
#define	DIO_INSUFFICIENT_ARGS	(ERRFAC_DIO + (-34*256))	/* not enough arguments passed */
#define	DIO_INVDATA	(ERRFAC_DIO + (-35*256))	/* data is invalid in this context */
//#define	DIO_INVALID_DATA	(ERRFAC_DIO + (-35*256))	/* data is invalid in this context */
#define	DIO_INVOFF	(ERRFAC_DIO + (-36*256))	/* invalid offset specified */
#define	DIO_INVALID_OFFSET	(ERRFAC_DIO + (-36*256))	/* invalid offset specified */
#define	DIO_DUPREQ	(ERRFAC_DIO + (-37*256))	/* duplicate request */
#define	DIO_TRUNCATED	(ERRFAC_DIO + (-38*256))	/* result has been truncated */
#define	DIO_SYNTAX	(ERRFAC_DIO + (-39*256))	/* syntax error */
#define	DIO_TOO_BIG	(ERRFAC_DIO + (-40*256))	/* request is too big */
#define	DIO_NOTENB	(ERRFAC_DIO + (-41*256))	/* requested feature not enabled */
#define	DIO_NOT_ENABLED	(ERRFAC_DIO + (-41*256))	/* requested feature not enabled */
#define	DIO_INVPROP	(ERRFAC_DIO + (-42*256))	/* property is invalid in this context */
#define	DIO_INVALID_PROPERTY	(ERRFAC_DIO + (-42*256))	/* property is invalid in this context */
#define	DIO_TIMEOUT	(ERRFAC_DIO + (-43*256))	/* request timed out */
#define	DIO_MATH_EXCEPTION	(ERRFAC_DIO + (-46*256))	/* math exception occurred */
#define	DIO_NOT_PROCESSED	(ERRFAC_DIO + (-47*256))	/* entry was not processed for some reason */
#define	DIO_RETIRED	(ERRFAC_DIO + (-48*256))	/* requested service has been retired */
#define	DIO_INVALID_RATE	(ERRFAC_DIO + (-49*256))	/* invalid data rate requested */
#define	DIO_RANGE	(ERRFAC_DIO + (-58*256))	/* value out of range */
#define	DIO_NOPRIV	(ERRFAC_DIO + (-59*256))	/* no privilege for the requested action */
#define	DIO_NO_PRIV	(ERRFAC_DIO + (-59*256))	/* no privilege for the requested action */
#define	DIO_READONLY	(ERRFAC_DIO + (-60*256))	/* read only */
#define	DIO_EMPTY	(ERRFAC_DIO + (-65*256))	/* empty request made */
#define	DIO_NOT_SUPPORTED	(ERRFAC_DIO + (-69*256))	/* requested operation is not supported */
#define	DIO_AMBIGUOUS	(ERRFAC_DIO + (-70*256))	/* request was ambiguous */
#define	DIO_NOT_A_NUMBER	(ERRFAC_DIO + (-71*256))	/* data value is not a number (NaN) */
#define	DIO_RECURSION_LIMIT	(ERRFAC_DIO + (-72*256))	/* recursion limit reached */
#define	DIO_INVALID_DEVICE_TYPE	(ERRFAC_DIO + (-73*256))	/* invalid device type for the requested action */
#define	DIO_TOO_SMALL	(ERRFAC_DIO + (-74*256))	/* request is too small */
#define	DIO_NULL_REQUEST	(ERRFAC_DIO + (-75*256))	/* null request */
#define	DIO_INVALID_DB_REQUEST	(ERRFAC_DIO + (-76*256))	/* invalid database request */
#define	DIO_UNTRANSLATABLE_ERROR	(ERRFAC_DIO + (-77*256))	/* untranslatable error encountered */
#define	DIO_NOREGULAR	(ERRFAC_DIO + (-78*256))	/* device is not a regular device, i.e., it is a family device */
#define	DIO_NO_REGULAR	(ERRFAC_DIO + (-78*256))	/* device is not a regular device, i.e., it is a family device */
#define	DIO_SETONLY	(ERRFAC_DIO + (-79*256))	/* set only */
#define	DIO_OUT_OF_BOUNDS	(ERRFAC_DIO + (-80*256))	/* parameter (usually array index) was out of bounds */
#define	DIO_CONTROLLED_SET	(ERRFAC_DIO + (-81*256))	/* attempt to set controlled setting in generic program */
#define	DIO_NO_DATA	(ERRFAC_DIO + (-82*256))	/* no data exists for this request */
// <<insert new DIO error codes here>>
/*
**  Table Devices
*/
#define	DIO_TD_NOTYET	(ERRFAC_DIO + (-100*256))	/* not yet implemented */
#define	DIO_TD_INVTYP	(ERRFAC_DIO + (-101*256))	/* invalid card type */
#define	DIO_TD_INVTAB	(ERRFAC_DIO + (-102*256))	/* invalid table number */
#define	DIO_TD_INVSLT	(ERRFAC_DIO + (-103*256))	/* invalid slot number */
#define	DIO_TD_INVNSL	(ERRFAC_DIO + (-104*256))	/* invalid number of slots */
#define	DIO_TD_INVDEV	(ERRFAC_DIO + (-105*256))	/* invalid table device */
#define	DIO_TD_INVTSZ	(ERRFAC_DIO + (-106*256))	/* invalid table size */
#define	DIO_TD_PARERR	(ERRFAC_DIO + (-107*256))	/* parser found errors */
#define	DIO_TD_INVSUS	(ERRFAC_DIO + (-108*256))	/* invalid slot use */
#define	DIO_TD_UNSUPPORTED	(ERRFAC_DIO + (-109*256))	/* requested table type not supported for the requested device type */

/*
**  FTP
*/
#define	FTP_OK		0				/* successful completion */
#define	FTP_SUCCESS	0				/* FTP success code */
#define	FTP_PEND	(ERRFAC_FTP + (1*256))		/* snapshot is pending */
#define	FTP_WAIT_EVENT	(ERRFAC_FTP + (2*256))		/* snapshot is pending while waiting for arm event */
#define	FTP_WAIT_DELAY	(ERRFAC_FTP + (3*256))		/* snapshot is pending while waiting for time delay */
#define	FTP_COLLECTING	(ERRFAC_FTP + (4*256))		/* snapshot data is being collected */
#define	FTP_INVTYP	(ERRFAC_FTP + (-1*256))		/* invalid type code */
#define	FTP_INVSSDN	(ERRFAC_FTP + (-2*256))		/* invalid SSDN for selected plot mode */
#define	FTP_FE_OUTOFMEM	(ERRFAC_FTP + (-5*256))		/* front end is out of memory */
#define	FTP_NOCHAN	(ERRFAC_FTP + (-6*256))		/* no plot channels are available */
#define	FTP_NO_DECODER	(ERRFAC_FTP + (-7*256))		/* C190 is out of clock decoder channels */
#define	FTP_FE_PLOTLIM	(ERRFAC_FTP + (-8*256))		/* front end plot limit reached */
#define	FTP_INVNUMDEV	(ERRFAC_FTP + (-9*256))		/* invalid number of devices */
#define	FTP_ENDOFDATA	(ERRFAC_FTP + (-10*256))	/* end of data reached */
#define	FTP_FE_PLOTLEN	(ERRFAC_FTP + (-11*256))	/* front end plot length error */
#define	FTP_INVREQLEN	(ERRFAC_FTP + (-12*256))	/* invalid request length */
#define	FTP_NODATA	(ERRFAC_FTP + (-13*256))	/* no data available from C190 module */
#define	FTP_NO_DATA	(ERRFAC_FTP + (-13*256))	/* no data available from C190 module */
#define	FTP_INVREQ	(ERRFAC_FTP + (-14*256))	/* invalid snapshot collection request */
#define	FTP_BADEV	(ERRFAC_FTP + (-15*256))	/* wrong set of events */
#define	FTP_BUMPED	(ERRFAC_FTP + (-16*256))	/* request terminated by higher priority user */
#define	FTP_REROUTE	(ERRFAC_FTP + (-17*256))	/* reroute problem */
#define	FTP_UNSFREQ	(ERRFAC_FTP + (-19*256))	/* unsupported frequency */
#define	FTP_BIGDLY	(ERRFAC_FTP + (-20*256))	/* delay too big */
#define	FTP_UNSDEV	(ERRFAC_FTP + (-21*256))	/* unsupported device */
#define	FTP_SOFTWARE	(ERRFAC_FTP + (-22*256))	/* 386 software problems */
#define	FTP_NOTRDY	(ERRFAC_FTP + (-23*256))	/* data not ready */
#define	FTP_ARCNET	(ERRFAC_FTP + (-24*256))	/* ARCNET network problem */
#define	FTP_BADARM	(ERRFAC_FTP + (-25*256))	/* bad arm value */
#define	FTP_INVFREQ_FOR_HARDWARE	(ERRFAC_FTP + (-26*256))	/* unsupported frequency for this hardware */
#define	FTP_BAD_PLOT_MODE	(ERRFAC_FTP + (-27*256))	/* bad plot mode value */
#define	FTP_NO_SUCH_DEVICE	(ERRFAC_FTP + (-28*256))	/* requested device does not exist */
#define	FTP_DEVICE_IN_USE	(ERRFAC_FTP + (-29*256))	/* previous retrieve request for this device is not done */
#define	FTP_FREQ_TOO_HIGH	(ERRFAC_FTP + (-30*256))	/* request for data collection with too high frequency */
#define	FTP_NO_SETUP		(ERRFAC_FTP + (-31*256))	/* can't find original request */
#define	FTP_UNSUPPORTED_PROP	(ERRFAC_FTP + (-32*256))	/* unsupported property */
#define	FTP_INVALID_CHANNEL	(ERRFAC_FTP + (-33*256))	/* unsupported channel */
#define	FTP_NO_FIFO		(ERRFAC_FTP + (-34*256))	/* no FIFO board is present */
#define	FTP_BAD_DATA_LENGTH	(ERRFAC_FTP + (-35*256))	/* bad data length */
#define	FTP_BUFFER_OVERFLOW	(ERRFAC_FTP + (-36*256))	/* buffer overflow during data collection */
#define	FTP_NO_EVENT_SUPPORT	(ERRFAC_FTP + (-37*256))	/* data collection on event is not supported */
#define	FTP_TRIGGER_ERROR	(ERRFAC_FTP + (-38*256))	/* problem defining trigger */
#define	FTP_INV_CLASS_DEF	(ERRFAC_FTP + (-39*256))	/* wrong internal definition of the continuous or snapshot plot class */
#define	FTP_NO_RANDOM_ACCESS	(ERRFAC_FTP + (-40*256))	/* random access to data not yet supported */
#define	FTP_INVALID_OFFSET	(ERRFAC_FTP + (-41*256))	/* invalid offset specified */
#define	FTP_NO_SNAPSHOT		(ERRFAC_FTP + (-42*256))	/* requested device does not support snapshot */
#define	FTP_EVENT_UNAVAILABLE	(ERRFAC_FTP + (-43*256))	/* requested clock event is not available */
#define	FTP_NO_FTPMAN_INIT	(ERRFAC_FTP + (-44*256))	/* FTPMAN has not been initialized (some FEs require a class code request) */
#define	FTP_BADTIMES	(ERRFAC_FTP + (-100*256))	/* bad time stamps */
#define	FTP_BADRESETS	(ERRFAC_FTP + (-101*256))	/* bad time stamp resets */
#define	FTP_BADARG	(ERRFAC_FTP + (-102*256))	/* bad arg in req to SA */
#define	FTP_BADRPY	(ERRFAC_FTP + (-103*256))	/* bad data reply */

/*
**  Database manager (DBM)
*/
#define	DBM_OK		0				/* successful completion */
#define	DBM_SUCCESS	0				/* DBM success code */
#define	DBM_PEND	(ERRFAC_DBM + (1*256))		/* operation pending */
#define	DBM_NODATA	(ERRFAC_DBM + (2*256))		/* no data returned for this request */
#define	DBM_NO_DATA	(ERRFAC_DBM + (2*256))		/* no data returned for this request */
#define	DBM_NODT	(ERRFAC_DBM + (2*256))		/* no data returned for this request */
#define	DBM_DOCDEV	(ERRFAC_DBM + (4*256))		/* attempted to access documentation device */
#define	DBM_DOCUMENTATION_DEVICE	(ERRFAC_DBM + (4*256))	/* attempted to access documentation device */
#define	DBM_GENERR	(ERRFAC_DBM + (-1*256))		/* general DBM error */
#define	DBM_GENERIC_ERROR	(ERRFAC_DBM + (-1*256))	/* general DBM error */
#define	DBM_DBME	(ERRFAC_DBM + (-1*256))		/* general DBM error */
#define	DBM_RMSE	(ERRFAC_DBM + (-2*256))		/* RMS-detected disk error */
#define	DBM_DELDEV	(ERRFAC_DBM + (-3*256))		/* attempted to access deleted device */
#define	DBM_DDEL	(ERRFAC_DBM + (-3*256))		/* attempted to access deleted device */
#define	DBM_OBSDEV	(ERRFAC_DBM + (-4*256))		/* attempted to access obsoleted device */
#define	DBM_DOBS	(ERRFAC_DBM + (-4*256))		/* attempted to access obsoleted device */
#define	DBM_FULL	(ERRFAC_DBM + (-5*256))		/* not enough room in reply list */
#define	DBM_INCON	(ERRFAC_DBM + (-6*256))		/* inconsistent property and function */
#define	DBM_ICPR	(ERRFAC_DBM + (-6*256))		/* inconsistent property and function */
#define	DBM_ILDEV	(ERRFAC_DBM + (-7*256))		/* illegal device index */
#define	DBM_ILDI	(ERRFAC_DBM + (-7*256))		/* illegal device index */
#define	DBM_ILFN	(ERRFAC_DBM + (-8*256))		/* illegal function */
#define	DBM_ILPROP	(ERRFAC_DBM + (-9*256))		/* illegal property code */
#define	DBM_ILPR	(ERRFAC_DBM + (-9*256))		/* illegal property code */
#define	DBM_ILHEAD	(ERRFAC_DBM + (-10*256))	/* illegal request header */
#define	DBM_ILRH	(ERRFAC_DBM + (-10*256))	/* illegal request header */
#define	DBM_ILCMPND	(ERRFAC_DBM + (-11*256))	/* illegal property for compound device */
#define	DBM_IPCD	(ERRFAC_DBM + (-11*256))	/* illegal property for compound device */
#define	DBM_WDPR	(ERRFAC_DBM + (-12*256))	/* wrong device/property retrieved (retryable) */
#define	DBM_NOPROP	(ERRFAC_DBM + (-13*256))	/* no such property for this device */
#define	DBM_NSPR	(ERRFAC_DBM + (-13*256))	/* no such property for this device */
#define	DBM_NOTFOUND	(ERRFAC_DBM + (-13*256))	/* item not found in database */
#define	DBM_RLOV	(ERRFAC_DBM + (-14*256))	/* packet overflows request list */
#define	DBM_NEAG	(ERRFAC_DBM + (-15*256))	/* not enough arguments in UTI call */
#define	DBM_ILRINX	(ERRFAC_DBM + (-16*256))	/* illegal retrieval index */
#define	DBM_IRNX	(ERRFAC_DBM + (-16*256))	/* illegal retrieval index */
#define	DBM_ILWORK	(ERRFAC_DBM + (-17*256))	/* illegal work area */
#define	DBM_ILWA	(ERRFAC_DBM + (-17*256))	/* illegal work area */
#define	DBM_WORK_FULL	(ERRFAC_DBM + (-18*256))	/* work area full */
#define	DBM_WAFU	(ERRFAC_DBM + (-18*256))	/* work area full */
#define	DBM_EMPTY	(ERRFAC_DBM + (-19*256))	/* empty work area */
#define	DBM_NORQ	(ERRFAC_DBM + (-19*256))	/* empty work area */
#define	DBM_NOPDB	(ERRFAC_DBM + (-20*256))	/* no PDB available */
#define	DBM_NOREC	(ERRFAC_DBM + (-20*256))	/* no record available for this request */
#define	DBM_NREC	(ERRFAC_DBM + (-20*256))	/* no record available for this request */
#define	DBM_NOEMC	(ERRFAC_DBM + (-20*256))	/* EMC not found */
#define	DBM_NOSET	(ERRFAC_DBM + (-21*256))	/* setting not allowed for this console */
#define	DBM_SNAC	(ERRFAC_DBM + (-21*256))	/* setting not allowed for this console */
#define	DBM_SRTL	(ERRFAC_DBM + (-22*256))	/* setting request too large */
#define	DBM_NOFORWARD	(ERRFAC_DBM + (-23*256))	/* setting not forwarded */
#define	DBM_SNFW	(ERRFAC_DBM + (-23*256))	/* setting not forwarded */
#define	DBM_TMO		(ERRFAC_DBM + (-24*256))	/* DBM timeout */
#define	DBM_TMOE	(ERRFAC_DBM + (-24*256))	/* DBM timeout */
#define	DBM_LOCK	(ERRFAC_DBM + (-25*256))	/* settings are currently locked out from this console */

/*
**  Datapool manager (DPM)
*/
#define	DPM_OK		0				/* successful completion */
#define	DPM_SUCCESS	0				/* DPM success code */
#define	DPM_PEND	(ERRFAC_DPM + (1*256))		/* DPM data pending code */
#define	DPM_STALE	(ERRFAC_DPM + (2*256))		/* DPM data was returned late */
#define	DPM_LARGE_LIST	(ERRFAC_DPM + (3*256))		/* DPM list of devices is suspiciously large */
#define	DPM_RESTART_TOO_FAST	(ERRFAC_DPM + (-1*256))	/* DPM restarting data acquisition too fast */
#define	DPM_INVFCN	(ERRFAC_DPM + (-2*256))		/* DPM invalid function code */
#define	DPM_INVRINX	(ERRFAC_DPM + (-3*256))		/* DPM invalid retrieval index */
#define	DPM_IVRXNE	(ERRFAC_DPM + (-3*256))		/* DPM invalid retrieval index */
#define	DPM_IVRXNM	(ERRFAC_DPM + (-4*256))		/* DPM invalid retrieval index, entry belongs to another task */
#define	DPM_NOTPROC	(ERRFAC_DPM + (-5*256))		/* DPM entry has not been processed */
#define	DPM_RXNPRC	(ERRFAC_DPM + (-5*256))		/* DPM entry has not been processed */
#define	DPM_MARKDELET	(ERRFAC_DPM + (-6*256))		/* DPM entry is marked for deletion */
#define	DPM_ENTMDL	(ERRFAC_DPM + (-6*256))		/* DPM entry is marked for deletion */
#define	DPM_MXLBIG	(ERRFAC_DPM + (-7*256))		/* 'DPGET' maxlen is too big */
#define	DPM_OFFLEN	(ERRFAC_DPM + (-8*256))		/* DPM invalid length or offset */
#define	DPM_ARYERR	(ERRFAC_DPM + (-8*256))		/* DPM invalid length or offset */
#define	DPM_OUTOMEM	(ERRFAC_DPM + (-9*256))		/* DPM out of memory */
#define	DPM_DPMMEM	(ERRFAC_DPM + (-9*256))		/* DPM out of memory */
#define	DPM_TMOSET	(ERRFAC_DPM + (-10*256))	/* DPM timeout on setting reply */
#define	DPM_LENSML	(ERRFAC_DPM + (-11*256))	/* requested length is too small */
#define	DPM_DPMSER	(ERRFAC_DPM + (-12*256))	/* DPM system error, DBM or small DPM is down */
#define	DPM_ILLFTD	(ERRFAC_DPM + (-13*256))	/* illegal FTD (faster than 15 Hz) */
#define	DPM_SETBIG	(ERRFAC_DPM + (-14*256))	/* setting is longer than one packet */
#define	DPM_NOSET	(ERRFAC_DPM + (-15*256))	/* DPM setting not allowed from this console */
#define	DPM_DSET	(ERRFAC_DPM + (-16*256))	/* settings are currently locked out on this console */
#define	DPM_SETLOCK	(ERRFAC_DPM + (-16*256))	/* settings are currently locked out on this console */
#define	DPM_CSET	(ERRFAC_DPM + (-17*256))	/* settings are not allowed for this application by a console of this class */
#define	DPM_PRIV	(ERRFAC_DPM + (-17*256))	/* settings are not allowed for this application by a console of this class */
#define	DPM_DBPRIV	(ERRFAC_DPM + (-18*256))	/* settings are not allowed for this device by a console of this class */
#define	DPM_REDIRECT	(ERRFAC_DPM + (-19*256))	/* redirection not allowed */
#define	DPM_WHACKEDSETS	(ERRFAC_DPM + (-20*256))	/* mixed T/F whacked sets not allowed */
#define	DPM_NODEFAULT	(ERRFAC_DPM + (-21*256))	/* default length is not 1, 2 or 4 */
#define	DPM_DUPLICATES	(ERRFAC_DPM + (-22*256))	/* too many DI/PI duplicates */
#define	DPM_NO_TCLK	(ERRFAC_DPM + (-23*256))	/* front end is not receiving TCLK events for some reason */
#define	DPM_BAD_REQUEST	(ERRFAC_DPM + (-24*256))	/* invalid request to DPM */
#define	DPM_LOOKUP_FAILED	(ERRFAC_DPM + (-25*256))	/* unable to look up device info */
#define	DPM_NO_SUCH_DEVICE	(ERRFAC_DPM + (-26*256))	/* requested device was invalid */
#define	DPM_NO_SUCH_PROP	(ERRFAC_DPM + (-27*256))	/* requested property is not defined for requested device */
#define	DPM_BAD_RANGE	(ERRFAC_DPM + (-28*256))	/* invalid array range */
#define	DPM_OUT_OF_BOUNDS	(ERRFAC_DPM + (-29*256))	/* array range is out of bounds */
#define	DPM_BAD_FRAMING	(ERRFAC_DPM + (-30*256))	/* raw data array range is not a multiple of the atomic size */
#define	DPM_NO_SCALE	(ERRFAC_DPM + (-31*256))	/* no scaling exists for requested device */
#define	DPM_NO_SUCH_FIELD	(ERRFAC_DPM + (-32*256))	/* invalid DRF field specifier */
#define	DPM_BAD_EVENT	(ERRFAC_DPM + (-33*256))	/* invalid DRF data event format */
#define	DPM_BAD_DEF_EVENT	(ERRFAC_DPM + (-34*256))	/* requested device does not have a valid default data event */
#define	DPM_BAD_LENGTH	(ERRFAC_DPM + (-35*256))	/* invalid requested data length */
#define	DPM_SCALING_FAILED	(ERRFAC_DPM + (-36*256))	/* scaling failed */
#define	DPM_NO_SUCH_LIST	(ERRFAC_DPM + (-37*256))	/* requested list ID was not found */
#define	DPM_SERVICE_NOT_FOUND	(ERRFAC_DPM + (-38*256))	/* DPM service was not found */
#define	DPM_CALLBACK_NOT_FOUND	(ERRFAC_DPM + (-39*256))	/* requested format does not match DPM::List callback */

/*
**  CAMAC_FE
*/
#define	CAMAC_FE_OK	0				/* successful completion */
#define	CAMAC_FE_SUCCESS	0			/* CAMAC_FE success code */
#define	CAMAC_FE_PEND	(ERRFAC_CAMAC_FE + (1*256))	/* CAMAC_FE data pending code */
#define	CAMAC_FE_NOQ	(ERRFAC_CAMAC_FE + (-1*256))	/* CAMAC_FE no Q */
#define	CAMAC_FE_NOX	(ERRFAC_CAMAC_FE + (-2*256))	/* CAMAC_FE no X */
#define	CAMAC_FE_ARBCON	(ERRFAC_CAMAC_FE + (-3*256))	/* arbitration conflict */
#define	CAMAC_FE_NOSRP	(ERRFAC_CAMAC_FE + (-4*256))	/* no SRP, but not an arbitration conflict */
#define	CAMAC_FE_TIMEOUT	(ERRFAC_CAMAC_FE + (-5*256))	/* link driver timeout */
#define	CAMAC_FE_PROTERR	(ERRFAC_CAMAC_FE + (-6*256))	/* response frame protocol error */
#define	CAMAC_FE_ECHOERR	(ERRFAC_CAMAC_FE + (-7*256))	/* response frame echo error */
#define	CAMAC_FE_LINKERROR	(ERRFAC_CAMAC_FE + (-8*256))	/* other link error */
#define	CAMAC_FE_LINKBUSY	(ERRFAC_CAMAC_FE + (-9*256))	/* link driver busy */
#define	CAMAC_FE_LINKRESERVED	(ERRFAC_CAMAC_FE + (-10*256))	/* CAMAC link reserved for diagnostics */
#define	CAMAC_FE_INVHC	(ERRFAC_CAMAC_FE + (-11*256))	/* house code out of range */
#define	CAMAC_FE_INVGASTYPE	(ERRFAC_CAMAC_FE + (-12*256))	/* invalid GAS module type */
#define	CAMAC_FE_INVGASFUNC	(ERRFAC_CAMAC_FE + (-13*256))	/* invalid GAS function requested */
#define	CAMAC_FE_UNEQUIPPED	(ERRFAC_CAMAC_FE + (-14*256))	/* unequipped GAS module */
#define	CAMAC_FE_F20NOQ	(ERRFAC_CAMAC_FE + (-15*256))	/* no Q on F20 */
#define	CAMAC_FE_GASNOQ	(ERRFAC_CAMAC_FE + (-16*256))	/* no Q on F0, F16, or F22 */
#define	CAMAC_FE_GASQUEUE	(ERRFAC_CAMAC_FE + (-17*256))	/* front end internal GAS queue overflow */
#define	CAMAC_FE_LISTOVF	(ERRFAC_CAMAC_FE + (-18*256))	/* too many GAS lists */
#define	CAMAC_FE_OUTOMEM	(ERRFAC_CAMAC_FE + (-19*256))	/* GAS module is out of memory */
#define	CAMAC_FE_HANDFAIL	(ERRFAC_CAMAC_FE + (-20*256))	/* GAS module handshaking failed */
#define	CAMAC_FE_NEGBYTCNT	(ERRFAC_CAMAC_FE + (-21*256))	/* attempt to read or set a negative number of bytes */
#define	CAMAC_FE_NOSTANCS	(ERRFAC_CAMAC_FE + (-22*256))	/* no STANCs in a list setup request */
#define	CAMAC_FE_INVGASERROR	(ERRFAC_CAMAC_FE + (-23*256))	/* GAS module returned an invalid error code */
#define	CAMAC_FE_OUTOSERVICE	(ERRFAC_CAMAC_FE + (-24*256))	/* GAS module out of service */
#define	CAMAC_FE_OUTORANGE	(ERRFAC_CAMAC_FE + (-25*256))	/* GAS list ID is out of range */
#define	CAMAC_FE_TOOMANYWC	(ERRFAC_CAMAC_FE + (-26*256))	/* too many GAS wildcard reads */
#define	CAMAC_FE_GASWCERROR	(ERRFAC_CAMAC_FE + (-27*256))	/* internal error in GAS wildcard read request */
#define	CAMAC_FE_PLOTTOOFAST	(ERRFAC_CAMAC_FE + (-28*256))	/* plot request is for a frequency that is too high */
#define	CAMAC_FE_080_TIMEOUT	(ERRFAC_CAMAC_FE + (-29*256))	/* 080 transaction timeout */
#define	CAMAC_FE_GAS_TOO_LARGE	(ERRFAC_CAMAC_FE + (-30*256))	/* GAS byte count over the limit */
#define	CAMAC_FE_GAS_SET_VERIFY	(ERRFAC_CAMAC_FE + (-31*256))	/* GAS setting verification error */
#define	CAMAC_FE_UNDEFINED	(ERRFAC_CAMAC_FE + (-40*256))	/* attempted to read an undefined GAS list */
#define	CAMAC_FE_SETUPFAIL	(ERRFAC_CAMAC_FE + (-41*256))	/* GAS list setup failed */
#define	CAMAC_FE_GASREQFAIL	(ERRFAC_CAMAC_FE + (-42*256))	/* GAS read request failed */
#define	CAMAC_FE_NOTUPDATED	(ERRFAC_CAMAC_FE + (-43*256))	/* GAS list read of a list not yet updated with data */
#define	CAMAC_FE_MODMEMFAIL	(ERRFAC_CAMAC_FE + (-44*256))	/* GAS module is out of memory */
#define	CAMAC_FE_UPDMEMFAIL	(ERRFAC_CAMAC_FE + (-45*256))	/* GAS list read failed due to insufficient memory */
#define	CAMAC_FE_SETUPTMO	(ERRFAC_CAMAC_FE + (-46*256))	/* GAS list setup timeout */
#define	CAMAC_FE_READERROR	(ERRFAC_CAMAC_FE + (-47*256))	/* GAS read encountered fatal error */
#define	CAMAC_FE_READTMO	(ERRFAC_CAMAC_FE + (-48*256))	/* GAS read pending too long */
#define	CAMAC_FE_GAS_ERROR_10	(ERRFAC_CAMAC_FE + (-49*256))	/* GAS error 10 (no one knows what this means) */
#define	CAMAC_FE_INVCPU	(ERRFAC_CAMAC_FE + (-50*256))	/* invalid owner CPU returned by arbitration routine */
#define	CAMAC_FE_INVDRIVER	(ERRFAC_CAMAC_FE + (-51*256))	/* invalid driver code in SSDN */
#define	CAMAC_FE_INVPROP	(ERRFAC_CAMAC_FE + (-52*256))	/* invalid (or unsupported) property index */
#define	CAMAC_FE_INVDEVPROP	(ERRFAC_CAMAC_FE + (-53*256))	/* unsupported property for this device */
#define	CAMAC_FE_INVBCTL	(ERRFAC_CAMAC_FE + (-54*256))	/* unrecognizable basic control word */
#define	CAMAC_FE_INVOFFSET	(ERRFAC_CAMAC_FE + (-55*256))	/* invalid data offset */
#define	CAMAC_FE_INVLENGTH	(ERRFAC_CAMAC_FE + (-56*256))	/* invalid data length */
#define	CAMAC_FE_INVTOTLEN	(ERRFAC_CAMAC_FE + (-57*256))	/* invalid total of length + offset */
#define	CAMAC_FE_INVDPSLOT	(ERRFAC_CAMAC_FE + (-58*256))	/* invalid ad hoc datapool slot */
#define	CAMAC_FE_INVREADING	(ERRFAC_CAMAC_FE + (-59*256))	/* unrecognizable reading value */
#define	CAMAC_FE_INUSE	(ERRFAC_CAMAC_FE + (-60*256))	/* single user device is already in use */
#define	CAMAC_FE_NOSETUP	(ERRFAC_CAMAC_FE + (-61*256))	/* setup for data collection failed */
#define	CAMAC_FE_NO_ONESHOT_READ	(ERRFAC_CAMAC_FE + (-62*256))	/* attempted a oneshot read of a device that does not support it */
#define	CAMAC_FE_NO_EVENT_READ	(ERRFAC_CAMAC_FE + (-63*256))	/* attempted a read on event from a device that does not support it */
#define	CAMAC_FE_INVALID_SUBADDRESS	(ERRFAC_CAMAC_FE + (-64*256))	/* invalid subaddress field (byte 5) in the SSDN */
#define	CAMAC_FE_UNKNOWN_MADC_NUM	(ERRFAC_CAMAC_FE + (-65*256))	/* unknown MADC number in the SSDN */
#define	CAMAC_FE_INVALID_SET_VALUE	(ERRFAC_CAMAC_FE + (-66*256))	/* invalid setting value sent */
#define	CAMAC_FE_DEVICE_BUSY	(ERRFAC_CAMAC_FE + (-67*256))	/* attempt was made to set a device which was busy */
#define	CAMAC_FE_ALARM_IO_ERROR	(ERRFAC_CAMAC_FE + (-68*256))	/* front end internal alarm handling error */
#define	CAMAC_FE_NOALARM	(ERRFAC_CAMAC_FE + (-69*256))	/* alarm information is unknown */
#define	CAMAC_FE_ALARM_CONFLICT	(ERRFAC_CAMAC_FE + (-70*256))	/* alarm information conflicts with another device */
#define	CAMAC_FE_INVALID_CRATE	(ERRFAC_CAMAC_FE + (-71*256))	/* invalid crate address */
#define	CAMAC_FE_INV_ALARM_DATA_LENGTH	(ERRFAC_CAMAC_FE + (-72*256))	/* invalid alarm data length */
#define	CAMAC_FE_NOTENB	(ERRFAC_CAMAC_FE + (-73*256))	/* device not returning data for a valid reason */
#define	CAMAC_FE_NODLYENTRY	(ERRFAC_CAMAC_FE + (-74*256))	/* front end has no more delay list entries */
#define	CAMAC_FE_NODECODERS	(ERRFAC_CAMAC_FE + (-75*256))	/* no more MADC clock decoders */
#define	CAMAC_FE_NOEVNTLIST	(ERRFAC_CAMAC_FE + (-76*256))	/* no more MADC event-driven lists */
#define	CAMAC_FE_INVALID_MADC_NUM	(ERRFAC_CAMAC_FE + (-77*256))	/* invalid MADC number in the SSDN */
#define	CAMAC_FE_ALARM_MEMFAIL	(ERRFAC_CAMAC_FE + (-78*256))	/* front end is out of alarm tabloid memory */
#define	CAMAC_FE_BLK_XFER_OFF	(ERRFAC_CAMAC_FE + (-79*256))	/* block transfer is off */
#define	CAMAC_FE_BLK_XFER_MISMATCH	(ERRFAC_CAMAC_FE + (-80*256))	/* block transfer trailer mismatch */
#define	CAMAC_FE_BLK_XFER_NO_DATA	(ERRFAC_CAMAC_FE + (-81*256))	/* block transfer with no data received */
#define	CAMAC_FE_BLK_XFER_NO_Q	(ERRFAC_CAMAC_FE + (-82*256))	/* block transfer terminated by no-Q */
#define	CAMAC_FE_BLK_XFER_CHKFAIL	(ERRFAC_CAMAC_FE + (-83*256))	/* block transfer consistency check failure */
#define	CAMAC_FE_BLK_XFER_INV_LEN	(ERRFAC_CAMAC_FE + (-84*256))	/* block transfer invalid transfer length */
#define	CAMAC_FE_BLK_XFER_TOO_BIG	(ERRFAC_CAMAC_FE + (-85*256))	/* block transfer for too many words */
#define	CAMAC_FE_BLK_XFER_CANCEL	(ERRFAC_CAMAC_FE + (-86*256))	/* block transfer cancelled by a CAMAC command */
#define	CAMAC_FE_BLK_XFER_CC_TMO	(ERRFAC_CAMAC_FE + (-87*256))	/* block transfer crate controller timeout */
#define	CAMAC_FE_BLK_XFER_RCV_TMO	(ERRFAC_CAMAC_FE + (-88*256))	/* block transfer receiver timeout */
#define	CAMAC_FE_BLK_XFER_FRM_ERR	(ERRFAC_CAMAC_FE + (-89*256))	/* block transfer serial frame error */
#define	CAMAC_FE_BLK_XFER_RCV_OVF	(ERRFAC_CAMAC_FE + (-90*256))	/* block transfer receiver memory overflow */
#define	CAMAC_FE_BLK_XFER_SOFT_TMO	(ERRFAC_CAMAC_FE + (-91*256))	/* block transfer software timeout */
#define	CAMAC_FE_BLK_XFER_RCV_TOO_MUCH	(ERRFAC_CAMAC_FE + (-92*256))	/* block transfer received too many words */
#define	CAMAC_FE_BLK_XFER_RCV_TOO_FEW	(ERRFAC_CAMAC_FE + (-93*256))	/* block transfer did not receive enough words */
#define	CAMAC_FE_BLK_XFER_UNKNOWN_ERR	(ERRFAC_CAMAC_FE + (-94*256))	/* block transfer unknown composite error */
#define	CAMAC_FE_1553_AD_OFF	(ERRFAC_CAMAC_FE + (-95*256))	/* 1553 based A/D channel turned off */
#define	CAMAC_FE_UPGAS_LENGTH_ERROR	(ERRFAC_CAMAC_FE + (-96*256))	/* UPGAS received wrong length STANC list or setting data */
#define	CAMAC_FE_MEMFAIL	(ERRFAC_CAMAC_FE + (-97*256))	/* front end is out of memory */
#define	CAMAC_FE_UPGAS_TABLE_FULL	(ERRFAC_CAMAC_FE + (-98*256))	/* UPGAS table is full */
#define	CAMAC_FE_UPGAS_BAD_REQUEST	(ERRFAC_CAMAC_FE + (-99*256))	/* unrecognizable UPGAS request */
#define	CAMAC_FE_FEDOWN	(ERRFAC_CAMAC_FE + (-101*256))	/* front end is down or has prematurely cancelled the list */
#define	CAMAC_FE_GASBUSY	(ERRFAC_CAMAC_FE + (-102*256))	/* front end is busy a one shot GAS read has an outstanding reply */
#define	CAMAC_FE_NOLIST	(ERRFAC_CAMAC_FE + (-103*256))	/* no such GAS list */
#define	CAMAC_FE_REQFAIL	(ERRFAC_CAMAC_FE + (-104*256))	/* GAS request failed */
#define	CAMAC_FE_ALRDYREAD	(ERRFAC_CAMAC_FE + (-105*256))	/* one shot already read */
#define	CAMAC_FE_NO_SUCH_NODE	(ERRFAC_CAMAC_FE + (-106*256))	/* no such logical node */
#define	CAMAC_FE_SETTINGS_LOCKED	(ERRFAC_CAMAC_FE + (-107*256))	/* settings are currently locked out on this console */
#define	CAMAC_FE_NO_SETTINGS_PRIV	(ERRFAC_CAMAC_FE + (-108*256))	/* console has no setting privileges */
#define	CAMAC_FE_DRVMEMFAIL	(ERRFAC_CAMAC_FE + (-109*256))	/* front end driver is out of shared memory */
#define	CAMAC_FE_DRVLCLMEM	(ERRFAC_CAMAC_FE + (-110*256))	/* front end driver is out of local memory */
#define	CAMAC_FE_TOOMANYREQS	(ERRFAC_CAMAC_FE + (-111*256))	/* front end has too many device requests */
#define	CAMAC_FE_LIST_CANCEL_FAIL	(ERRFAC_CAMAC_FE + (-112*256))	/* failed to find list to cancel */
#define	CAMAC_FE_NO_DEVICE_REQUEST	(ERRFAC_CAMAC_FE + (-113*256))	/* received request with no devices */
#define	CAMAC_FE_INVALID_SLOT	(ERRFAC_CAMAC_FE + (-114*256))	/* invalid CAMAC slot number requested */
#define	CAMAC_FE_KEY_TABLES_FULL	(ERRFAC_CAMAC_FE + (-115*256))	/* key front end tables are full */
#define	CAMAC_FE_TOO_MUCH_DATA	(ERRFAC_CAMAC_FE + (-116*256))	/* driver returned too much data */
#define	CAMAC_FE_SLAM_CONFLICT	(ERRFAC_CAMAC_FE + (-117*256))	/* SLAM table conflict */
#define	CAMAC_FE_ZERO_SCALEFACTOR	(ERRFAC_CAMAC_FE + (-118*256))	/* scale factor is zero */
#define	CAMAC_FE_CALC_OVERFLOW	(ERRFAC_CAMAC_FE + (-119*256))	/* calculation resulted in overflow */
#define	CAMAC_FE_NODATAYET	(ERRFAC_CAMAC_FE + (-124*256))	/* data is not collected yet */
#define	CAMAC_FE_QUEUERR	(ERRFAC_CAMAC_FE + (-125*256))	/* input queue error */
#define	CAMAC_FE_LINKERR	(ERRFAC_CAMAC_FE + (-126*256))	/* CAMAC link transmit error */
#define	CAMAC_FE_NOLINK	(ERRFAC_CAMAC_FE + (-127*256))	/* CAMAC link driver is not responding */
#define	CAMAC_FE_TOO_MANY_MADC_DEVS	(ERRFAC_CAMAC_FE + (-128*256))	/* MADC task has been asked to read too many devices */

/*
**  IOMAC
*/
#define	IOMAC_OK		0			/* successful completion */
#define	IOMAC_SUCCESS		0			/* IOMAC success code */
#define	IOMAC_INVMAC		(ERRFAC_IOMAC + (-1*256))	/* no such MAC */
#define	IOMAC_SENDFAIL		(ERRFAC_IOMAC + (-2*256))	/* network send request failed */
#define	IOMAC_MACTMO		(ERRFAC_IOMAC + (-3*256))	/* no response from MAC in timeout period */
#define	IOMAC_TAGFAIL		(ERRFAC_IOMAC + (-4*256))	/* echoed ID from front end does not match request */
#define	IOMAC_BADMAC		(ERRFAC_IOMAC + (-5*256))	/* front end says that something is wrong with the MAC */
#define	IOMAC_WDCERR		(ERRFAC_IOMAC + (-6*256))	/* word count is greater than 1023 */
#define	IOMAC_BOOTFAIL		(ERRFAC_IOMAC + (-7*256))	/* network request for reboot failed */
#define	IOMAC_EVFLGERR		(ERRFAC_IOMAC + (-8*256))	/* bad response to a check event flag request */
#define	IOMAC_NOBOOTRPLY	(ERRFAC_IOMAC + (-9*256))	/* second reply to reboot never came */
#define	IOMAC_NOSET		(ERRFAC_IOMAC + (-10*256))	/* settings disallowed for this console */

/*
**  RDAT Frig
*/
#define	RDAT_FRG_OK		0			/* successful completion */
#define	RDAT_FRG_SUCCESS	0			/* RDAT frig success code */
#define	RDAT_FRG_NOCLASS	(ERRFAC_RDAT_FRG + (-1*256))	/* no such class */
#define	RDAT_FRG_INV_OID	(ERRFAC_RDAT_FRG + (-2*256))	/* OID value out of range */
#define	RDAT_FRG_NOMSG		(ERRFAC_RDAT_FRG + (-3*256))	/* no such message type */
#define	RDAT_FRG_INV_IVLEN	(ERRFAC_RDAT_FRG + (-4*256))	/* inner variables too long */
#define	RDAT_FRG_TOOMANYCLASS	(ERRFAC_RDAT_FRG + (-5*256))	/* too many classes */
#define	RDAT_FRG_DUPCLASS	(ERRFAC_RDAT_FRG + (-6*256))	/* duplicated class definition */
#define	RDAT_FRG_DUP_OID	(ERRFAC_RDAT_FRG + (-7*256))	/* duplicated OID */
#define	RDAT_FRG_NOSUPERCLASS	(ERRFAC_RDAT_FRG + (-8*256))	/* super class for this class doesn't exist */
#define	RDAT_FRG_NO_OID_CLASS	(ERRFAC_RDAT_FRG + (-9*256))	/* class for this OID is not defined */
#define	RDAT_FRG_NO_OID		(ERRFAC_RDAT_FRG + (-10*256))	/* no such OID */
#define	RDAT_FRG_NOSUPERMETHOD	(ERRFAC_RDAT_FRG + (-11*256))	/* no super method for this method */
#define	RDAT_FRG_MEMFAILCLASS	(ERRFAC_RDAT_FRG + (-12*256))	/* out of dynamic memory for class structures */
#define	RDAT_FRG_MEMFAILINSTNC	(ERRFAC_RDAT_FRG + (-13*256))	/* out of dynamic memory for instance structures */
#define	RDAT_FRG_EMPTYNAME	(ERRFAC_RDAT_FRG + (-14*256))	/* empty name */
#define	RDAT_FRG_TOOSMALL	(ERRFAC_RDAT_FRG + (-15*256))	/* structure is too small for message */
#define	RDAT_FRG_INV_OID_MSG	(ERRFAC_RDAT_FRG + (-16*256))	/* message not supported by this OID */
#define	RDAT_FRG_IV_TOOSMALL	(ERRFAC_RDAT_FRG + (-17*256))	/* inner variable length is too small */
#define	RDAT_FRG_ACNETERR	(ERRFAC_RDAT_FRG + (-18*256))	/* ACNET communications error */
#define	RDAT_FRG_MEMERR		(ERRFAC_RDAT_FRG + (-19*256))	/* inner memory error */
#define	RDAT_FRG_INVLISTREQ	(ERRFAC_RDAT_FRG + (-20*256))	/* bad list request parameters */
#define	RDAT_FRG_TRIGERR	(ERRFAC_RDAT_FRG + (-21*256))	/* error defining trigger */
#define	RDAT_FRG_INVFTD		(ERRFAC_RDAT_FRG + (-22*256))	/* bad FTD */
#define	RDAT_FRG_INVSET		(ERRFAC_RDAT_FRG + (-23*256))	/* bad setting parameters */
#define	RDAT_FRG_INVLAN		(ERRFAC_RDAT_FRG + (-24*256))	/* bad LAN (trunk) */
#define	RDAT_FRG_INVNODE	(ERRFAC_RDAT_FRG + (-25*256))	/* bad node */
#define	RDAT_FRG_INVFORMAT	(ERRFAC_RDAT_FRG + (-26*256))	/* bad format */
#define	RDAT_FRG_INVPROP	(ERRFAC_RDAT_FRG + (-27*256))	/* unsupported property index */
#define	RDAT_FRG_INVOFFSET	(ERRFAC_RDAT_FRG + (-28*256))	/* invalid offset */
#define	RDAT_FRG_INVLEN		(ERRFAC_RDAT_FRG + (-29*256))	/* invalid length */
#define	RDAT_FRG_SETTMO		(ERRFAC_RDAT_FRG + (-30*256))	/* setting timeout */
#define	RDAT_FRG_INV186		(ERRFAC_RDAT_FRG + (-31*256))	/* invalid 186 index */
#define	RDAT_FRG_INVSLOT	(ERRFAC_RDAT_FRG + (-32*256))	/* invalid slot for this type of device */
#define	RDAT_FRG_INVCHAN	(ERRFAC_RDAT_FRG + (-33*256))	/* invalid channel number */
#define	RDAT_FRG_INVOFFLEN	(ERRFAC_RDAT_FRG + (-34*256))	/* invalid offset and length */
#define	RDAT_FRG_ACTUATORERR	(ERRFAC_RDAT_FRG + (-35*256))	/* actuator card is not updating data */
#define	RDAT_FRG_LOCAL		(ERRFAC_RDAT_FRG + (-36*256))	/* attempted to set device which is in local */
#define	RDAT_FRG_INVTYPE	(ERRFAC_RDAT_FRG + (-37*256))	/* invalid device type */
#define	RDAT_FRG_INVCONTROL	(ERRFAC_RDAT_FRG + (-38*256))	/* invalid basic control word */
#define	RDAT_FRG_TRANSDUCERR	(ERRFAC_RDAT_FRG + (-39*256))	/* transducer error from actuator card */
#define	RDAT_FRG_ENGINERR	(ERRFAC_RDAT_FRG + (-40*256))	/* error from engine card */
#define	RDAT_FRG_NOALARM	(ERRFAC_RDAT_FRG + (-41*256))	/* attempted read of a nonexistent alarm block */
#define	RDAT_FRG_INVALARM	(ERRFAC_RDAT_FRG + (-42*256))	/* alarm property not supported for this type of device */
#define	RDAT_FRG_NOOPER		(ERRFAC_RDAT_FRG + (-43*256))	/* attempted use of an undefined operation */
#define	RDAT_FRG_RECURSOPER	(ERRFAC_RDAT_FRG + (-44*256))	/* recursive operation defined */
#define	RDAT_FRG_INVOPER	(ERRFAC_RDAT_FRG + (-45*256))	/* invalid operation type */
#define	RDAT_FRG_BADNUMOPRNDS	(ERRFAC_RDAT_FRG + (-46*256))	/* wrong number of operands for this operation */
#define	RDAT_FRG_INVOPERAND	(ERRFAC_RDAT_FRG + (-47*256))	/* invalid operand */
#define	RDAT_FRG_STATEACTIVE	(ERRFAC_RDAT_FRG + (-48*256))	/* attempted to change currently active state */
#define	RDAT_FRG_NOSTATE	(ERRFAC_RDAT_FRG + (-49*256))	/* attempted activation of an FSM with undefined states */
#define	RDAT_FRG_NOFSM		(ERRFAC_RDAT_FRG + (-50*256))	/* attempted activation of an undefined FSM */
#define	RDAT_FRG_FSMDIS		(ERRFAC_RDAT_FRG + (-51*256))	/* FSM is disabled */
#define	RDAT_FRG_NORMPBUF	(ERRFAC_RDAT_FRG + (-52*256))	/* ramp buffer is undefined */
#define	RDAT_FRG_FSMACTIVE	(ERRFAC_RDAT_FRG + (-53*256))	/* can't modify FSM because it is active */
#define	RDAT_FRG_NOTIMER	(ERRFAC_RDAT_FRG + (-54*256))	/* timer is undefined */
#define	RDAT_FRG_RELOAD		(ERRFAC_RDAT_FRG + (-55*256))	/* can't read loops because they are being reloaded from DBM */
#define	RDAT_FRG_NOACTION	(ERRFAC_RDAT_FRG + (-56*256))	/* action is undefined */
#define	RDAT_FRG_ACTION_RECURSION	(ERRFAC_RDAT_FRG + (-57*256))	/* action is recursive */
#define	RDAT_FRG_BADNUMOUT	(ERRFAC_RDAT_FRG + (-58*256))	/* invalid number of outputs for this action */
#define	RDAT_FRG_STATE_RECURSION	(ERRFAC_RDAT_FRG + (-59*256))	/* state is recursive */
#define	RDAT_FRG_INV_EVENT_FTD	(ERRFAC_RDAT_FRG + (-60*256))	/* invalid FTD while programming events */
#define	RDAT_FRG_INV_EVENT_DELAY	(ERRFAC_RDAT_FRG + (-61*256))	/* invalid delay for event FTD */
#define	RDAT_FRG_INV_FILTER_METHOD	(ERRFAC_RDAT_FRG + (-62*256))	/* invalid filter method */
#define	RDAT_FRG_NO_FILTER_MODIFY	(ERRFAC_RDAT_FRG + (-63*256))	/* attempt was made to change the parameters of a running filter */
#define	RDAT_FRG_FILTER_UNDEFINED	(ERRFAC_RDAT_FRG + (-64*256))	/* attempt was made to activate an undefined filter */
#define	RDAT_FRG_INVACTUATORPRECISION	(ERRFAC_RDAT_FRG + (-65*256))	/* invalid actuator precision */
#define	RDAT_FRG_VM_DEV_UNDEFINED	(ERRFAC_RDAT_FRG + (-66*256))	/* undefined Virtual Machine device */
#define	RDAT_FRG_INV_VM_PROP	(ERRFAC_RDAT_FRG + (-67*256))	/* invalid Virtual Machine property requested */
#define	RDAT_FRG_INV_VM_STATE	(ERRFAC_RDAT_FRG + (-68*256))	/* invalid Virtual Machine state */
#define	RDAT_FRG_INV186NODE	(ERRFAC_RDAT_FRG + (-71*256))	/* invalid 186 node */
#define	RDAT_FRG_INVBOARD	(ERRFAC_RDAT_FRG + (-72*256))	/* invalid board type */
#define	RDAT_FRG_SLOTEMPTY	(ERRFAC_RDAT_FRG + (-73*256))	/* slot is empty */
#define	RDAT_FRG_INVBOARDPROP	(ERRFAC_RDAT_FRG + (-74*256))	/* invalid property for this type of board */
#define	RDAT_FRG_PROPFLAGCOLL	(ERRFAC_RDAT_FRG + (-75*256))	/* collision between a property and a flag */
#define	RDAT_FRG_NOCHANNEL	(ERRFAC_RDAT_FRG + (-76*256))	/* nonexistent channel */
#define	RDAT_FRG_186ERR		(ERRFAC_RDAT_FRG + (-81*256))	/* error from 186 */
#define	RDAT_FRG_186COMMERR	(ERRFAC_RDAT_FRG + (-82*256))	/* can't communicate with 186 */
#define	RDAT_FRG_CARDGONE	(ERRFAC_RDAT_FRG + (-83*256))	/* card is missing */
#define	RDAT_FRG_SLOTMISMATCH	(ERRFAC_RDAT_FRG + (-84*256))	/* wrong board type/revision in this slot */
#define	RDAT_FRG_SETBUSY	(ERRFAC_RDAT_FRG + (-85*256))	/* previous settings are in progress */
#define	RDAT_FRG_LOOP_VALUE_UNDEFINED	(ERRFAC_RDAT_FRG + (-86*256))	/* loop value is undefined */

/*
**  Save/restore
*/
#define	SAV_RST_OK	0				/* successful completion */
#define	SAV_RST_SUCCESS	0				/* save/restore success code */
#define	SAV_RST_NORETDATA	(ERRFAC_SAV_RST + (2*256))	/* no data returned for this request */
#define	SAV_RST_NODT	(ERRFAC_SAV_RST + (2*256))	/* no data returned for this request */
#define	SAV_RST_ILDEV	(ERRFAC_SAV_RST + (-1*256))	/* illegal device index */
#define	SAV_RST_ILDI	(ERRFAC_SAV_RST + (-1*256))	/* illegal device index */
#define	SAV_RST_ILPROP	(ERRFAC_SAV_RST + (-2*256))	/* illegal property code */
#define	SAV_RST_ILPR	(ERRFAC_SAV_RST + (-2*256))	/* illegal property code */
#define	SAV_RST_NOTDONE	(ERRFAC_SAV_RST + (-3*256))	/* request was not done due to a serious error in a previous request packet */
#define	SAV_RST_NDUN	(ERRFAC_SAV_RST + (-3*256))	/* request was not done due to a serious error in a previous request packet */
#define	SAV_RST_NOPROP	(ERRFAC_SAV_RST + (-4*256))	/* no such property for this device */
#define	SAV_RST_NSPR	(ERRFAC_SAV_RST + (-4*256))	/* no such property for this device */
#define	SAV_RST_INSUFFICIENT_ARGS	(ERRFAC_SAV_RST + (-5*256))	/* not enough arguments provided in UTI call */
#define	SAV_RST_NEAG	(ERRFAC_SAV_RST + (-5*256))	/* not enough arguments provided in UTI call */
#define	SAV_RST_ILRINX	(ERRFAC_SAV_RST + (-6*256))	/* illegal retrieval index */
#define	SAV_RST_IRNX	(ERRFAC_SAV_RST + (-6*256))	/* illegal retrieval index */
#define	SAV_RST_ILWORK	(ERRFAC_SAV_RST + (-7*256))	/* illegal work area */
#define	SAV_RST_ILWA	(ERRFAC_SAV_RST + (-7*256))	/* illegal work area */
#define	SAV_RST_WORK_FULL	(ERRFAC_SAV_RST + (-8*256))	/* work area full */
#define	SAV_RST_WAFU	(ERRFAC_SAV_RST + (-8*256))	/* work area full */
#define	SAV_RST_EMPTY	(ERRFAC_SAV_RST + (-9*256))	/* empty work area */
#define	SAV_RST_NORQ	(ERRFAC_SAV_RST + (-9*256))	/* empty work area */
#define	SAV_RST_ILLEN	(ERRFAC_SAV_RST + (-10*256))	/* invalid length specified */
#define	SAV_RST_BLEN	(ERRFAC_SAV_RST + (-10*256))	/* invalid length specified */
#define	SAV_RST_ILSRCODE	(ERRFAC_SAV_RST + (-11*256))	/* illegal save/restore code */
#define	SAV_RST_ISRC	(ERRFAC_SAV_RST + (-11*256))	/* illegal save/restore code */
#define	SAV_RST_INPROGRESS	(ERRFAC_SAV_RST + (-12*256))	/* save already in progress on another console */
#define	SAV_RST_SAIP	(ERRFAC_SAV_RST + (-12*256))	/* save already in progress on another console */
#define	SAV_RST_NOFILE	(ERRFAC_SAV_RST + (-13*256))	/* no save file specified */
#define	SAV_RST_NSFS	(ERRFAC_SAV_RST + (-13*256))	/* no save file specified */
#define	SAV_RST_INSQUOTA	(ERRFAC_SAV_RST + (-14*256))	/* insufficient quota */
#define	SAV_RST_INSQ	(ERRFAC_SAV_RST + (-14*256))	/* insufficient quota */
#define	SAV_RST_ITYC	(ERRFAC_SAV_RST + (-15*256))	/* illegal typecode specified */
#define	SAV_RST_OVFLOW	(ERRFAC_SAV_RST + (-16*256))	/* not enough room in reply buffer */
#define	SAV_RST_DOVF	(ERRFAC_SAV_RST + (-16*256))	/* not enough room in reply buffer */
#define	SAV_RST_ILLENOROFF	(ERRFAC_SAV_RST + (-17*256))	/* illegal length or offset specified */
#define	SAV_RST_ILOF	(ERRFAC_SAV_RST + (-17*256))	/* illegal length or offset specified */
#define	SAV_RST_ILDATE	(ERRFAC_SAV_RST + (-18*256))	/* illegal date specified */
#define	SAV_RST_DATE	(ERRFAC_SAV_RST + (-18*256))	/* illegal date specified */
#define	SAV_RST_OPENFAIL	(ERRFAC_SAV_RST + (-19*256))	/* no such file, file cannot be opened */
#define	SAV_RST_NSFL	(ERRFAC_SAV_RST + (-19*256))	/* no such file, file cannot be opened */
#define	SAV_RST_NODI	(ERRFAC_SAV_RST + (-20*256))	/* device index not in save/restore log */
#define	SAV_RST_NSDI	(ERRFAC_SAV_RST + (-20*256))	/* device index not in save/restore log */
#define	SAV_RST_ILPA	(ERRFAC_SAV_RST + (-21*256))	/* illegal parameter in request */
#define	SAV_RST_NODATA	(ERRFAC_SAV_RST + (-22*256))	/* no data for request */
#define	SAV_RST_NODA	(ERRFAC_SAV_RST + (-22*256))	/* no data for request */
#define	SAV_RST_JUNK	(ERRFAC_SAV_RST + (-23*256))	/* network request has been seriously corrupted */
#define	SAV_RST_SSDE	(ERRFAC_SAV_RST + (-24*256))	/* system service or directive error */
#define	SAV_RST_NOREADPROC	(ERRFAC_SAV_RST + (-25*256))	/* no SRREAD process available */
#define	SAV_RST_NSRR	(ERRFAC_SAV_RST + (-25*256))	/* no SRREAD process available */
#define	SAV_RST_READERR	(ERRFAC_SAV_RST + (-26*256))	/* file read error occurred */
#define	SAV_RST_RDER	(ERRFAC_SAV_RST + (-26*256))	/* file read error occurred */
#define	SAV_RST_PENDFOREVER	(ERRFAC_SAV_RST + (-27*256))	/* forever pending from a front end */
#define	SAV_RST_FPND	(ERRFAC_SAV_RST + (-27*256))	/* forever pending from a front end */
#define	SAV_RST_ILPT	(ERRFAC_SAV_RST + (-28*256))	/* illegal packet type */
#define	SAV_RST_SAVEDWERR	(ERRFAC_SAV_RST + (-29*256))	/* di/pi had an error when saved */
#define	SAV_RST_SAVE	(ERRFAC_SAV_RST + (-29*256))	/* di/pi had an error when saved */
#define	SAV_RST_NOTYET	(ERRFAC_SAV_RST + (-30*256))	/* unsupported feature requested */
#define	SAV_RST_ILRQ	(ERRFAC_SAV_RST + (-30*256))	/* unsupported feature requested */
#define	SAV_RST_ALER	(ERRFAC_SAV_RST + (-31*256))	/* allocation error */
#define	SAV_RST_CONM	(ERRFAC_SAV_RST + (-32*256))	/* console mask protection error */
#define	SAV_RST_CASE	(ERRFAC_SAV_RST + (-34*256))	/* SDA case ended before data collection completed */
#define	SAV_RST_PRER	(ERRFAC_SAV_RST + (-35*256))	/* requested property has a save file error */
#define	SAV_RST_BADPDB	(ERRFAC_SAV_RST + (-36*256))	/* basic control set failed due to a bad PDB */
#define	SAV_RST_BPDB	(ERRFAC_SAV_RST + (-36*256))	/* basic control set failed due to a bad PDB */
#define	SAV_RST_DEVINLOCAL	(ERRFAC_SAV_RST + (-37*256))	/* basic control set failed due to device in local */
#define	SAV_RST_DLCL	(ERRFAC_SAV_RST + (-37*256))	/* basic control set failed due to device in local */
#define	SAV_RST_TMO	(ERRFAC_SAV_RST + (-38*256))	/* basic control set failed due to timeout on basic status read */
#define	SAV_RST_BDVR	(ERRFAC_SAV_RST + (-38*256))	/* basic control set failed due to timeout on basic status read */
#define	SAV_RST_NO_COLLECTION	(ERRFAC_SAV_RST + (-39*256))	/* requested collection not found in file */
#define	SAV_RST_SET	(ERRFAC_SAV_RST + (-40*256))	/* canceling a set collect before starting the same set collection */
#define	SAV_RST_NOOP	(ERRFAC_SAV_RST + (-41*256))	/* set collection cancelled on a noop (e.g. did not qualify) */

/*
**  RDAT_CAM
*/
#define	RDAT_CAM_OK	0				/* successful completion */
#define	RDAT_CAM_SUCCESS	0			/* RDAT_CAM success code */
#define	RDAT_CAM_PEND	(ERRFAC_RDAT_CAM + (1*256))	/* data pending */
#define	RDAT_CAM_INVALID_SDRPID	(ERRFAC_RDAT_CAM + (-64*256))	/* illegal SDRPID (Subsystems Device Record Packet ID) */
#define	RDAT_CAM_INV_SSDR_FORMAT_CODE	(ERRFAC_RDAT_CAM + (-65*256))	/* illegal format code in Subsystem Device Record Packet */
#define	RDAT_CAM_ZERO_LEN_REQ	(ERRFAC_RDAT_CAM + (-66*256))	/* zero length specified */
#define	RDAT_CAM_INV_WCARD_LEN	(ERRFAC_RDAT_CAM + (-67*256))	/* invalid wildcard device length */
#define	RDAT_CAM_XCON	(ERRFAC_RDAT_CAM + (-68*256))	/* internal error E.XCON */
#define	RDAT_CAM_INVALID_OFFSET	(ERRFAC_RDAT_CAM + (-69*256))	/* invalid offset */
#define	RDAT_CAM_INVALID_LENGTH	(ERRFAC_RDAT_CAM + (-70*256))	/* invalid length */
#define	RDAT_CAM_OFFSET_TOO_BIG	(ERRFAC_RDAT_CAM + (-71*256))	/* offset extends beyond the limit of available data */
#define	RDAT_CAM_GAS_LEN_EXCEEDED	(ERRFAC_RDAT_CAM + (-72*256))	/* GAS count exceeds number of bytes available */
#define	RDAT_CAM_ALARM_BLOCK_MA	(ERRFAC_RDAT_CAM + (-73*256))	/* 'MA' not permitted with alarm blocks */
#define	RDAT_CAM_GAS_AB_COUNT_ERR	(ERRFAC_RDAT_CAM + (-74*256))	/* GAS count for alarm block not equal to four */
#define	RDAT_CAM_AB_ASPECT_SIZE_ERR	(ERRFAC_RDAT_CAM + (-75*256))	/* incorrect size for alarm block aspect */
#define	RDAT_CAM_INV_SSDR_MODULE_CODE	(ERRFAC_RDAT_CAM + (-76*256))	/* illegal module code in Subsystem Device Record Packet */
#define	RDAT_CAM_INVALID_GAS_TYPE	(ERRFAC_RDAT_CAM + (-77*256))	/* illegal GAS Type */
#define	RDAT_CAM_INVALID_GAS_ASPECT	(ERRFAC_RDAT_CAM + (-78*256))	/* illegal GAS Aspect */
#define	RDAT_CAM_INVALID_GAS_ENTRY	(ERRFAC_RDAT_CAM + (-79*256))	/* illegal GAS Entry */
#define	RDAT_CAM_ENTRY_COUNT_ERROR	(ERRFAC_RDAT_CAM + (-80*256))	/* entry count discrepancy */
#define	RDAT_CAM_REQUEST_TRUNC	(ERRFAC_RDAT_CAM + (-81*256))	/* request truncated (network buffer not large enough) */
#define	RDAT_CAM_REQ_LIST_OVFLOW	(ERRFAC_RDAT_CAM + (-82*256))	/* packet overflows request list */
#define	RDAT_CAM_ZERO_ENTRY_REQ	(ERRFAC_RDAT_CAM + (-83*256))	/* request contains zero entries */
#define	RDAT_CAM_REPLY_BUFFER_OVFLOW	(ERRFAC_RDAT_CAM + (-84*256))	/* reply buffer overflow */
#define	RDAT_CAM_TDL_FULL	(ERRFAC_RDAT_CAM + (-85*256))	/* TDL full */
#define	RDAT_CAM_MULT_REPLY_SET	(ERRFAC_RDAT_CAM + (-86*256))	/* multiple replies specified for a setting */
#define	RDAT_CAM_GAS_BCNTRL_COUNT_ERR	(ERRFAC_RDAT_CAM + (-87*256))	/* GAS count for Basic Control not equal to one */
#define	RDAT_CAM_BCNTRL_ASPECT_SIZ_ERR	(ERRFAC_RDAT_CAM + (-88*256))	/* incorrect size for basic control aspect */
#define	RDAT_CAM_INV_CAMAC_WORD_CNT	(ERRFAC_RDAT_CAM + (-89*256))	/* illegal CAMAC word count (or illegal packing mode) */
#define	RDAT_CAM_INV_READ_PROPERTY	(ERRFAC_RDAT_CAM + (-90*256))	/* illegal property for selective data acquisition (RETDAT) */
#define	RDAT_CAM_INV_INTERNAL_DATA_REQ	(ERRFAC_RDAT_CAM + (-91*256))	/* illegal internal data request */
#define	RDAT_CAM_INV_WILDCARD_OP	(ERRFAC_RDAT_CAM + (-92*256))	/* illegal wildcard (multi-house) operation */
#define	RDAT_CAM_INV_SPECIAL_REQUEST	(ERRFAC_RDAT_CAM + (-93*256))	/* an illegal special request was detected by RETDAT */
#define	RDAT_CAM_INV_GAS_AB_ADDRESS	(ERRFAC_RDAT_CAM + (-94*256))	/* an illegal GAS/SYSTEM-error alarm block addressing
									   parameter was detected */
#define	RDAT_CAM_INV_GAS_HOUSE_CODE	(ERRFAC_RDAT_CAM + (-95*256))	/* GAS house code is out of range */
#define	RDAT_CAM_TRIGGER_DEF_ERROR	(ERRFAC_RDAT_CAM + (-96*256))	/* error defining trigger */
#define	RDAT_CAM_MALLOC_ERROR	(ERRFAC_RDAT_CAM + (-97*256))	/* error allocating memory */
#define	RDAT_CAM_DEVALLOC_QUEUE_FULL	(ERRFAC_RDAT_CAM + (-98*256))	/* devalloc queue is filled up */
#define	RDAT_CAM_RETDAT_QUEUE_FULL	(ERRFAC_RDAT_CAM + (-99*256))	/* RETDAT internal queue is filled */
#define	RDAT_CAM_TOO_MANY_STANCS	(ERRFAC_RDAT_CAM + (-100*256))	/* too many stancs are built from one request */
#define	RDAT_CAM_NO_GAS_SET_DATA	(ERRFAC_RDAT_CAM + (-101*256))	/* no data acompanies setting request to the
									   GAS gathering task */
#define	RDAT_CAM_INV_DOUBLE_SEQ_REQ	(ERRFAC_RDAT_CAM + (-102*256))	/* invalid entry double sequential request */
#define	RDAT_CAM_MCOM_MEMFAIL	(ERRFAC_RDAT_CAM + (-103*256))	/* MCOM memory allocation failure */
#define	RDAT_CAM_OUTOMEM	(ERRFAC_RDAT_CAM + (-104*256))	/* front end is out of memory */
#define	RDAT_CAM_TCOM	(ERRFAC_RDAT_CAM + (-104*256))	/* front end is out of memory */
#define	RDAT_CAM_REQUEST_TERMINATED	(ERRFAC_RDAT_CAM + (-105*256))	/* the request has been involuntarily terminated */
#define	RDAT_CAM_INVALID_SSDN	(ERRFAC_RDAT_CAM + (-106*256))	/* unrecognizable SSDN */
#define	RDAT_CAM_GAS_MEMFAIL	(ERRFAC_RDAT_CAM + (-110*256))	/* GAS gathering task is out of local memory */

/*
**  RDAT_LIN
*/
#define	RDAT_LIN_OK	0				/* successful completion */
#define	RDAT_LIN_SUCCESS	0			/* RDAT_LIN success code */
#define	RDAT_LIN_BUS_ERROR	(ERRFAC_RDAT_LIN + (-4*256))	/* access to memory produced a bus error */
#define	RDAT_LIN_TARDY_RESPONSE	(ERRFAC_RDAT_LIN + (-7*256))	/* server node detected tardy response from target node */
#define	RDAT_LIN_NO_RESPONSE	(ERRFAC_RDAT_LIN + (-8*256))	/* server node detected no response from target node */
#define	RDAT_LIN_EVENT_DURING_DELAY	(ERRFAC_RDAT_LIN + (-9*256))	/* event occurred again while waiting for delay */
#define	RDAT_LIN_CANT_QUEUE_REQ	(ERRFAC_RDAT_LIN + (-32*256))	/* cannot queue external request to network */
#define	RDAT_LIN_REQ_TOO_SMALL	(ERRFAC_RDAT_LIN + (-33*256))	/* request message size not large enough for #request packets */
#define	RDAT_LIN_NO_REQ_ID	(ERRFAC_RDAT_LIN + (-34*256))	/* could not obtain request id from LISTP table */
#define	RDAT_LIN_INV_NUM_REQS	(ERRFAC_RDAT_LIN + (-35*256))	/* #request packets not in valid range 1-299 */
#define	RDAT_LIN_MALLOC_FAIL	(ERRFAC_RDAT_LIN + (-36*256))	/* allocation of dynamic memory failed */
#define	RDAT_LIN_LIST_TYPE_BAD	(ERRFAC_RDAT_LIN + (-37*256))	/* invalid listype# from SSDN hi byte of first word */
#define	RDAT_LIN_ID_TYPE_BAD	(ERRFAC_RDAT_LIN + (-38*256))	/* invalid ident type#. Consult an expert */
#define	RDAT_LIN_ID_LEN_BAD	(ERRFAC_RDAT_LIN + (-39*256))	/* invalid ident length from SSDN bit#3-0 of first word */
#define	RDAT_LIN_NUM_BYTES_BAD	(ERRFAC_RDAT_LIN + (-40*256))	/* invalid #bytes of data requested */
#define	RDAT_LIN_NUM_IDS_TOO_BIG	(ERRFAC_RDAT_LIN + (-41*256))	/* total #idents in all request packets >= 1200 */
#define	RDAT_LIN_ANS_NBYTES_TOO_BIG	(ERRFAC_RDAT_LIN + (-42*256))	/* total #bytes of answers >= 5000 */
#define	RDAT_LIN_ANS_NBYTES_GT_MAX	(ERRFAC_RDAT_LIN + (-43*256))	/* total #bytes of answers > maximum in request packet */
#define	RDAT_LIN_OFFSET_NOTENB	(ERRFAC_RDAT_LIN + (-44*256))	/* offset/length option not enabled in this SSDN */
#define	RDAT_LIN_IP_SECURITY	(ERRFAC_RDAT_LIN + (-45*256))	/* UDP/IP setting denied by IP security table */
#define	RDAT_LIN_NUM_SETS_BAD	(ERRFAC_RDAT_LIN + (-46*256))	/* #setting packets not in valid range 1-299 */
#define	RDAT_LIN_READ_RTN_NUM_BAD	(ERRFAC_RDAT_LIN + (-47*256))	/* internal read routine# invalid */
#define	RDAT_LIN_ZERO_NODE	(ERRFAC_RDAT_LIN + (-48*256))	/* node# word is zero in SSDN second word */
#define	RDAT_LIN_NO_DEST_TSKNAM	(ERRFAC_RDAT_LIN + (-49*256))	/* can't find destination task name for this protocol */
#define	RDAT_LIN_NO_TABLE	(ERRFAC_RDAT_LIN + (-65*256))	/* system table not defined for this listype# - SSDN invalid */
#define	RDAT_LIN_NO_ENTRY_NUM	(ERRFAC_RDAT_LIN + (-66*256))	/* entry# (chan#, bit#, etc) out of range - SSDN invalid */
#define	RDAT_LIN_NUM_BYTES_ODD	(ERRFAC_RDAT_LIN + (-67*256))	/* odd #bytes of setting data */
#define	RDAT_LIN_WRITE_BUS_ERROR	(ERRFAC_RDAT_LIN + (-68*256))	/* bus error on write */
#define	RDAT_LIN_SET_NBYTES_TOO_SML	(ERRFAC_RDAT_LIN + (-69*256))	/* #bytes of setting data too small */
#define	RDAT_LIN_SET_NBYTES_TOO_BIG	(ERRFAC_RDAT_LIN + (-70*256))	/* #bytes of setting data too large */
#define	RDAT_LIN_SET_NBYTES_BAD	(ERRFAC_RDAT_LIN + (-71*256))	/* invalid #bytes of setting data */
#define	RDAT_LIN_SET_TYPE_NUM_BAD	(ERRFAC_RDAT_LIN + (-72*256))	/* internal set-type# out of range */
#define	RDAT_LIN_NO_SETS	(ERRFAC_RDAT_LIN + (-73*256))	/* settings not allowed for this listype# - SSDN invalid */
#define	RDAT_LIN_ANA_CTL_TYPE_BAD	(ERRFAC_RDAT_LIN + (-74*256))	/* analog control type# out of range in local database */
#define	RDAT_LIN_BBA_BAD	(ERRFAC_RDAT_LIN + (-75*256))	/* invalid binary byte address in BADDR table */
#define	RDAT_LIN_MPX_CHAN_NUM_BAD	(ERRFAC_RDAT_LIN + (-76*256))	/* invalid mpx channel# (Linac D/A hardware) */
#define	RDAT_LIN_SCALE_FACTOR_BAD	(ERRFAC_RDAT_LIN + (-77*256))	/* f3 scale factor out of range (motor #steps processing)
									   in local database */
#define	RDAT_LIN_NO_CPU	(ERRFAC_RDAT_LIN + (-78*256))	/* no CPROQ table or co-processor# out of range */
#define	RDAT_LIN_HBA_ODD	(ERRFAC_RDAT_LIN + (-79*256))	/* hardware D/A board address odd */
#define	RDAT_LIN_BIT_NUM_BAD	(ERRFAC_RDAT_LIN + (-80*256))	/* bit# index out of range (associated bit control via channel */
#define	RDAT_LIN_BITNUM_TOO_BIG	(ERRFAC_RDAT_LIN + (-81*256))	/* bit# out of range for this station's database */
#define	RDAT_LIN_DCD_TABLE_FULL	(ERRFAC_RDAT_LIN + (-82*256))	/* digital Control Delay table full (for software-formed pulses) */
#define	RDAT_LIN_DIG_CTL_TYPE_BAD	(ERRFAC_RDAT_LIN + (-83*256))	/* digital control type# out of range 1-15 */
#define	RDAT_LIN_CPU_FULL	(ERRFAC_RDAT_LIN + (-84*256))	/* co-processor command queue unavailable */
#define	RDAT_LIN_CPU_INV_QUEUE	(ERRFAC_RDAT_LIN + (-85*256))	/* co-processor invalid queue header */
#define	RDAT_LIN_QUEUE_FULL	(ERRFAC_RDAT_LIN + (-86*256))	/* queue full or unavailable */
#define	RDAT_LIN_MEMFAIL	(ERRFAC_RDAT_LIN + (-87*256))	/* dynamic memory allocation failed */
#define	RDAT_LIN_1553_ERROR	(ERRFAC_RDAT_LIN + (-88*256))	/* error status from 1553 controller */
#define	RDAT_LIN_INV_1553_CMND	(ERRFAC_RDAT_LIN + (-89*256))	/* invalid 1553 command for one word output */
#define	RDAT_LIN_INV_1553_CB_ADDR	(ERRFAC_RDAT_LIN + (-90*256))	/* invalid 1553 Command Block address (must be multiple of 16) */
#define	RDAT_LIN_INV_1553_ORDER_CODE	(ERRFAC_RDAT_LIN + (-91*256))	/* invalid 1553 order code in first word of Command Block */
#define	RDAT_LIN_NO_1553_INTERRUPTS	(ERRFAC_RDAT_LIN + (-92*256))	/* 1553 interrupts not working */
#define	RDAT_LIN_1553_INIT_QUEUE_ERR	(ERRFAC_RDAT_LIN + (-93*256))	/* cannot initialize 1553 command queue */
#define	RDAT_LIN_NO_1553_TABLE_PTRS	(ERRFAC_RDAT_LIN + (-94*256))	/* no Q1553 table of pointers to 1553 controller queues */
#define	RDAT_LIN_MOTOR_TABLE_BAD	(ERRFAC_RDAT_LIN + (-95*256))	/* invalid Motor table */
#define	RDAT_LIN_MOTOR_TABLE_FULL	(ERRFAC_RDAT_LIN + (-96*256))	/* motor table full - too many motors active at once */
#define	RDAT_LIN_INV_9513_TIM_CHAN	(ERRFAC_RDAT_LIN + (-97*256))	/* invalid 9513 timing channel pair */
#define	RDAT_LIN_TIMING_EVENT_NUM_BAD	(ERRFAC_RDAT_LIN + (-98*256))	/* timing event# out of range */
#define	RDAT_LIN_INVALID_DATA	(ERRFAC_RDAT_LIN + (-99*256))	/* invalid data value */
#define	RDAT_LIN_NBYTES_TEXT_BAD	(ERRFAC_RDAT_LIN + (-100*256))	/* invalid #bytes of text in Comment alarm control (D0) */
#define	RDAT_LIN_NO_DSTRM_TABLE	(ERRFAC_RDAT_LIN + (-101*256))	/* no DSTRM table of Data Stream queue pointers */
#define	RDAT_LIN_BAD_DSTRM_QUEUE_TYPE	(ERRFAC_RDAT_LIN + (-102*256))	/* data Stream queue type# out of range */
#define	RDAT_LIN_NO_DSTRM_QUEUE_INIT	(ERRFAC_RDAT_LIN + (-103*256))	/* data Stream queue not initialized */
#define	RDAT_LIN_NO_MMAPS_TABLE	(ERRFAC_RDAT_LIN + (-104*256))	/* no MMAPS table of memory-mapped board templates */
#define	RDAT_LIN_INV_MMAPS_HEADER	(ERRFAC_RDAT_LIN + (-105*256))	/* invalid MMAPS table header */
#define	RDAT_LIN_INV_MMAPS_ENTRY_SIZE	(ERRFAC_RDAT_LIN + (-106*256))	/* invalid MMAPS table entry size */
#define	RDAT_LIN_INV_MMAPS_BOARD_NUM	(ERRFAC_RDAT_LIN + (-107*256))	/* invalid board# for MMAPS table */
#define	RDAT_LIN_INV_MMAPS_DIR_ENTRY	(ERRFAC_RDAT_LIN + (-108*256))	/* invalid directory entry in MMAPS table */
#define	RDAT_LIN_MMAPS_END_OF_TABLE	(ERRFAC_RDAT_LIN + (-109*256))	/* end of MMAPS table reached during template processing */
#define	RDAT_LIN_INV_MMAPS_CMND_TYPE	(ERRFAC_RDAT_LIN + (-110*256))	/* invalid MMAPS command type code */
#define	RDAT_LIN_INV_MMAPS_LOOP	(ERRFAC_RDAT_LIN + (-111*256))	/* invalid MMAPS loop params */
#define	RDAT_LIN_MMAPS_WRITE_ERROR	(ERRFAC_RDAT_LIN + (-112*256))	/* MMAPS memory write verify error */
#define	RDAT_LIN_INV_LISTTYPE_NUM	(ERRFAC_RDAT_LIN + (-114*256))	/* invalid listype#. SSDN hi byte of first word */
#define	RDAT_LIN_INV_LISTTYPE_ID_TYPE	(ERRFAC_RDAT_LIN + (-115*256))	/* invalid ident type# (error in listype table) */
#define	RDAT_LIN_INV_LISTTYPE_ID_LEN	(ERRFAC_RDAT_LIN + (-116*256))	/* invalid ident length for this listype. SSDN bit#3-0 first word */
#define	RDAT_LIN_KEYSWITCH_DISABLED	(ERRFAC_RDAT_LIN + (-117*256))	/* little console settings keyswitch disabled */
#define	RDAT_LIN_EXT_SWITCH_DISABLED	(ERRFAC_RDAT_LIN + (-118*256))	/* little console external settings switch disabled */
#define	RDAT_LIN_D0_DATA_SERVE	(ERRFAC_RDAT_LIN + (-119*256))	/* data Server setting not implemented. (D0) */
#define	RDAT_LIN_INV_LISTTYPE_PROP	(ERRFAC_RDAT_LIN + (-120*256))	/* invalid listype for this ACNET property */
#define	RDAT_LIN_BYTE_ADDR_PAIR_INV	(ERRFAC_RDAT_LIN + (-121*256))	/* invalid byte address pair in BADDR table */
#define	RDAT_LIN_SET_SEQUENCE_INV	(ERRFAC_RDAT_LIN + (-122*256))	/* invalid sequence of program downloading settings */
#define	RDAT_LIN_MEM_VERIFY_ERR	(ERRFAC_RDAT_LIN + (-123*256))	/* memory verify error with listype# 72(longwords) or 77(words) */

/*
**  RDAT_QPM
*/
#define	QPM_OK	0					/* successful completion */
#define	QPM_SUCCESS	0				/* RDAT_QPM success code */
#define	QPM_BAD_LENGTH	(ERRFAC_RDAT_QPM + (-100*256))	/* requested length exceeds maximum allowed */
#define	QPM_BAD_OFFSET	(ERRFAC_RDAT_QPM + (-101*256))	/* requested offset and length exceeds maximum allowed */
#define	QPM_BAD_ENTRY	(ERRFAC_RDAT_QPM + (-102*256))	/* illegal entry number encoded in the SSDN OMSP */
#define	QPM_BAD_LEAD	(ERRFAC_RDAT_QPM + (-103*256))	/* illegal lead number encoded in the SSDN OMSP */
#define	QPM_BAD_QPU	(ERRFAC_RDAT_QPM + (-104*256))	/* illegal QPU number encoded in the SSDN OMSP */
#define	QPM_BAD_QDU	(ERRFAC_RDAT_QPM + (-105*256))	/* illegal QDU number encoded in the SSDN OMSP */
#define	QPM_BAD_VTG_TAP	(ERRFAC_RDAT_QPM + (-106*256))	/* illegal voltage to ground tap number encoded in the SSDN OMSP */
#define	QPM_BAD_ELEMENT	(ERRFAC_RDAT_QPM + (-107*256))	/* illegal element number encoded in the SSDN OMSP */
#define	QPM_BAD_INDEX	(ERRFAC_RDAT_QPM + (-109*256))	/* illegal index number encoded in the SSDN OMSP */
#define	QPM_BAD_MASK	(ERRFAC_RDAT_QPM + (-110*256))	/* illegal mask number encoded in the SSDN OMSP */
#define	QPM_BAD_RLI	(ERRFAC_RDAT_QPM + (-111*256))	/* reboot lockout current is out of range */

/*
**  CAMFE2
*/
#define	CAMFE2_OK	0				/* successful completion */
#define	CAMFE2_SUCCESS	0				/* CAMFE2 success code */
#define	CAMFE2_TOO_MANY_PCS	(ERRFAC_CAMFE2 + (-1*256))	/* too many CDF high voltage PCs */
#define	CAMFE2_TOO_MANY_PC_DEVS	(ERRFAC_CAMFE2 + (-2*256))	/* too many CDF high voltage PC devices */
#define	CAMFE2_HV_PC_ERROR	(ERRFAC_CAMFE2 + (-3*256))	/* CDF high voltage PC returned an error */
#define	CAMFE2_HV_PC_CONVERT_ERROR	(ERRFAC_CAMFE2 + (-4*256))	/* CDF high voltage PC data conversion error */
#define	CAMFE2_HV_PC_NAME_CONFLICT	(ERRFAC_CAMFE2 + (-5*256))	/* CDF high voltage PC device name conflict */
#define	CAMFE2_BLK_XFER_BAD_BUFFER	(ERRFAC_CAMFE2 + (-6*256))	/* block transfer unassigned buffer */
#define	CAMFE2_BLK_XFER_FIFO_FULL	(ERRFAC_CAMFE2 + (-7*256))	/* block transfer FIFO full */
#define	CAMFE2_BLK_XFER_UNEX_DRMQ	(ERRFAC_CAMFE2 + (-8*256))	/* block transfer unexpected DRMQ */
#define	CAMFE2_BLK_XFER_CC_ACTIVE	(ERRFAC_CAMFE2 + (-9*256))	/* block transfer crate controller is active */
#define	CAMFE2_BLK_XFR_FIFO_NOTEMPTY	(ERRFAC_CAMFE2 + (-10*256))	/* block transfer FIFO not empty */
#define	CAMFE2_MXBFIFO_BAD_PARAM	(ERRFAC_CAMFE2 + (-11*256))	/* MXBFIFO bad parameter */
#define	CAMFE2_DEVICE_BEING_RESET	(ERRFAC_CAMFE2 + (-12*256))	/* card is in the middle of a reset operation */
#define	CAMFE2_HV_PC_BUSY	(ERRFAC_CAMFE2 + (-13*256))	/* CDF high voltage PC is permanently busy */
#define	CAMFE2_TRIGGERS_ERROR	(ERRFAC_CAMFE2 + (-14*256))	/* triggers problem */
#define	CAMFE2_NO_FAKE_SETTING	(ERRFAC_CAMFE2 + (-15*256))	/* fake settings are not allowed for this device */
#define	CAMFE2_4208_TABLE_ERROR	(ERRFAC_CAMFE2 + (-16*256))	/* error in FE 4208 card tables */
#define	CAMFE2_HV_PC_COMM_ERROR	(ERRFAC_CAMFE2 + (-17*256))	/* persistent communication problem with a CDF high voltage PC */
#define	CAMFE2_INTERNAL_GAS_ERROR	(ERRFAC_CAMFE2 + (-18*256))	/* FE internal GAS routine error */
#define	CAMFE2_CAEN_ERROR	(ERRFAC_CAMFE2 + (-19*256))	/* CAEN subsystem error */
#define	CAMFE2_GAS_STACK_OVERFLOW	(ERRFAC_CAMFE2 + (-20*256))	/* GAS task stack overflow */
#define	CAMFE2_SWIC_SEM_SCANNER_ERR	(ERRFAC_CAMFE2 + (-21*256))	/* SWIC/SEM scanner internal error */
#define	CAMFE2_FRIG_NODE_DOWN	(ERRFAC_CAMFE2 + (-22*256))	/* frig node is down */
#define	CAMFE2_SCIOQ_QUEUE_ERROR	(ERRFAC_CAMFE2 + (-23*256))	/* SCIOQ input queue error */
#define	CAMFE2_FRIG_ZERO_LEN_REPLY	(ERRFAC_CAMFE2 + (-24*256))	/* frig zero length reply */

/*
**  TECAR
*/
/*
   These are derived from the clnt_stat enumeration in
   multinet_root:[multinet.include.rpc]clnt.h
   Comments show the values of these enumerations
*/
#define	ONC_RPC_SUCCESS			0
#define	ONC_RPC_CANTENCODEARGS		1
#define	ONC_RPC_CANTDECODERES		2
#define	ONC_RPC_CANTSEND		3
#define	ONC_RPC_CANTRECV		4
#define	ONC_RPC_TIMEDOUT		5
#define	ONC_RPC_VERSMISMATCH		6
#define	ONC_RPC_AUTHERROR		7
#define	ONC_RPC_PROGUNAVAIL		8
#define	ONC_RPC_PROGVERSMISMATCH	9
#define	ONC_RPC_PROCUNAVAIL		10
#define	ONC_RPC_CANTDECODEARGS		11
#define	ONC_RPC_SYSTEMERROR		12
#define	ONC_RPC_UNKNOWNHOST		13
#define	ONC_RPC_PMAPFAILURE		14
#define	ONC_RPC_PROGNOTREGISTERED	15
#define	ONC_RPC_FAILED			16
#define	ONC_RPC_UNKNOWNPROTO		17

#define	TECAR_OK		0			/* successful completion */
#define	TECAR_SUCCESS		0			/* TECAR success code */
#define	TECAR_CANTENCODEARGS	(ERRFAC_TECAR + (-ONC_RPC_CANTENCODEARGS*256))
#define	TECAR_CANTDECODERES	(ERRFAC_TECAR + (-ONC_RPC_CANTDECODERES*256))
#define	TECAR_CANTSEND		(ERRFAC_TECAR + (-ONC_RPC_CANTSEND*256))
#define	TECAR_CANTRECV		(ERRFAC_TECAR + (-ONC_RPC_CANTRECV*256))
#define	TECAR_TIMEDOUT		(ERRFAC_TECAR + (-ONC_RPC_TIMEDOUT*256))
#define	TECAR_VERSMISMATCH	(ERRFAC_TECAR + (-ONC_RPC_VERSMISMATCH*256))
#define	TECAR_AUTHERROR		(ERRFAC_TECAR + (-ONC_RPC_AUTHERROR*256))
#define	TECAR_PROGUNAVAIL	(ERRFAC_TECAR + (-ONC_RPC_PROGUNAVAIL*256))
#define	TECAR_PROGVERSMISMATCH	(ERRFAC_TECAR + (-ONC_RPC_PROGVERSMISMATCH*256))
#define	TECAR_PROCUNAVAIL	(ERRFAC_TECAR + (-ONC_RPC_PROCUNAVAIL*256))
#define	TECAR_CANTDECODEARGS	(ERRFAC_TECAR + (-ONC_RPC_CANTDECODEARGS*256))
#define	TECAR_SYSTEMERROR	(ERRFAC_TECAR + (-ONC_RPC_SYSTEMERROR*256))
#define	TECAR_UNKNOWNHOST	(ERRFAC_TECAR + (-ONC_RPC_UNKNOWNHOST*256))
#define	TECAR_PMAPFAILURE	(ERRFAC_TECAR + (-ONC_RPC_PMAPFAILURE*256))
#define	TECAR_PROGNOTREGISTERED (ERRFAC_TECAR + (-ONC_RPC_PROGNOTREGISTERED*256))
#define	TECAR_FAILED		(ERRFAC_TECAR + (-ONC_RPC_FAILED*256))
#define	TECAR_UNKNOWNPROTO	(ERRFAC_TECAR + (-ONC_RPC_UNKNOWNPROTO*256))
#define	TECAR_BADPOINTER	(ERRFAC_TECAR + (-24*256))
#define	TECAR_BADNAME		(ERRFAC_TECAR + (-25*256))
#define	TECAR_SNAP_FAIL		(ERRFAC_TECAR + (-26*256))	/* TECAR snapshot failed */
#define	TECAR_BAD_SECTOR	(ERRFAC_TECAR + (-27*256))	/* bad sector for QBS test */

/*
**  RDAT BPM
*/
#define	RDAT_BPM_OK		0				/* successful completion */
#define	RDAT_BPM_SUCCESS	0				/* RDAT_BPM success code */
#define	RDAT_BPM_PEND		(ERRFAC_RDAT_BPM + (1*256))	/* measurement pending */
#define	RDAT_BPM_BAD_CLASS_NUM	(ERRFAC_RDAT_BPM + (-1*256))	/* unsupported class number */
#define	RDAT_BPM_OBJECTS_FULL	(ERRFAC_RDAT_BPM + (-2*256))	/* can't add any more objects, objarray filled */
#define	RDAT_BPM_INV_MSG_TYPE	(ERRFAC_RDAT_BPM + (-3*256))	/* unsupported message type */
#define	RDAT_BPM_IVS_TOO_LONG	(ERRFAC_RDAT_BPM + (-4*256))	/* instance variables too long */
#define	RDAT_BPM_TOO_MANY_SUPRCLASSES	(ERRFAC_RDAT_BPM + (-5*256))	/* too many superclasses */
#define	RDAT_BPM_DUPLICATE_CLASS	(ERRFAC_RDAT_BPM + (-6*256))	/* duplicated class definition */
#define	RDAT_BPM_DUPLICATE_OID	(ERRFAC_RDAT_BPM + (-7*256))	/* duplicated OID definition */
#define	RDAT_BPM_NO_SUCH_SUPRCLASS	(ERRFAC_RDAT_BPM + (-8*256))	/* superclass for this device is not defined */
#define	RDAT_BPM_NO_SUCH_OID_CLASS	(ERRFAC_RDAT_BPM + (-9*256))	/* class for this OID is not defined */
#define	RDAT_BPM_NO_SUCH_OID	(ERRFAC_RDAT_BPM + (-10*256))	/* this OID is not defined */
#define	RDAT_BPM_NO_SUCH_SUPERMETHOD	(ERRFAC_RDAT_BPM + (-11*256))	/* supermethod is not defined */
#define	RDAT_BPM_CLASS_OUTOMEM	(ERRFAC_RDAT_BPM + (-12*256))	/* not enough memory for class */
#define	RDAT_BPM_INSTANCE_OUTOMEM	(ERRFAC_RDAT_BPM + (-13*256))	/* not enough memory for this instance of class */
#define	RDAT_BPM_EMPTY_NAME	(ERRFAC_RDAT_BPM + (-14*256))	/* empty name */
#define	RDAT_BPM_MSG_OVERFLOW	(ERRFAC_RDAT_BPM + (-15*256))	/* class storage is not enough for this message type */
#define	RDAT_BPM_INV_OID_MSG_TYPE	(ERRFAC_RDAT_BPM + (-16*256))	/* message type is not supported by this OID */
#define	RDAT_BPM_IVS_TOO_SHORT	(ERRFAC_RDAT_BPM + (-17*256))	/* instance variables too short */
#define	RDAT_BPM_COMM_ERROR	(ERRFAC_RDAT_BPM + (-18*256))	/* ACNET error */
#define	RDAT_BPM_INTERNAL_MEMFAIL	(ERRFAC_RDAT_BPM + (-19*256))	/* inner memory problems */
#define	RDAT_BPM_INV_LIST_REQUEST	(ERRFAC_RDAT_BPM + (-20*256))	/* bad list request parameters */
#define	RDAT_BPM_TRIGGER_DEF_ERROR	(ERRFAC_RDAT_BPM + (-21*256))	/* error defining trigger */
#define	RDAT_BPM_BAD_FTD	(ERRFAC_RDAT_BPM + (-22*256))	/* bad Frequency Time Descriptor */
#define	RDAT_BPM_BAD_SET_PARAMS	(ERRFAC_RDAT_BPM + (-23*256))	/* bad setting parameters */
#define	RDAT_BPM_BAD_LAN	(ERRFAC_RDAT_BPM + (-24*256))	/* bad local area network in database entry */
#define	RDAT_BPM_BAD_NODE	(ERRFAC_RDAT_BPM + (-25*256))	/* bad node defined in database entry */
#define	RDAT_BPM_BAD_FORMAT	(ERRFAC_RDAT_BPM + (-26*256))	/* bad format */
#define	RDAT_BPM_BAD_PROPERTY	(ERRFAC_RDAT_BPM + (-27*256))	/* bad list PI */
#define	RDAT_BPM_BAD_OFFSET	(ERRFAC_RDAT_BPM + (-28*256))	/* the database offset is either negative or larger than the data */
#define	RDAT_BPM_BAD_LENGTH	(ERRFAC_RDAT_BPM + (-29*256))	/* database length doesn't match the length of the data */
#define	RDAT_BPM_SETTMO		(ERRFAC_RDAT_BPM + (-30*256))	/* setting timeout */
#define	RDAT_BPM_BAD_DB_ENTRY	(ERRFAC_RDAT_BPM + (-31*256))	/* the data array doesn't match the database entry */
#define	RDAT_BPM_BAD_CYCLE	(ERRFAC_RDAT_BPM + (-32*256))	/* the data for this machine cycle is not available */
#define	RDAT_BPM_BAD_CHANNEL	(ERRFAC_RDAT_BPM + (-33*256))	/* this input doesn't exist */
#define	RDAT_BPM_BAD_OFFSET_LENGTH	(ERRFAC_RDAT_BPM + (-34*256))	/* bad length plus offset */
#define	RDAT_BPM_NO_SUCH_POSITION	(ERRFAC_RDAT_BPM + (-35*256))	/* this position channel doesn't exist in this BPM */
#define	RDAT_BPM_NO_SUCH_INTENSITY	(ERRFAC_RDAT_BPM + (-36*256))	/* this intensity channel doesn't exist in this BPM */
#define	RDAT_BPM_BAD_DEVICE_TYPE	(ERRFAC_RDAT_BPM + (-37*256))	/* wrong device type */
#define	RDAT_BPM_BAD_BASIC_CONTROL	(ERRFAC_RDAT_BPM + (-38*256))	/* wrong basic control word */
#define	RDAT_BPM_STOP_DATA	(ERRFAC_RDAT_BPM + (-39*256))	/* stop data taking - data taking must be halted when */
								/* reading this data */
#define	RDAT_BPM_BAD_ELEMENT	(ERRFAC_RDAT_BPM + (-40*256))	/* the data structure doesn't match the array size of the request */
#define	RDAT_BPM_NO_ALARM	(ERRFAC_RDAT_BPM + (-41*256))	/* alarm is not defined yet */
#define	RDAT_BPM_CANNOT_ALARM	(ERRFAC_RDAT_BPM + (-42*256))	/* alarm property is not supported */
#define	RDAT_BPM_BAD_ARRAY_INDEX	(ERRFAC_RDAT_BPM + (-43*256))	/* the combination of the offset and element has */
									/* indexed out of the data array size */
#define	RDAT_BPM_NO_DATA	(ERRFAC_RDAT_BPM + (-44*256))	/* there was no new data this cycle */
#define	RDAT_BPM_TSG_STATUS_ERROR	(ERRFAC_RDAT_BPM + (-45*256))	/* timing system status error */
#define	RDAT_BPM_NO_MDAT_INT	(ERRFAC_RDAT_BPM + (-46*256))	/* missing MDAT interrupt */
#define	RDAT_BPM_TIMEOUT	(ERRFAC_RDAT_BPM + (-47*256))	/* measurement timeout */
#define	RDAT_BPM_CO_TIMEOUT	(ERRFAC_RDAT_BPM + (-48*256))	/* cosed orbit synchronization trigger not received */
#define	RDAT_BPM_INVALID_MODE	(ERRFAC_RDAT_BPM + (-49*256))	/* invalid measurement mode requested */
#define	RDAT_BPM_NO_ADC		(ERRFAC_RDAT_BPM + (-50*256))	/* ADC initialization failed */
#define	RDAT_BPM_NO_TSG		(ERRFAC_RDAT_BPM + (-51*256))	/* timing system initialization failed */
#define	RDAT_BPM_NO_CLOCK	(ERRFAC_RDAT_BPM + (-52*256))	/* timestamp device initialization failed */
#define	RDAT_BPM_NO_MESSAGE_QUEUE	(ERRFAC_RDAT_BPM + (-53*256))	/* unable to create VxWorks message queue */
#define	RDAT_BPM_NO_ISR		(ERRFAC_RDAT_BPM + (-54*256))	/* unable to create VxWorks interrupt service routine */
#define	RDAT_BPM_NO_REBOOT_HANDLER	(ERRFAC_RDAT_BPM + (-55*256))	/* unable to create VxWorks reboot handler */
#define	RDAT_BPM_NO_ARMED_EVT_HNDLR	(ERRFAC_RDAT_BPM + (-56*256))	/* unable to spawn armed event handler task */
#define	RDAT_BPM_NO_MEASURE_HNDLR	(ERRFAC_RDAT_BPM + (-57*256))	/* unable to spawn measurement handler task */
#define	RDAT_BPM_BAD_ENG_PARAM	(ERRFAC_RDAT_BPM + (-58*256))	/* bad vaue for engineering parameter found during initialization */
#define	RDAT_BPM_NO_BKGD_MEASURE	(ERRFAC_RDAT_BPM + (-59*256))	/* unable to create background measurment control task */
#define	RDAT_BPM_NO_REP_FLASH	(ERRFAC_RDAT_BPM + (-60*256))	/* unable to create repetitive fash control task */
#define	RDAT_BPM_TSG_ERROR	(ERRFAC_RDAT_BPM + (-61*256))	/* timing system error */
#define	RDAT_BPM_ADC_ERROR	(ERRFAC_RDAT_BPM + (-62*256))	/* ADC error */
#define	RDAT_BPM_ABORT		(ERRFAC_RDAT_BPM + (-63*256))	/* measurement aborted */
#define	RDAT_BPM_GENERIC_ERROR	(ERRFAC_RDAT_BPM + (-64*256))	/* generic error */
#define	RDAT_BPM_BAD_ASPEC_ENABLE	(ERRFAC_RDAT_BPM + (-96*256))	/* bad acquisition spec enable value */
#define	RDAT_BPM_BAD_ASPEC_MEAS	(ERRFAC_RDAT_BPM + (-97*256))	/* bad acquisition spec measurement value */
#define	RDAT_BPM_BAD_ASPEC_BEAM_MODE	(ERRFAC_RDAT_BPM + (-98*256))	/* bad acquisition spec beam mode value */
#define	RDAT_BPM_BAD_ASPEC_BEAM_TYPE	(ERRFAC_RDAT_BPM + (-99*256))	/* bad acquisition spec beam type value */
#define	RDAT_BPM_BAD_ASPEC_MEAS_TYPE	(ERRFAC_RDAT_BPM + (-100*256))	/* bad acquisition spec measurement type value */
#define	RDAT_BPM_BAD_ASPEC_ARM_EVT	(ERRFAC_RDAT_BPM + (-101*256))	/* bad acquisition spec arm event value */
#define	RDAT_BPM_BAD_ASPEC_TRIG_EVT	(ERRFAC_RDAT_BPM + (-102*256))	/* bad acquisition spec trigger event value */
#define	RDAT_BPM_BAD_ASPEC_PTRIG_ENAB	(ERRFAC_RDAT_BPM + (-103*256))	/* bad acquisition spec pretrigger enable value */
#define	RDAT_BPM_BAD_ASPEC_TRIG_FREQ	(ERRFAC_RDAT_BPM + (-104*256))	/* bad acquisition spec trigger frequency value */
#define	RDAT_BPM_BAD_ASPEC_TRIG_DLY	(ERRFAC_RDAT_BPM + (-105*256))	/* bad acquisition spec trigger delay value */
#define	RDAT_BPM_BAD_ASPEC_GLBL_DLY	(ERRFAC_RDAT_BPM + (-106*256))	/* bad acquisition spec global delay value */
#define	RDAT_BPM_BAD_ASPEC_INT_THRSH	(ERRFAC_RDAT_BPM + (-107*256))	/* bad acquisition spec intensity threshold value */
#define	RDAT_BPM_BAD_ASPEC_TIMEOUT	(ERRFAC_RDAT_BPM + (-108*256))	/* bad acquisition spec timeout value */
#define	RDAT_BPM_BAD_RSPEC_EVT_INDEX	(ERRFAC_RDAT_BPM + (-109*256))	/* bad readout spec event index value */
#define	RDAT_BPM_BAD_RSPEC_DATA_TYPE	(ERRFAC_RDAT_BPM + (-110*256))	/* bad readout spec trigger event value */
#define	RDAT_BPM_BAD_RSPEC_BEG_TURN	(ERRFAC_RDAT_BPM + (-111*256))	/* bad readout spec beginning turn value */
#define	RDAT_BPM_BAD_RSPEC_NUM_TURN	(ERRFAC_RDAT_BPM + (-112*256))	/* bad readout spec number of turns value */
#define	RDAT_BPM_BAD_RSPEC_LAST_TURN	(ERRFAC_RDAT_BPM + (-113*256))	/* bad readout spec beginning turn plus number of turns value */
#define	RDAT_BPM_BAD_RSPEC_CHANNEL	(ERRFAC_RDAT_BPM + (-114*256))	/* bad readout spec channel value */
#define	RDAT_BPM_BAD_DSPEC_CHANNEL_B	(ERRFAC_RDAT_BPM + (-115*256))	/* bad diagnostic spec channel B value */
#define	RDAT_BPM_BAD_DSPEC_CHANNEL_A	(ERRFAC_RDAT_BPM + (-116*256))	/* bad diagnostic spec channel A value */
#define	RDAT_BPM_BAD_DSPEC_ENABLE	(ERRFAC_RDAT_BPM + (-117*256))	/* bad diagnostic spec enable value */
#define	RDAT_BPM_BAD_DSPEC_RESERVED	(ERRFAC_RDAT_BPM + (-118*256))	/* bad diagnostic spec reserved (must be zero) value */
#define	RDAT_BPM_BAD_CSPEC_AMPLITUDE	(ERRFAC_RDAT_BPM + (-119*256))	/* bad calibration spec amplitude value */
#define	RDAT_BPM_BAD_CSPEC_WAVEFORM	(ERRFAC_RDAT_BPM + (-120*256))	/* bad calibration spec waveform value */
#define	RDAT_BPM_BAD_CSPEC_BALANCE	(ERRFAC_RDAT_BPM + (-121*256))	/* bad calibration spec balance value */
#define	RDAT_BPM_BAD_CSPEC_RESERVED	(ERRFAC_RDAT_BPM + (-122*256))	/* bad calibration spec reserved (must be zero) value */

/*
**  OAF
*/
#define	OAF_OK		0				/* successful completion */
#define	OAF_SUCCESS	0				/* OAF success code */
#define	OAF_PEND	(ERRFAC_OAF + (1*256))		/* request pending */
#define	OAF_MEMFAIL	(ERRFAC_OAF + (-1*256))		/* memory allocation failure */
#define	OAF_NOSETUP	(ERRFAC_OAF + (-2*256))		/* the required setup has not been performed */
#define	OAF_INVARG	(ERRFAC_OAF + (-3*256))		/* an invalid argument has been passed to a function */
#define	OAF_NOTOPN	(ERRFAC_OAF + (-4*256))		/* a required file is not open */
#define	OAF_NOT_OPEN	(ERRFAC_OAF + (-4*256))		/* a required file is not open */
#define	OAF_NOTYET	(ERRFAC_OAF + (-5*256))		/* requested feature is not yet supported */
#define	OAF_NOTASK	(ERRFAC_OAF + (-6*256))		/* client contributor is not connected to the Open Access Front End */
#define	OAF_ZENT	(ERRFAC_OAF + (-7*256))		/* zero SDPK or request packets were requests */
#define	OAF_TRUNC	(ERRFAC_OAF + (-8*256))		/* incoming request was too long and truncated */
#define	OAF_RLOV	(ERRFAC_OAF + (-9*256))		/* incoming request was too short */
#define	OAF_RPOV	(ERRFAC_OAF + (-10*256))	/* reply was too short */
#define	OAF_SSDN	(ERRFAC_OAF + (-11*256))	/* illegal SSDN */
#define	OAF_CLTRUNC	(ERRFAC_OAF + (-12*256))	/* the client reply was truncated */
#define	OAF_CLLENGTH	(ERRFAC_OAF + (-13*256))	/* the client reply's length is bad */
#define	OAF_MULR	(ERRFAC_OAF + (-14*256))	/* requesting multiple replies on sets is not permitted */
#define	OAF_LOGOUT	(ERRFAC_OAF + (-15*256))	/* the client was not responding to requests and has been logged out */
#define	OAF_INVNODE	(ERRFAC_OAF + (-16*256))	/* an operational client is running on the wrong ACNET node */

/*
**  OAFC
*/
#define	OAFC_OK		0				/* successful completion */
#define	OAFC_SUCCESS	0				/* OAFC success code */
#define	OAFC_PEND	(ERRFAC_OAFC + (1*256))		/* request pending */
#define	OAFC_MEMFAIL	(ERRFAC_OAFC + (-1*256))	/* memory allocation failure */
#define	OAFC_NOSETUP	(ERRFAC_OAFC + (-2*256))	/* the required setup has not been performed */
#define	OAFC_INVARG	(ERRFAC_OAFC + (-3*256))	/* an invalid argument has been passed to a function */
#define	OAFC_NOTOPN	(ERRFAC_OAFC + (-4*256))	/* a required file is not open */
#define	OAFC_NOT_OPEN	(ERRFAC_OAFC + (-4*256))	/* a required file is not open */
#define	OAFC_STALE	(ERRFAC_OAFC + (-5*256))	/* stale data was returned on a data acquistion access */
#define	OAFC_NOATT	(ERRFAC_OAFC + (-6*256))	/* no such attribute exists for request */
#define	OAFC_NO_ATTRIBUTE	(ERRFAC_OAFC + (-6*256))	/* no such attribute exists for request */
#define	OAFC_NOSCALE	(ERRFAC_OAFC + (-7*256))	/* no scaling information was found for this request */
#define	OAFC_BADSCALE	(ERRFAC_OAFC + (-8*256))	/* the PDB information for this device is bad */
#define	OAFC_INVLEN	(ERRFAC_OAFC + (-9*256))	/* invalid raw data length */
#define	OAFC_SETDIS	(ERRFAC_OAFC + (-10*256))	/* setting attempted with OAC settings disabled */
#define	OAFC_NOSUCH	(ERRFAC_OAFC + (-11*256))	/* no such device */
#define	OAFC_UNAVAIL	(ERRFAC_OAFC + (-12*256))	/* desired service is unavailable */
#define	OAFC_INVDEV	(ERRFAC_OAFC + (-13*256))	/* invalid device for this operation */
#define	OAFC_SCALEFAIL	(ERRFAC_OAFC + (-14*256))	/* scaling failed on this device */
#define	OAFC_BUGCHK	(ERRFAC_OAFC + (-15*256))	/* program bug-check */
#define	OAFC_CORRUPT	(ERRFAC_OAFC + (-16*256))	/* data is corrupted or inconsistent */
#define	OAFC_INVOFF	(ERRFAC_OAFC + (-17*256))	/* invalid raw data offset */
#define	OAFC_NOTYET	(ERRFAC_OAFC + (-18*256))	/* requested feature is not yet supported */
#define	OAFC_RANGE	(ERRFAC_OAFC + (-19*256))	/* requested value out of range */
#define	OAFC_LIBERR	(ERRFAC_OAFC + (-20*256))	/* error resulted from a library calculation */
#define	OAFC_INPERR	(ERRFAC_OAFC + (-21*256))	/* error in calculation due to input device error */
#define	OAFC_GENERR	(ERRFAC_OAFC + (-22*256))	/* generic error - not mapped to a more specific error code */
#define	OAFC_GENERIC_ERROR	(ERRFAC_OAFC + (-22*256))	/* generic error - not mapped to a more specific error code */
#define	OAFC_INVSET	(ERRFAC_OAFC + (-23*256))	/* invalid setting attempted */
#define	OAFC_TOO_FEW_VALUES	(ERRFAC_OAFC + (-24*256))	/* too few values are available to make a calculation */
#define	OAFC_MATH_EXCEPTION	(ERRFAC_OAFC + (-25*256))	/* math exception occurred */
#define	OAFC_UNSUPPORTED	(ERRFAC_OAFC + (-26*256))	/* unsupported device */
#define	OAFC_BADSERVER	(ERRFAC_OAFC + (-27*256))	/* IP address of the web service server is not reachable */
#define	OAFC_BADSERIALNO	(ERRFAC_OAFC + (-28*256))	/* phidget USB card with this serial number is not attached */
#define	OAFC_INVPROP	(ERRFAC_OAFC + (-42*256))	/* property is invalid in this context */

/*
**  OAFP
*/
#define	OAFP_OK		0				/* successful completion */
#define	OAFP_SUCCESS	0				/* OAFP success code */
#define	OAFP_PEND	(ERRFAC_OAFP + (1*256))		/* request pending */
#define	OAFP_SNAP	(ERRFAC_OAFP + (-1*256))	/* the SNAP OAC is not connected to its server */
#define	OAFP_MCRVCR	(ERRFAC_OAFP + (-2*256))	/* the MCRVCR OAC is not connected to its server */
#define	OAFP_MIRROR	(ERRFAC_OAFP + (-3*256))	/* the MIRROR model Open Access Client is not connected to its server */
#define	OAFP_VSAOSC	(ERRFAC_OAFP + (-4*256))	/* the VSAOSC device front-end is not connected to its server */
#define	OAFP_SRFILE	(ERRFAC_OAFP + (-5*256))	/* the SRFILE model Open Access Client is not connected to its server */
#define	OAFP_NETPNG	(ERRFAC_OAFP + (-6*256))	/* the NETPNG OAC is not connected to its server */
#define	OAFP_RRORBL	(ERRFAC_OAFP + (-7*256))	/* the RRORBL OAC is not connected to its server */
#define	OAFP_BUNNY5	(ERRFAC_OAFP + (-7*256))	/* the BUNNY5 OAC is not connected to its server */
#define	OAFP_TCHROM	(ERRFAC_OAFP + (-8*256))	/* the Tevatron CHROMaticity front-end is not connected */
#define	OAFP_BUNNY6	(ERRFAC_OAFP + (-8*256))	/* the BUNNY6 OAC is not connected to its server */
#define	OAFP_DSTATS	(ERRFAC_OAFP + (-9*256))	/* the DSTATS OAC is not connected to its server */
#define	OAFP_CRYOPC	(ERRFAC_OAFP + (-9*256))	/* the CRYOPC OAC is not connected to its server */
#define	OAFP_JCACHE	(ERRFAC_OAFP + (-10*256))	/* the CACHE Open Access Client is not connected to its server */
#define	OAFP_CACHE	(ERRFAC_OAFP + (-10*256))	/* the CACHE Open Access Client is not connected to its server */
#define	OAFP_GLFRIG	(ERRFAC_OAFP + (-11*256))	/* the Global Frig Front-end is not connected to its server */
#define	OAFP_ACLDEV	(ERRFAC_OAFP + (-11*256))	/* the ACLDEV OAC is not connected to its server */
#define	OAFP_ECCOLL	(ERRFAC_OAFP + (-12*256))	/* the ECCOLL OAC is not connected to its server */
#define	OAFP_MCOPC	(ERRFAC_OAFP + (-12*256))	/* the MCOPC OAC is not connected to its server */
#define	OAFP_ARF1RF	(ERRFAC_OAFP + (-13*256))	/* the ARF1RF OAC is not connected to its server */
#define	OAFP_BOOLOS	(ERRFAC_OAFP + (-14*256))	/* the BOOLOS front-end is not connected to its server */
#define	OAFP_NUM118	(ERRFAC_OAFP + (-15*256))	/* the NUM118 OAC is not connected to its server */
#define	OAFP_SDASRV	(ERRFAC_OAFP + (-16*256))	/* the SDA server is not connected to its server */
#define	OAFP_BOOOAC	(ERRFAC_OAFP + (-17*256))	/* the BOOOAC OAC is not connected to its server */
#define	OAFP_XMLRPC	(ERRFAC_OAFP + (-18*256))	/* the XML-RPC OAC is not connected to its server */
#define	OAFP_HEARTB	(ERRFAC_OAFP + (-19*256))	/* the heartbeat OAC is not connected to its server */
#define	OAFP_TEVCAL	(ERRFAC_OAFP + (-20*256))	/* the TEVatron CALculation OAC is not connected to its server */
#define	OAFP_OPCOAC	(ERRFAC_OAFP + (-21*256))	/* the OPCOAC OAC is not connected to its server */
#define	OAFP_LJOAC	(ERRFAC_OAFP + (-22*256))	/* the Lumberjack OAM is not connected to its server */
#define	OAFP_DPMOAC	(ERRFAC_OAFP + (-23*256))	/* the Datapool OAC is not connected to its server */
#define	OAFP_CHLOAC	(ERRFAC_OAFP + (-24*256))	/* the CHL OAC is not connected to its server */
#define	OAFP_DBSETS	(ERRFAC_OAFP + (-25*256))	/* the Database Settings front-end is not connected to its server */
#define	OAFP_LVTEST	(ERRFAC_OAFP + (-26*256))	/* the LVTEST OAC is not connected to its server */
#define	OAFP_BRFOAC	(ERRFAC_OAFP + (-27*256))	/* the BRFOAC OAC is not connected to its server */
#define	OAFP_TESTJY	(ERRFAC_OAFP + (-28*256))	/* the TESTJY OAC is not connected to its server */
#define	OAFP_MACSET	(ERRFAC_OAFP + (-29*256))	/* the MACSET OAC is not connected to its server */
#define	OAFP_MJRROR	(ERRFAC_OAFP + (-30*256))	/* the MJRROR OAC is not connected to its server */
#define	OAFP_MONITR	(ERRFAC_OAFP + (-31*256))	/* the MONITR OAC is not connected to its server */
#define	OAFP_TEVCOL	(ERRFAC_OAFP + (-32*256))	/* the TEV COLlimator OAC is not connected to its server */
#define	OAFP_LRHVAC	(ERRFAC_OAFP + (-32*256))	/* the LRHVAC OAC is not connected to its server */
#define	OAFP_CBSHOT	(ERRFAC_OAFP + (-33*256))	/* the CBSHOT (Colliding Beams Sequenced Data Acquisition) OAC is not connected to its server */
#define	OAFP_RACKMN	(ERRFAC_OAFP + (-33*256))	/* the RACKMN OAC is not connected to its server */
#define	OAFP_JPLOT	(ERRFAC_OAFP + (-34*256))	/* the JPLOT OAC is not connected to its server */
#define	OAFP_EXPOPC	(ERRFAC_OAFP + (-34*256))	/* the EXPOPC OAC is not connected to its server */
#define	OAFP_ESTORE	(ERRFAC_OAFP + (-35*256))	/* the ESTORE (E835 store) OAC is not connected to its server */
#define	OAFP_PHIDGT	(ERRFAC_OAFP + (-35*256))	/* the PHIDGT OAC is not connected to its server */
#define	OAFP_NOVAPS	(ERRFAC_OAFP + (-35*256))	/* the NOVAPS OAC is not connected to its server */
#define	OAFP_REMOTE	(ERRFAC_OAFP + (-36*256))	/* the REMOTE OAC is not connected to its server */
#define	OAFP_PBSHOT	(ERRFAC_OAFP + (-37*256))	/* the PBSHOT OAC is not connected to its server */
#define	OAFP_MIEFFS	(ERRFAC_OAFP + (-37*256))	/* the MIEFFS OAC is not connected to its server */
#define	OAFP_NUM121	(ERRFAC_OAFP + (-38*256))	/* the NUM121 OAC is not connected to its server */
#define	OAFP_EVENTS	(ERRFAC_OAFP + (-39*256))	/* the EVENTS OAC is not connected to its server */
#define	OAFP_LJALRM	(ERRFAC_OAFP + (-40*256))	/* the LJALRM OAC is not connected to its server */
#define	OAFP_CRYTST	(ERRFAC_OAFP + (-41*256))	/* the CRYTST OAC is not connected to its server */
#define	OAFP_MTAEMT	(ERRFAC_OAFP + (-41*256))	/* the MTAEMT OAC is not connected to its server */
#define	OAFP_MIBLMS	(ERRFAC_OAFP + (-41*256))	/* the MIBLMS OAC is not connected to its server */
#define	OAFP_EVENTH	(ERRFAC_OAFP + (-42*256))	/* the EVENTH OAC is not connected to its server */
#define	OAFP_BLMLOG	(ERRFAC_OAFP + (-43*256))	/* the BLMLOG OAC is not connected to its server */
#define	OAFP_DECAYS	(ERRFAC_OAFP + (-44*256))	/* the DECAYS OAC is not connected to its server */
#define	OAFP_MIWIRS	(ERRFAC_OAFP + (-44*256))	/* the MIWIRS OAC is not connected to its server */
#define	OAFP_SRSAVE	(ERRFAC_OAFP + (-45*256))	/* the SRSAVE OAC is not connected to its server */
#define	OAFP_BIGSAV	(ERRFAC_OAFP + (-46*256))	/* the BIGSAV OAC is not connected to its server */
#define	OAFP_ERRORZ	(ERRFAC_OAFP + (-47*256))	/* the ERRORZ OAC is not connected to its server */
#define	OAFP_FRCONS	(ERRFAC_OAFP + (-48*256))	/* the FRCONS OAC is not connected to its server */
#define	OAFP_ERRORS	(ERRFAC_OAFP + (-49*256))	/* the ERRORS OAC is not connected to its server */
#define	OAFP_PWRMTR	(ERRFAC_OAFP + (-49*256))	/* the PWRMTR OAC is not connected to its server */
#define	OAFP_NMLOPC	(ERRFAC_OAFP + (-50*256))	/* the NMLOPC OAC is not connected to its server */
#define	OAFP_EVENTN	(ERRFAC_OAFP + (-51*256))	/* the EVENTN OAC is not connected to its server */
#define	OAFP_TRREC	(ERRFAC_OAFP + (-52*256))	/* the TRREC OAC is not connected to its server */
#define	OAFP_SCHSAV	(ERRFAC_OAFP + (-53*256))	/* the SCHSAV OAC is not connected to its server */
#define	OAFP_DLLRF	(ERRFAC_OAFP + (-54*256))	/* the DLLRF OAC is not connected to its server */
#define	OAFP_NDOSPS	(ERRFAC_OAFP + (-54*256))	/* the NDOSPS OAC is not connected to its server */
#define	OAFP_CDFMON	(ERRFAC_OAFP + (-55*256))	/* the CDFMON OAC is not connected to its server */
#define	OAFP_BCCDB	(ERRFAC_OAFP + (-55*256))	/* the BCCDB OAC is not connected to its server */
#define	OAFP_DIGTUN	(ERRFAC_OAFP + (-56*256))	/* the DIGTUN OAC is not connected to its server */
#define	OAFP_RFSTAT	(ERRFAC_OAFP + (-56*256))	/* the RFSTAT OAC is not connected to its server */
#define	OAFP_MACALC	(ERRFAC_OAFP + (-57*256))	/* the MACALC OAC is not connected to its server */
#define	OAFP_TIMEAV	(ERRFAC_OAFP + (-58*256))	/* the TIMEAV OAC is not connected to its server */
#define	OAFP_TEVMTN	(ERRFAC_OAFP + (-59*256))	/* the TEVMTN OAC is not connected to its server */
#define	OAFP_MTNRNG	(ERRFAC_OAFP + (-59*256))	/* the MTNRNG OAC is not connected to its server */
#define	OAFP_CONSAR	(ERRFAC_OAFP + (-60*256))	/* the CONSAR OAC is not connected to its server */
#define	OAFP_AUTUNE	(ERRFAC_OAFP + (-61*256))	/* the AUTUNE OAC is not connected to its server */
#define	OAFP_VACAVE	(ERRFAC_OAFP + (-62*256))	/* the VACAVE OAC is not connected to its server */
#define	OAFP_NETMON	(ERRFAC_OAFP + (-63*256))	/* the NETMON OAC is not connected to its server */
#define	OAFP_HALORT	(ERRFAC_OAFP + (-64*256))	/* the HALORT OAC is not connected to its server */
#define	OAFP_BATCH	(ERRFAC_OAFP + (-65*256))	/* the BATCH OAC is not connected to its server */
#define	OAFP_VLOGGR	(ERRFAC_OAFP + (-66*256))	/* the VLOGGR OAC is not connected to its server */
#define	OAFP_ECBCAL	(ERRFAC_OAFP + (-67*256))	/* the ECBCAL OAC is not connected to its server */
#define	OAFP_FSMDEV	(ERRFAC_OAFP + (-68*256))	/* the FSMDEV OAC is not connected to its server */
#define	OAFP_ALARMZ	(ERRFAC_OAFP + (-69*256))	/* the ALARMZ OAC is not connected to its server */
#define	OAFP_COLDCO	(ERRFAC_OAFP + (-70*256))	/* the COLDCO OAC is not connected to its server */
#define	OAFP_JABDEV	(ERRFAC_OAFP + (-71*256))	/* the JABDEV OAC is not connected to its server */
#define	OAFP_ACCBPM	(ERRFAC_OAFP + (-72*256))	/* the ACCBPM OAC is not connected to its server */
#define	OAFP_RRSHOT	(ERRFAC_OAFP + (-73*256))	/* the RRSHOT OAC is not connected to its server */
#define	OAFP_CONSAD	(ERRFAC_OAFP + (-74*256))	/* the CONSAD OAC is not connected to its server */
#define	OAFP_TEMSBD	(ERRFAC_OAFP + (-75*256))	/* the TEMSBD OAC is not connected to its server */
#define	OAFP_ESTATS	(ERRFAC_OAFP + (-76*256))	/* the ESTATS OAC is not connected to its server */
#define	OAFP_TEVTUN	(ERRFAC_OAFP + (-77*256))	/* the TEVTUN OAC is not connected to its server */
#define	OAFP_CCPEFF	(ERRFAC_OAFP + (-78*256))	/* the CCPEFF OAC is not connected to its server */
#define	OAFP_MIMISC	(ERRFAC_OAFP + (-78*256))	/* the MIMISC OAC is not connected to its server */
#define	OAFP_TEMITF	(ERRFAC_OAFP + (-79*256))	/* the TEMITF OAC is not connected to its server */
#define	OAFP_MITUNE	(ERRFAC_OAFP + (-79*256))	/* the MITUNE OAC is not connected to its server */
#define	OAFP_BACKUP	(ERRFAC_OAFP + (-80*256))	/* the BACKUP OAC is not connected to its server */
#define	OAFP_BOOMON	(ERRFAC_OAFP + (-81*256))	/* the BOOMON OAC is not connected to its server */
#define	OAFP_TESTZY	(ERRFAC_OAFP + (-82*256))	/* the TESTZY OAC is not connected to its server */
#define	OAFP_CHECKS	(ERRFAC_OAFP + (-83*256))	/* the CHECKS OAC is not connected to its server */
#define	OAFP_TEVSKY	(ERRFAC_OAFP + (-84*256))	/* the TEVSKY OAC is not connected to its server */
#define	OAFP_CRTEMP	(ERRFAC_OAFP + (-85*256))	/* the CRTEMP OAC is not connected to its server */
#define	OAFP_VLOGV	(ERRFAC_OAFP + (-86*256))	/* the VLOGV OAC is not connected to its server */
#define	OAFP_SETS	(ERRFAC_OAFP + (-87*256))	/* the SETS OAC is not connected to its server */
#define	OAFP_BOOCOL	(ERRFAC_OAFP + (-88*256))	/* the BOOCOL OAC is not connected to its server */
#define	OAFP_WEATHR	(ERRFAC_OAFP + (-89*256))	/* the WEATHR OAC is not connected to its server */
#define	OAFP_DEBBPM	(ERRFAC_OAFP + (-90*256))	/* the DEBBPM OAC is not connected to its server */
#define	OAFP_FLOWSM	(ERRFAC_OAFP + (-91*256))	/* the FLOWSM OAC is not connected to its server */
#define	OAFP_SHOTKY	(ERRFAC_OAFP + (-92*256))	/* the SHOTKY OAC is not connected to its server */
#define	OAFP_LEVELS	(ERRFAC_OAFP + (-93*256))	/* the LEVELS OAC is not connected to its server */
#define	OAFP_SYNTHE	(ERRFAC_OAFP + (-94*256))	/* the SYNTHE OAC is not connected to its server */
#define	OAFP_DAMPE1	(ERRFAC_OAFP + (-95*256))	/* the DAMPE1 OAC is not connected to its server */
#define	OAFP_NMLBBM	(ERRFAC_OAFP + (-95*256))	/* the NMLBBM OAC is not connected to its server */
#define	OAFP_DAMPE2	(ERRFAC_OAFP + (-96*256))	/* the DAMPE2 OAC is not connected to its server */
#define	OAFP_DAMPE3	(ERRFAC_OAFP + (-97*256))	/* the DAMPE3 OAC is not connected to its server */
#define	OAFP_DAMPE4	(ERRFAC_OAFP + (-98*256))	/* the DAMPE4 OAC is not connected to its server */
#define	OAFP_DAMPE5	(ERRFAC_OAFP + (-99*256))	/* the DAMPE5 OAC is not connected to its server */
#define	OAFP_TEVCRG	(ERRFAC_OAFP + (-100*256))	/* the TEVCRG OAC is not connected to its server */
#define	OAFP_PIDLUP	(ERRFAC_OAFP + (-101*256))	/* the PIDLUP OAC is not connected to its server */
#define	OAFP_MUCOOL	(ERRFAC_OAFP + (-102*256))	/* the MUCOOL OAC is not connected to its server */
#define	OAFP_SERBAL	(ERRFAC_OAFP + (-103*256))	/* the SERBAL OAC is not connected to its server */
#define	OAFP_TEVICS	(ERRFAC_OAFP + (-104*256))	/* the TEVICS OAC is not connected to its server */
#define	OAFP_MIBBIM	(ERRFAC_OAFP + (-105*256))	/* the MIBBIM OAC is not connected to its server */
#define	OAFP_TOR910	(ERRFAC_OAFP + (-106*256))	/* the TOR910 OAC is not connected to its server */
#define	OAFP_DEBIKI	(ERRFAC_OAFP + (-107*256))	/* the DEBIKI OAC is not connected to its server */
#define	OAFP_NUM101	(ERRFAC_OAFP + (-107*256))	/* the NUM101 OAC is not connected to its server */
#define	OAFP_DEBEKI	(ERRFAC_OAFP + (-108*256))	/* the DEBEKI OAC is not connected to its server */
#define	OAFP_ACCIKI	(ERRFAC_OAFP + (-109*256))	/* the ACCIKI OAC is not connected to its server */
#define	OAFP_SHOTPR	(ERRFAC_OAFP + (-110*256))	/* the SHOTPR OAC is not connected to its server */
#define	OAFP_MISWIC	(ERRFAC_OAFP + (-110*256))	/* the MISWIC OAC is not connected to its server */
#define	OAFP_SHOTPB	(ERRFAC_OAFP + (-111*256))	/* the SHOTPB OAC is not connected to its server */
#define	OAFP_PBARSA	(ERRFAC_OAFP + (-112*256))	/* the PBARSA OAC is not connected to its server */
#define	OAFP_TEVHLX	(ERRFAC_OAFP + (-113*256))	/* the TEVHLX OAC is not connected to its server */
#define	OAFP_RCYSCH	(ERRFAC_OAFP + (-114*256))	/* the RCYSCH OAC is not connected to its server */
#define	OAFP_BCCOAC	(ERRFAC_OAFP + (-115*256))	/* the BCCOAC OAC is not connected to its server */
#define	OAFP_EMINOS	(ERRFAC_OAFP + (-116*256))	/* the EMINOS OAC is not connected to its server */
#define	OAFP_MAGLEV	(ERRFAC_OAFP + (-117*256))	/* the MAGLEV OAC is not connected to its server */
#define	OAFP_INITEV	(ERRFAC_OAFP + (-118*256))	/* the INITEV OAC is not connected to its server */
#define	OAFP_SBDCAL	(ERRFAC_OAFP + (-119*256))	/* the SBDCAL OAC is not connected to its server */
#define	OAFP_TLONBP	(ERRFAC_OAFP + (-120*256))	/* the TLONBP OAC is not connected to its server */
#define	OAFP_TEVTTT	(ERRFAC_OAFP + (-121*256))	/* the TEVTTT OAC is not connected to its server */
#define	OAFP_FLXCAP	(ERRFAC_OAFP + (-122*256))	/* the FLXCAP OAC is not connected to its server */
#define	OAFP_TEVATF	(ERRFAC_OAFP + (-123*256))	/* the TEVATF OAC is not connected to its server */
#define	OAFP_AP2BPM	(ERRFAC_OAFP + (-124*256))	/* the AP2BPM OAC is not connected to its server */
#define	OAFP_TEVMON	(ERRFAC_OAFP + (-125*256))	/* the TEVMON OAC is not connected to its server */
#define	OAFP_JAERS	(ERRFAC_OAFP + (-126*256))	/* the JAERS OAC is not connected to its server */
#define	OAFP_SETSDB	(ERRFAC_OAFP + (-127*256))	/* the SETSDB OAC is not connected to its server */

/*
**  OAM
*/
#define	OAM_OK		0				/* successful completion */
#define	OAM_SUCCESS	0				/* OAM success code */
#define	OAM_PEND	(ERRFAC_OAM + (1*256))		/* request pending */
#define	OAM_MEMFAIL	(ERRFAC_OAM + (-1*256))		/* memory allocation failure */
#define	OAM_NOSETUP	(ERRFAC_OAM + (-2*256))		/* the required setup has not been performed */
#define	OAM_INVARG	(ERRFAC_OAM + (-3*256))		/* an invalid argument has been passed to a function */
#define	OAM_NOTOPN	(ERRFAC_OAM + (-4*256))		/* a required file is not open */
#define	OAM_NOT_OPEN	(ERRFAC_OAM + (-4*256))		/* a required file is not open */
#define	OAM_NOTYET	(ERRFAC_OAM + (-5*256))		/* requested feature is not yet supported */
#define	OAM_NOTASK	(ERRFAC_OAM + (-6*256))		/* client contributor is not connected to the Open Access Front End */
#define	OAM_ZENT	(ERRFAC_OAM + (-7*256))		/* zero SDPK or request packets were requests */
#define	OAM_TRUNC	(ERRFAC_OAM + (-8*256))		/* incoming request was too long and truncated */
#define	OAM_RLOV	(ERRFAC_OAM + (-9*256))		/* incoming request was too short */
#define	OAM_RPOV	(ERRFAC_OAM + (-10*256))	/* reply was too short */
#define	OAM_SSDN	(ERRFAC_OAM + (-11*256))	/* illegal SSDN */
#define	OAM_CLTRUNC	(ERRFAC_OAM + (-12*256))	/* the client reply was truncated */
#define	OAM_CLLENGTH	(ERRFAC_OAM + (-13*256))	/* the client reply's length is bad */
#define	OAM_MULR	(ERRFAC_OAM + (-14*256))	/* requesting multiple replies on sets is not permitted */
#define	OAM_LOGOUT	(ERRFAC_OAM + (-15*256))	/* the client was not responding to requests and has been logged out */
#define	OAM_INVNODE	(ERRFAC_OAM + (-16*256))	/* an operational client is running on the wrong ACNET node */

/*
**  OAMC
*/
#define	OAMC_OK		0				/* successful completion */
#define	OAMC_SUCCESS	0				/* OAMC success code */
#define	OAMC_PEND	(ERRFAC_OAMC + (1*256))		/* request pending */

/*
**  OAFP2
*/
#define	OAFP2_OK	0				/* successful completion */
#define	OAFP2_SUCCESS	0				/* OAFP2 success code */
#define	OAFP2_PEND	(ERRFAC_OAFP2 + (1*256))	/* request pending */
#define	OAFP2_BUNNY0	(ERRFAC_OAFP2 + (-1*256))	/* the BUNNY0 OAC is not connected to its server */
#define	OAFP2_BUNNY1	(ERRFAC_OAFP2 + (-2*256))	/* the BUNNY1 OAC is not connected to its server */
#define	OAFP2_BUNNY2	(ERRFAC_OAFP2 + (-3*256))	/* the BUNNY2 OAC is not connected to its server */
#define	OAFP2_BUNNY3	(ERRFAC_OAFP2 + (-4*256))	/* the BUNNY3 OAC is not connected to its server */
#define	OAFP2_BUNNY4	(ERRFAC_OAFP2 + (-5*256))	/* the BUNNY4 OAC is not connected to its server */
#define	OAFP2_LINBPM	(ERRFAC_OAFP2 + (-6*256))	/* the LINBPM OAC is not connected to its server */

/*
**  SQL (Sybase/dbinterface)
*/
#define	SQL_OK		0				/* successful completion */
#define	SQL_SUCCESS	0				/* SQL success code */
#define	SQL_PEND	(ERRFAC_SQL + (1*256))		/* operation pending */
#define	SQL_MOREROWS	(ERRFAC_SQL + (5*256))		/* additional rows available */
#define	SQL_SMALLROW	(ERRFAC_SQL + (9*256))		/* smaller row(s) than requested */
#define	SQL_GENERR	(ERRFAC_SQL + (-1*256))		/* general SQL error */
#define	SQL_GENERIC_ERROR	(ERRFAC_SQL + (-1*256))		/* general SQL error */
#define	SQL_TMO		(ERRFAC_SQL + (-24*256))	/* db_send timeout */
#define	SQL_TMOE	(ERRFAC_SQL + (-24*256))	/* db_send timeout */
#define	SQL_NOTAVAIL	(ERRFAC_SQL + (-71*256))	/* database currently not available */
#define	SQL_ROWSIZE	(ERRFAC_SQL + (-72*256))	/* incorrect row size expected*/
#define	SQL_NOPRIV	(ERRFAC_SQL + (-73*256))	/* access denied to Filesharing */
#define	SQL_SYBASE	(ERRFAC_SQL + (-74*256))	/* SQL syntax error */
#define	SQL_SYNTAX	(ERRFAC_SQL + (-74*256))	/* SQL syntax error */
#define	SQL_AMBIGUOUS	(ERRFAC_SQL + (-75*256))	/* ambiguous name */
#define	SQL_DEADLOCK	(ERRFAC_SQL + (-76*256))	/* killed due to deadlock */
#define	SQL_DUPLICATE	(ERRFAC_SQL + (-77*256))	/* dup. row/index insert failed */
#define	SQL_BADNAME	(ERRFAC_SQL + (-78*256))	/* name not known */
#define	SQL_NOSPACE	(ERRFAC_SQL + (-79*256))	/* db or log full */
#define	SQL_TOOBIG	(ERRFAC_SQL + (-80*256))	/* query too big */
#define	SQL_NO_BULK_COPY	(ERRFAC_SQL + (-81*256))	/* bulk copy is not enabled for some reason */
#define	SQL_USER0	(ERRFAC_SQL + (-112*256))	/* user defined error */
#define	SQL_USER1	(ERRFAC_SQL + (-113*256))	/* user defined error */
#define	SQL_USER2	(ERRFAC_SQL + (-114*256))	/* user defined error */
#define	SQL_USER3	(ERRFAC_SQL + (-115*256))	/* user defined error */
#define	SQL_USER4	(ERRFAC_SQL + (-116*256))	/* user defined error */
#define	SQL_USER5	(ERRFAC_SQL + (-117*256))	/* user defined error */
#define	SQL_USER6	(ERRFAC_SQL + (-118*256))	/* user defined error */
#define	SQL_USER7	(ERRFAC_SQL + (-119*256))	/* user defined error */
#define	SQL_USER8	(ERRFAC_SQL + (-120*256))	/* user defined error */
#define	SQL_USER9	(ERRFAC_SQL + (-121*256))	/* user defined error */
#define	SQL_USERA	(ERRFAC_SQL + (-122*256))	/* user defined error */
#define	SQL_USERB	(ERRFAC_SQL + (-123*256))	/* user defined error */
#define	SQL_USERC	(ERRFAC_SQL + (-124*256))	/* user defined error */
#define	SQL_USERD	(ERRFAC_SQL + (-125*256))	/* user defined error */
#define	SQL_USERE	(ERRFAC_SQL + (-126*256))	/* user defined error */
#define	SQL_USERF	(ERRFAC_SQL + (-127*256))	/* user defined error */

/*
**  MECAR
*/
#define	MECAR_OK	0					/* successful completion */
#define	MECAR_SUCCESS	0					/* MECAR success code */
#define	MECAR_NO_SUCH_CLASS	(ERRFAC_MECAR + (-1*256))	/* attempt to create instance for nonexistent class */
#define	MECAR_INVALID_OID	(ERRFAC_MECAR + (-2*256))	/* attempt to create instance with OID out of range (0 - 499) */
#define	MECAR_INV_MSG_TYPE	(ERRFAC_MECAR + (-3*256))	/* unsupported message type */
#define	MECAR_IVS_TOO_LONG	(ERRFAC_MECAR + (-4*256))	/* inner variables structure is too long */
#define	MECAR_TOO_MANY_SUPRCLASSES	(ERRFAC_MECAR + (-5*256))	/* too many superclasses */
#define	MECAR_DUPLICATE_CLASS	(ERRFAC_MECAR + (-6*256))	/* duplicated class definition */
#define	MECAR_DUPLICATE_OID	(ERRFAC_MECAR + (-7*256))	/* duplicated OID definition */
#define	MECAR_NO_SUCH_SUPRCLASS	(ERRFAC_MECAR + (-8*256))	/* superclass for this class is not defined */
#define	MECAR_NO_SUCH_OID_CLASS	(ERRFAC_MECAR + (-9*256))	/* class for this OID is not defined */
#define	MECAR_NO_SUCH_OID	(ERRFAC_MECAR + (-10*256))	/* this OID is not defined */
#define	MECAR_NO_SUCH_SUPERMETHOD	(ERRFAC_MECAR + (-11*256))	/* supermethod for this method is not defined */
#define	MECAR_CLASS_OUTOMEM	(ERRFAC_MECAR + (-12*256))	/* out of dynamic memory for the class structure */
#define	MECAR_INSTANCE_OUTOMEM	(ERRFAC_MECAR + (-13*256))	/* out of dynamic memory for instance structure */
#define	MECAR_EMPTY_NAME	(ERRFAC_MECAR + (-14*256))	/* empty name */
#define	MECAR_STRUCT_TOO_SMALL	(ERRFAC_MECAR + (-15*256))	/* structure is not big enough for this number of messages */
#define	MECAR_INV_OID_MSG_TYPE	(ERRFAC_MECAR + (-16*256))	/* message type is not supported by this OID */
#define	MECAR_IVS_TOO_SHORT	(ERRFAC_MECAR + (-17*256))	/* given ivs length is not enough */
#define	MECAR_ACNET_COMM_ERROR	(ERRFAC_MECAR + (-18*256))	/* Acnet error */
#define	MECAR_INTERNAL_MEMFAIL	(ERRFAC_MECAR + (-19*256))	/* inner memory problems */
#define	MECAR_INV_LIST_REQUEST	(ERRFAC_MECAR + (-20*256))	/* bad list request parameters */
#define	MECAR_TRIGGER_DEF_ERROR	(ERRFAC_MECAR + (-21*256))	/* error defining trigger */
#define	MECAR_BAD_FTD	(ERRFAC_MECAR + (-22*256))	/* bad FTD */
#define	MECAR_BAD_SET_PARAMS	(ERRFAC_MECAR + (-23*256))	/* bad Setting parameters */
#define	MECAR_BAD_LAN	(ERRFAC_MECAR + (-24*256))	/* bad LAN (SSDN) */
#define	MECAR_BAD_NODE	(ERRFAC_MECAR + (-25*256))	/* bad node (SSDN) */
#define	MECAR_BAD_FORMAT	(ERRFAC_MECAR + (-26*256))	/* bad format */
#define	MECAR_BAD_PROPERTY	(ERRFAC_MECAR + (-27*256))	/* unsupported PI */
#define	MECAR_BAD_OFFSET	(ERRFAC_MECAR + (-28*256))	/* wrong offset */
#define	MECAR_BAD_LENGTH	(ERRFAC_MECAR + (-29*256))	/* wrong length */
#define	MECAR_BAD_CHANNEL	(ERRFAC_MECAR + (-30*256))	/* bad channel */
#define	MECAR_BAD_OFFSET_LENGTH	(ERRFAC_MECAR + (-31*256))	/* bad offset + length */
#define	MECAR_BAD_DEVICE_TYPE	(ERRFAC_MECAR + (-32*256))	/* wrong device type */
#define	MECAR_BAD_BASIC_CONTROL	(ERRFAC_MECAR + (-33*256))	/* unsupported basic control word */
#define	MECAR_NO_ALARM	(ERRFAC_MECAR + (-34*256))	/* alarm is not defined */
#define	MECAR_CANNOT_ALARM	(ERRFAC_MECAR + (-35*256))	/* alarm property is not supported */
#define	MECAR_CLASS_MISMATCH	(ERRFAC_MECAR + (-36*256))	/* class mismatch */
#define	MECAR_CANNOT_FTP	(ERRFAC_MECAR + (-37*256))	/* unsupported property for FTP */
#define	MECAR_CONNECT_FAILED	(ERRFAC_MECAR + (-100*256))	/* connection failed */
#define	MECAR_RPC_FAILED	(ERRFAC_MECAR + (-101*256))	/* unknown RPC */
#define	MECAR_MEMFAIL	(ERRFAC_MECAR + (-102*256))	/* memory allocation failure */
#define	MECAR_INV_MI_BUS_INDEX	(ERRFAC_MECAR + (-103*256))	/* Main Injector bus index invalid */
#define	MECAR_INV_MI_EVENT_INDEX	(ERRFAC_MECAR + (-104*256))	/* Main Injector Event Index invalid */
#define	MECAR_BRK_PNT_SET_FAIL	(ERRFAC_MECAR + (-105*256))	/* setting of Current Break Point Table failed */
#define	MECAR_INV_CNTRL_PERMIT_REQ	(ERRFAC_MECAR + (-106*256))	/* control permit request invalid */
#define	MECAR_INV_DECIMATION_TYPE	(ERRFAC_MECAR + (-107*256))	/* decimation type invalid */
#define	MECAR_VPCC_PARAM_ERROR	(ERRFAC_MECAR + (-108*256))	/* VPCC parameter error */
#define	MECAR_VOLT_PROF_GEN_ERR	(ERRFAC_MECAR + (-109*256))	/* voltage profile generation error */
#define	MECAR_TIER_TABLE_ERROR	(ERRFAC_MECAR + (-110*256))	/* Template Tier Table error */
#define	MECAR_PS_NOT_IN_CIRCUIT	(ERRFAC_MECAR + (-111*256))	/* power supply not in circuit and/or bad channel number */
#define	MECAR_INV_BIT_NUMBER	(ERRFAC_MECAR + (-112*256))	/* invalid bit number on plot */
#define	MECAR_INV_OMSP		(ERRFAC_MECAR + (-113*256))	/* invalid MOOC message specific parameter (OMSP) */
#define	MECAR_SAVE_RESTORE_ERROR	(ERRFAC_MECAR + (-114*256))	/* internal save/restore error */
#define	MECAR_INTERNAL_VPCC_ERROR	(ERRFAC_MECAR + (-115*256))	/* internal VPCC return error */
#define	MECAR_INV_CPU_NUMBER	(ERRFAC_MECAR + (-116*256))	/* MECAR CPU number invalid */

/*
**  MOOC
*/
#define	MOOC_OK		0					/* successful completion */
#define	MOOC_SUCCESS	0					/* MOOC success code */
#define	MOOC_DEVICE_NOT_FOUND	(ERRFAC_MOOC + (1*256))		/* device was not found (will continue to search) */
#define	MOOC_DEVICE_NOT_CONNECTED	(ERRFAC_MOOC + (2*256))	/* device is not connected (may still connect) */
#define	MOOC_DEVICE_DISABLED	(ERRFAC_MOOC + (3*256))		/* device is disabled */
#define	MOOC_DEVICE_SET_DISABLED	(ERRFAC_MOOC + (4*256))	/* device settings are disabled */
#define	MOOC_OPERATION_DISABLED	(ERRFAC_MOOC + (5*256))		/* requested operation is disabled */
#define	MOOC_NO_RECENT_DATA	(ERRFAC_MOOC + (6*256))		/* no recent data of this type found */
#define	MOOC_ALARM_CONDITION_IGNORE	(ERRFAC_MOOC + (7*256))	/* conditions mean alarm limits are ignored (no alarms raised) */
#define	MOOC_NO_SUCH_CLASS	(ERRFAC_MOOC + (-1*256))	/* attempt to create instance for nonexistent class */
#define	MOOC_INVALID_OID	(ERRFAC_MOOC + (-2*256))	/* attempt to create instance with OID out of range (0 - 499) */
#define	MOOC_INV_MSG_TYPE	(ERRFAC_MOOC + (-3*256))	/* unsupported message type */
#define	MOOC_IVS_TOO_LONG	(ERRFAC_MOOC + (-4*256))	/* inner variables structure is too long */
#define	MOOC_TOO_MANY_SUPRCLASSES	(ERRFAC_MOOC + (-5*256))	/* too many superclasses */
#define	MOOC_DUPLICATE_CLASS	(ERRFAC_MOOC + (-6*256))	/* duplicated class definition */
#define	MOOC_DUPLICATE_OID	(ERRFAC_MOOC + (-7*256))	/* duplicated OID definition */
#define	MOOC_NO_SUCH_SUPRCLASS	(ERRFAC_MOOC + (-8*256))	/* superclass for this class is not defined */
#define	MOOC_NO_SUCH_OID_CLASS	(ERRFAC_MOOC + (-9*256))	/* class for this OID is not defined */
#define	MOOC_NO_SUCH_OID	(ERRFAC_MOOC + (-10*256))	/* this OID is not defined */
#define	MOOC_NO_SUCH_SUPERMETHOD	(ERRFAC_MOOC + (-11*256))	/* supermethod for this method is not defined */
#define	MOOC_CLASS_OUTOMEM	(ERRFAC_MOOC + (-12*256))	/* out of dynamic memory for the class structure */
#define	MOOC_INSTANCE_OUTOMEM	(ERRFAC_MOOC + (-13*256))	/* out of dynamic memory for instance structure */
#define	MOOC_EMPTY_NAME	(ERRFAC_MOOC + (-14*256))		/* empty name */
#define	MOOC_STRUCT_TOO_SMALL	(ERRFAC_MOOC + (-15*256))	/* structure is not big enough for this number of messages */
#define	MOOC_INV_OID_MSG_TYPE	(ERRFAC_MOOC + (-16*256))	/* message type is not supported by this OID */
#define	MOOC_IVS_TOO_SHORT	(ERRFAC_MOOC + (-17*256))	/* given ivs length is not enough */
#define	MOOC_ACNET_COMM_ERROR	(ERRFAC_MOOC + (-18*256))	/* Acnet error */
#define	MOOC_INTERNAL_MEMFAIL	(ERRFAC_MOOC + (-19*256))	/* inner memory problems */
#define	MOOC_INV_LIST_REQUEST	(ERRFAC_MOOC + (-20*256))	/* bad list request parameters */
#define	MOOC_TRIGGER_DEF_ERROR	(ERRFAC_MOOC + (-21*256))	/* error defining trigger */
#define	MOOC_BAD_FTD	(ERRFAC_MOOC + (-22*256))		/* bad FTD */
#define	MOOC_BAD_SET_PARAMS	(ERRFAC_MOOC + (-23*256))	/* bad Setting parameters */
#define	MOOC_BAD_LAN	(ERRFAC_MOOC + (-24*256))		/* bad LAN (SSDN) */
#define	MOOC_BAD_NODE	(ERRFAC_MOOC + (-25*256))		/* bad node (SSDN) */
#define	MOOC_BAD_FORMAT	(ERRFAC_MOOC + (-26*256))		/* bad format */
#define	MOOC_BAD_PROPERTY	(ERRFAC_MOOC + (-27*256))	/* unsupported PI */
#define	MOOC_BAD_OFFSET	(ERRFAC_MOOC + (-28*256))		/* wrong offset */
#define	MOOC_BAD_LENGTH	(ERRFAC_MOOC + (-29*256))		/* wrong length */
#define	MOOC_SET_TMO	(ERRFAC_MOOC + (-30*256))		/* setting timeout */
#define	MOOC_BAD_186_NUMBER	(ERRFAC_MOOC + (-31*256))	/* bad 186 number */
#define	MOOC_BAD_SLOT	(ERRFAC_MOOC + (-32*256))		/* bad slot */
#define	MOOC_BAD_CHANNEL	(ERRFAC_MOOC + (-33*256))	/* bad channel */
#define	MOOC_BAD_OFFSET_LENGTH	(ERRFAC_MOOC + (-34*256))	/* bad offset + length */
#define	MOOC_BAD_ACTUATOR	(ERRFAC_MOOC + (-35*256))	/* actuator is not updating data */
#define	MOOC_LOCAL_MODE_SET	(ERRFAC_MOOC + (-36*256))	/* a setting was attempted for a device that was in local */
#define	MOOC_BAD_DEVICE_TYPE	(ERRFAC_MOOC + (-37*256))	/* wrong device type */
#define	MOOC_BAD_BASIC_CONTROL	(ERRFAC_MOOC + (-38*256))	/* unsupported basic control word */
#define	MOOC_TRANSDUCER_FAULT	(ERRFAC_MOOC + (-39*256))	/* transducer fault (actuator) */
#define	MOOC_ENGINE_FAULT	(ERRFAC_MOOC + (-40*256))	/* engine fault */
#define	MOOC_NO_ALARM	(ERRFAC_MOOC + (-41*256))		/* alarm is not defined */
#define	MOOC_CANNOT_ALARM	(ERRFAC_MOOC + (-42*256))	/* alarm property is not supported */
#define	MOOC_CLASS_MISMATCH	(ERRFAC_MOOC + (-43*256))	/* class mismatch */
#define	MOOC_CANNOT_FTP	(ERRFAC_MOOC + (-44*256))		/* unsupported property for FTP */
#define	MOOC_MISSING_BOARD	(ERRFAC_MOOC + (-45*256))	/* missing hardware board in configuration */
#define	MOOC_NO_PULSE	(ERRFAC_MOOC + (-46*256))		/* cannot produce the requested pulse */
#define	MOOC_NO_INITIAL_OID	(ERRFAC_MOOC + (-47*256))	/* initial OID (object ID) is not specified */
#define	MOOC_BAD_GPIB_ADDRESS	(ERRFAC_MOOC + (-48*256))	/* unsupported GPIB address (0-15) */
#define	MOOC_GPIB_TMO	(ERRFAC_MOOC + (-49*256))		/* GPIB address is not responding */
#define	MOOC_ILLEGAL_GPIB_SEQ	(ERRFAC_MOOC + (-50*256))	/* illegal GPIB sequence */
#define	MOOC_GPIB_LOCKED	(ERRFAC_MOOC + (-51*256))	/* GPIB device is currently owned or locked */
#define	MOOC_GPIB_ERROR	(ERRFAC_MOOC + (-52*256))		/* GPIB specific error */
#define	MOOC_STATE_ACTIVE	(ERRFAC_MOOC + (-53*256))	/* attempted to set an active state */
#define	MOOC_FSM_UNDEFINED	(ERRFAC_MOOC + (-54*256))	/* FSM is not defined */
#define	MOOC_FSM_ACTIVE		(ERRFAC_MOOC + (-55*256))	/* attempted to set an active FSM */
#define	MOOC_STATE_UNDEFINED	(ERRFAC_MOOC + (-56*256))	/* state is not defined */
#define	MOOC_INCARNATION_LOCKED	(ERRFAC_MOOC + (-57*256))	/* incarnation is already locked by either state or another user */
#define	MOOC_INV_INCARNATION	(ERRFAC_MOOC + (-58*256))	/* invalid incarnation number */
#define	MOOC_INV_COLLECTION	(ERRFAC_MOOC + (-59*256))	/* invalid collection number */
#define	MOOC_BUFFER_OUTOMEM	(ERRFAC_MOOC + (-60*256))	/* circular buffer is out of internal memory */
#define	MOOC_EVENT_OVERLAP	(ERRFAC_MOOC + (-61*256))	/* this event overlapped with the previous one */
#define	MOOC_ADC_BUSY		(ERRFAC_MOOC + (-62*256))	/* ADC is in use by another state */
#define	MOOC_BAD_EVENT_NUMBER	(ERRFAC_MOOC + (-63*256))	/* specified event number is not within the range 0 - 255 */
#define	MOOC_ARCNET_ERROR	(ERRFAC_MOOC + (-64*256))	/* ARCNET communication problem */
#define	MOOC_SEQUENCER_NOT_INIT	(ERRFAC_MOOC + (-65*256))	/* SWIC sequencer is not initialized */
#define	MOOC_EVENT_UNDEFINED	(ERRFAC_MOOC + (-66*256))	/* not all events for the measurement sequence are defined */
#define	MOOC_BAD_MEASURE_NUM	(ERRFAC_MOOC + (-67*256))	/* bad measurement number specified for the measurement sequence */
#define	MOOC_UNDEFINED_MEASURE	(ERRFAC_MOOC + (-68*256))	/* not all measurements for the measurement sequence are defined */
#define	MOOC_BAD_SUBADDRESS	(ERRFAC_MOOC + (-69*256))	/* bad subaddress */
#define	MOOC_NOT_CALCULATED	(ERRFAC_MOOC + (-70*256))	/* not yet calculated */
#define	MOOC_END_OF_SEQUENCE	(ERRFAC_MOOC + (-71*256))	/* end of sequence */
#define	MOOC_TIMING		(ERRFAC_MOOC + (-72*256))	/* timing problem */
#define	MOOC_BAD_MEASURE_TYPE	(ERRFAC_MOOC + (-73*256))	/* unknown measurement type */
#define	MOOC_SEQUENCER_INACTIVE	(ERRFAC_MOOC + (-74*256))	/* sequencer hardware problem */
#define	MOOC_SEQUENCER_ERROR	(ERRFAC_MOOC + (-75*256))	/* sequencer hardware problem */
#define	MOOC_CALC_ERROR		(ERRFAC_MOOC + (-76*256))	/* sigma/mean calculation does not converge */
#define	MOOC_NO_DATA_UPDATE	(ERRFAC_MOOC + (-77*256))	/* data is not being updated */
#define	MOOC_NOT_ALLOCATED	(ERRFAC_MOOC + (-78*256))	/* memory for this buffer has not been allocated */
#define	MOOC_186_SICK		(ERRFAC_MOOC + (-81*256))	/* 186 is sick */
#define	MOOC_186_COMM_FAIL	(ERRFAC_MOOC + (-82*256))	/* communications with the 186 are down */
#define	MOOC_PLC_ERROR		(ERRFAC_MOOC + (-83*256))	/* PLC specific error */
#define	MOOC_PLC_TIMEOUT	(ERRFAC_MOOC + (-84*256))	/* PLC timeout, gave up trying to talk to PLC */
#define	MOOC_RS232_ERROR	(ERRFAC_MOOC + (-85*256))	/* RS232 read/write error */
#define	MOOC_TOO_FEW_ION_PUMPS	(ERRFAC_MOOC + (-86*256))	/* too many ion pumps are off to calculate an average vacuum */
#define	MOOC_BADPLANE   	(ERRFAC_MOOC + (-87*256))	/* requested multiwire plane not in beam */
#define	MOOC_DATAWAY_ERROR   	(ERRFAC_MOOC + (-88*256))	/* CIA dataway error */
#define	MOOC_BUSY		(ERRFAC_MOOC + (-89*256))	/* requested action still busy from previous request */
#define	MOOC_VIOB_SET_IN_PROG	(ERRFAC_MOOC + (-90*256))	/* VIOB set in progress */
#define	MOOC_ALARM_BAD_TYPE	(ERRFAC_MOOC + (-91*256))	/* Alarm block bad type */
#define	MOOC_ALARM_BAD_Q	(ERRFAC_MOOC + (-92*256))	/* Alarm block bad Q */
#define	MOOC_ALARM_NO_TYPE	(ERRFAC_MOOC + (-93*256))	/* Alarm block no type */
#define	MOOC_RESERVED		(ERRFAC_MOOC + (-94*256))	/* attempt to use reserved class or object number/id */
#define	MOOC_NOVERSION		(ERRFAC_MOOC + (-95*256))	/* FE does not support version info */
#define	MOOC_NO_DATA_IN_POOL	(ERRFAC_MOOC + (-96*256))	/* No data in data pool */
#define	MOOC_OMSP_BADMISC	(ERRFAC_MOOC + (-97*256))	/* bad OMSP misc field value (inside class method) */
#define	MOOC_OMSP_BADTYP	(ERRFAC_MOOC + (-98*256))	/* bad OMSP typ field value (inside class method) */
#define	MOOC_OMSP_BADCHAN	(ERRFAC_MOOC + (-99*256))	/* bad OMSP chan field value (inside class method) */
#define	MOOC_OMSP_BADMISC2	(ERRFAC_MOOC + (-100*256))	/* bad OMSP misc2 field value (inside class method) */
#define	MOOC_READ_NOT_SUPPORTED	(ERRFAC_MOOC + (-101*256))	/* device does not support reads */
#define	MOOC_FASTREADNOTSUPPORTED	(ERRFAC_MOOC + (-102*256))	/* device does not support fast reads */
#define	MOOC_SET_NOT_SUPPORTED	(ERRFAC_MOOC + (-103*256))	/* device does not support sets */
#define	MOOC_NULL_POINTER	(ERRFAC_MOOC + (-104*256))	/* null pointer passed to class method */
#define	MOOC_NO_ACCESSOR	(ERRFAC_MOOC + (-105*256))	/* class method has no Device Accessor for this request */
#define	MOOC_DEVICE_ERROR	(ERRFAC_MOOC + (-106*256))	/* Device Accessor can't fulfill this request (generic error) */
#define	MOOC_READ_TMO	(ERRFAC_MOOC + (-107*256))		/* read timeout */
#define	MOOC_READ_TIMEOUT	(ERRFAC_MOOC + (-107*256))	/* read timeout */
#define	MOOC_SETS_DISABLED	(ERRFAC_MOOC + (-108*256))	/* settings are presently disabled for this device */
#define	MOOC_BAD_DEVICE_ID	(ERRFAC_MOOC + (-109*256))	/* illegal device ID */
#define	MOOC_DEVICE_NOT_DEFINED	(ERRFAC_MOOC + (-110*256))	/* specified device ID has not been defined in this front end */
#define	MOOC_DRIVER_FAILED	(ERRFAC_MOOC + (-111*256))	/* device driver failed */
#define	MOOC_PEP_SERVER_DOWN	(ERRFAC_MOOC + (-115*256))	/* PEP (Packet Exchange Protocol) server is down */

#define MOOC_WHACK_FORWARD	(ERRFAC_MOOC_INTERNAL + (1*256))/* method has whacked that setting data for forwarding */

/*
**  TLG
*/
#define	TLG_OK			0				/* successful completion */
#define	TLG_SUCCESS		0				/* TLG success code */
#define	TLG_BLOCKED		(ERRFAC_TLG + (-1*256))		/* TLG is busy */
#define	TLG_CONSTRAINT_ERROR	(ERRFAC_TLG + (-2*256))		/* Unable To Meet TESTING Constraints */
#define	TLG_FATAL_ERROR		(ERRFAC_TLG + (-3*256))		/* Unable To Meet PLACING Constraints */
#define	TLG_PENDING		(ERRFAC_TLG + (-4*256))		/* Computation in Progress */
#define	TLG_MOD_EMPTY		(ERRFAC_TLG + (-5*256))		/* Module Slot is Empty */
#define	TLG_TLN_EMPTY		(ERRFAC_TLG + (-6*256))		/* Timeline Slot is Empty */
#define	TLG_INVALID_REQ		(ERRFAC_TLG + (-7*256))		/* Invalid Request Made */
#define	TLG_OUT_OF_MEM		(ERRFAC_TLG + (-8*256))		/* Requested Block is Too Large */
#define	TLG_BOOTED		(ERRFAC_TLG + (-9*256))		/* TLG Waiting For Startup Settings */
#define	TLG_STARTING		(ERRFAC_TLG + (-10*256))	/* TLG Received Startup Settings */
#define	TLG_MOD_NOTAPP		(ERRFAC_TLG + (-11*256))	/* TLG Module is NOT APPROVED  */
#define	TLG_TLN_OUTSRV		(ERRFAC_TLG + (-12*256))	/* TLG Timeline is OUT-OF-SERVICE */
#define	TLG_MOD_APPRV		(ERRFAC_TLG + (-13*256))	/* TLG Module is APPROVED */
#define	TLG_TLN_INSRV		(ERRFAC_TLG + (-14*256))	/* TLG Timeline is IN-SERVICE */

/*
**  CNSLIDTR
*/
#define	CNSLIDTR_OK	0					/* successful completion */
#define	CNSLIDTR_SUCCESS	0				/* CNSLIDTR success code */
#define	CNSLIDTR_MEMFAIL	(ERRFAC_CNSLIDTR + (-1*256))	/* out of memory */
#define	CNSLIDTR_NODE_DOWN	(ERRFAC_CNSLIDTR + (-2*256))	/* node is down */
#define	CNSLIDTR_BAD_REPLY_LEN	(ERRFAC_CNSLIDTR + (-3*256))	/* length of reply was less than expected */
#define	CNSLIDTR_BAD_LIST	(ERRFAC_CNSLIDTR + (-4*256))	/* something is wrong in the incoming Retdat or Setdat request */
#define	CNSLIDTR_INVALID_FTD	(ERRFAC_CNSLIDTR + (-5*256))	/* invalid FTD */
#define	CNSLIDTR_INVALID_DEVICE_CODE	(ERRFAC_CNSLIDTR + (-6*256))	/* invalid device code in SSDN */
#define	CNSLIDTR_INVALID_LENGTH	(ERRFAC_CNSLIDTR + (-7*256))	/* invalid device length */
#define	CNSLIDTR_INVALID_PROPERTY	(ERRFAC_CNSLIDTR + (-8*256))	/* unsupported property */
#define	CNSLIDTR_BAD_CONS_TYPE	(ERRFAC_CNSLIDTR + (-9*256))	/* bad consolidation type */
#define	CNSLIDTR_INVALID_OFFSET	(ERRFAC_CNSLIDTR + (-10*256))	/* invalid offset */
#define	CNSLIDTR_INVALID_LENGTHOFFSET	(ERRFAC_CNSLIDTR + (-11*256))	/* invalid length/offset combination */
#define	CNSLIDTR_REQUEST_ERROR	(ERRFAC_CNSLIDTR + (-12*256))	/* ACNET error in RETDAT/SETDAT request */

/*
**  DOWNLD
*/
#define	DOWNLD_OK	0					/* successful completion */
#define	DOWNLD_SUCCESS	0					/* DOWNLD success code */
#define	DOWNLD_ILLEGAL_FACTC	(ERRFAC_DOWNLD + (-1*256))	/* illegal facility typecode seen */
#define	DOWNLD_INV_PKT_SEQ	(ERRFAC_DOWNLD + (-2*256))	/* invalid packet sequence */
#define	DOWNLD_INV_PKT_TYP	(ERRFAC_DOWNLD + (-3*256))	/* invalid packet type */
#define	DOWNLD_INV_SSDR		(ERRFAC_DOWNLD + (-4*256))	/* invalid SSDR format */
#define	DOWNLD_INV_C2_VAL	(ERRFAC_DOWNLD + (-5*256))	/* invalid C2 constant in PDB */
#define	DOWNLD_INV_COM_INX	(ERRFAC_DOWNLD + (-6*256))	/* invalid common transform index */
#define	DOWNLD_INV_PRI_INX	(ERRFAC_DOWNLD + (-7*256))	/* invalid primary transform index */
#define	DOWNLD_INV_PROP_INX	(ERRFAC_DOWNLD + (-8*256))	/* invalid property index for PDB */
#define	DOWNLD_INV_PROP_LNG	(ERRFAC_DOWNLD + (-9*256))	/* invalid property length */
#define	DOWNLD_INV_FLD_TYP	(ERRFAC_DOWNLD + (-10*256))	/* invalid field type */
#define	DOWNLD_INV_FLD_LNG	(ERRFAC_DOWNLD + (-11*256))	/* invalid field length */
#define	DOWNLD_NO_MEMORY	(ERRFAC_DOWNLD + (-12*256))	/* not enough memory */
#define	DOWNLD_SERV_TBL_FULL	(ERRFAC_DOWNLD + (-13*256))	/* server forwarding table full */
#define	DOWNLD_SERV_IP_TARG	(ERRFAC_DOWNLD + (-14*256))	/* node conversion failure */
#define	DOWNLD_SERV_MSG_ID	(ERRFAC_DOWNLD + (-15*256))	/* invalid message ID */
#define	DOWNLD_SERV_TIME_OUT	(ERRFAC_DOWNLD + (-16*256))	/* server time-out */
#define	DOWNLD_TOO_MANY_ASSOC_BITS	(ERRFAC_DOWNLD + (-17*256))	/* too many associated bits */
#define	DOWNLD_BAD_NODE		(ERRFAC_DOWNLD + (-18*256))	/* bad node in message */
#define	DOWNLD_INCOMPAT_ASSOC_BITS	(ERRFAC_DOWNLD + (-19*256))	/* incompatible associated bits */
#define	DOWNLD_INVALID_FP_CONST	(ERRFAC_DOWNLD + (-20*256))	/* invalid floating point constant in PDB */
#define	DOWNLD_WRONG_NUM_CONSTANTS	(ERRFAC_DOWNLD + (-21*256))	/*  wrong number of constants in PDB */

/*
**  NETAPI
*/
#define	NETAPI_OK	0					/* successful completion */
#define	NETAPI_SUCCESS	0					/* NETAPI success code */
#define	NETAPI_BINDING_ALREADY	(ERRFAC_NETAPI + (-1*256))	/* binding already in effect */
#define	NETAPI_NO_BINDING	(ERRFAC_NETAPI + (-2*256))	/* no binding in effect on read */
#define	NETAPI_BIND_FAILURE	(ERRFAC_NETAPI + (-3*256))	/* failure to bind socket */
#define	NETAPI_SOCKET_FAILURE	(ERRFAC_NETAPI + (-4*256))	/* failure to create socket */
#define	NETAPI_CHANNEL_FAILURE	(ERRFAC_NETAPI + (-5*256))	/* cannot assign channel on binding */
#define	NETAPI_CONNECTION_LOST	(ERRFAC_NETAPI + (-6*256))	/* connection lost */
#define	NETAPI_IOCTL_FAILURE	(ERRFAC_NETAPI + (-7*256))	/* failure on socket_ioctl */
#define	NETAPI_NO_BLOCKING	(ERRFAC_NETAPI + (-8*256))	/* blocking I/O not in effect */
#define	NETAPI_NO_PORT		(ERRFAC_NETAPI + (-9*256))	/* no port or service provided */
#define	NETAPI_BAD_SERVICE	(ERRFAC_NETAPI + (-10*256))	/* cannot translate service name */
#define	NETAPI_NO_DESTINATION	(ERRFAC_NETAPI + (-11*256))	/* no destination host/node provided */
#define	NETAPI_BAD_HOSTNAME	(ERRFAC_NETAPI + (-12*256))	/* cannot translate hostname */
#define	NETAPI_NO_BUFFER	(ERRFAC_NETAPI + (-13*256))	/* no message buffer provided */
#define	NETAPI_NO_MESSAGE	(ERRFAC_NETAPI + (-14*256))	/* no input message available */
#define	NETAPI_RECV_ERROR	(ERRFAC_NETAPI + (-15*256))	/* general receive message error */
#define	NETAPI_XMIT_ERROR	(ERRFAC_NETAPI + (-16*256))	/* general transmit message error */
#define	NETAPI_BAD_VER		(ERRFAC_NETAPI + (-21*256))	/* bad version in NETAPI header */
#define	NETAPI_BAD_HDR_LEN	(ERRFAC_NETAPI + (-22*256))	/* bad NETAPI header length */
#define	NETAPI_BAD_HDR_TC	(ERRFAC_NETAPI + (-23*256))	/* bad NETAPI type-code */
#define	NETAPI_BAD_FAC_SIG	(ERRFAC_NETAPI + (-24*256))	/* bad facility signature */
#define	NETAPI_BAD_SIZE		(ERRFAC_NETAPI + (-25*256))	/* bad size of request */

/*
**  DAE bridge
*/
#define	DAE_BRDG_OK	0					/* successful completion */
#define	DAE_BRDG_SUCCESS	0				/* DAE bridge success code */
#define	DAE_BRDG_TRUNCREQ	(ERRFAC_DAE_BRDG + (-1*256))	/* request buffer is too small */
#define	DAE_BRDG_EMPTY		(ERRFAC_DAE_BRDG + (-2*256))	/* request contains zero elements */
#define	DAE_BRDG_SHORT		(ERRFAC_DAE_BRDG + (-3*256))	/* request declares that it contains more elements than are present in
the request buffer */
#define	DAE_BRDG_UNAVAIL	(ERRFAC_DAE_BRDG + (-4*256))	/* request typecode or subtypecode is not supported */
#define	DAE_BRDG_JOBFAIL	(ERRFAC_DAE_BRDG + (-5*256))	/* DaqJob start failed */

/*
**  DAE
*/
#define	DAE_OK	0					/* successful completion */
#define	DAE_SUCCESS	0				/* DAE success code */
#define	DAE_SETTING_SUPERCEDED	(ERRFAC_DAE + (2*256))	/* setting was superceded by another queued setting */
#define	DAE_NULL_SETTING	(ERRFAC_DAE + (3*256))	/* setting value was null */
#define	DAE_BPM_ALARM		(ERRFAC_DAE + (4*256))	/* BPM alarm reading from BPM scaling */
#define	DAE_BPM_ABORT		(ERRFAC_DAE + (5*256))	/* BPM abort reading from BPM scaling */
#define	DAE_OAC_UPDATING	(ERRFAC_DAE + (6*256))	/* update in progress (not finished) */
#define	DAE_ALT_SCALING_REQD	(ERRFAC_DAE + (7*256))	/* alternate scaling is required */
#define	DAE_COMPARE_NODATA	(ERRFAC_DAE + (-1*256))	/* CompareSources' ReceiveData received null data without an error return */
#define	DAE_COMPARE_UNSCALE_FAIL	(ERRFAC_DAE + (-2*256))	/* CompareSources was unable to unscale the data */
#define	DAE_COMPARE_NOSCALE	(ERRFAC_DAE + (-3*256))	/* CompareSources was unable to scale the data */
#define	DAE_DOWNLOAD_NODATA	(ERRFAC_DAE + (-4*256))	/* DownloadSource could not acquire the data from the setting's database */
#define	DAE_DOWNLOAD_EXCEPTION	(ERRFAC_DAE + (-5*256))	/* DownloadSource caught an exception while acquiring data from the setting's database */
#define	DAE_SAVE_HEADER_NOTFOUND	(ERRFAC_DAE + (-6*256))	/* SavedDataSource could not open the file header for this request */
#define	DAE_SAVE_INCOMPLETE_DATA	(ERRFAC_DAE + (-7*256))	/* SavedDataSource was missing a segment of database data */
#define	DAE_SAVE_GET_EXCEPTION	(ERRFAC_DAE + (-8*256))	/* SavedDataSource caught an exception while acquiring data */
#define	DAE_SNAP_REPLY_TRUNCATED	(ERRFAC_DAE + (-9*256))	/* snapshot reply returned success with no addtional data */
#define	DAE_SNAP_NO_EVENTS	(ERRFAC_DAE + (-10*256))	/* snapshot request has no collection events specified */
#define	DAE_FTP_GROUP_UNSUPPORTED	(ERRFAC_DAE + (-11*256))	/* FastTimePlot does not support group event codes at this time */
#define	DAE_CNSLD_NOT_CONSOLIDATR	(ERRFAC_DAE + (-12*256))	/* ConsolidationScheduler is not the current consolidator of this node */
#define	DAE_CNSLD_EVENT_EXCEPTION	(ERRFAC_DAE + (-13*256))	/* ConsolidationScheduler caught an exception when creating a DataEvent from the event string */
#define	DAE_CNSLD_NO_POOL	(ERRFAC_DAE + (-14*256))	/* ConsolidationScheduler was unable to locate a data pool for this node */
#define	DAE_CNSLD_UNAVAIL	(ERRFAC_DAE + (-15*256))	/* ConsolidationScheduler does not support this typecode */
#define	DAE_OAC_UNAVAIL		(ERRFAC_DAE + (-16*256))	/* OAC for this device is not available */
#define	DAE_OAC_NOT_IN_REPOSITORY	(ERRFAC_DAE + (-17*256))	/* device and property was not found in the OAC data repository */
#define	DAE_OAC_INVALID_LENGTH	(ERRFAC_DAE + (-18*256))	/* requested length is invalid */
#define	DAE_ALARM_INVALID_TYPECOD	(ERRFAC_DAE + (-19*256))	/* requested typecode is invalid */
#define	DAE_RETDAT_RECURSIVE	(ERRFAC_DAE + (-20*256))	/* local engine must not request data through this path */
#define	DAE_SETDAT_RECURSIVE	(ERRFAC_DAE + (-21*256))	/* local engine must not request data through this path */
#define	DAE_POOLER_RECURSIVE	(ERRFAC_DAE + (-22*256))	/* local engine must not request data through this path */
#define	DAE_RETDAT_TRUNCATED	(ERRFAC_DAE + (-23*256))	/* requested length is too short */
#define	DAE_OAC_NOT_OWNER	(ERRFAC_DAE + (-24*256))	/* OAC is not the owner of this device */
#define	DAE_SETTING_NULL	(ERRFAC_DAE + (-25*256))	/* setting value was null */
#define	DAE_SETTING_INVALID	(ERRFAC_DAE + (-26*256))	/* setting data is invalid */
#define	DAE_SETTING_PRIVILEGE	(ERRFAC_DAE + (-27*256))	/* setting privilege is not granted */
#define	DAE_SETTING_NOT_QUEUED	(ERRFAC_DAE + (-28*256))	/* setting not queued on error */
#define	DAE_SETTING_NO_SUCH_KNOB	(ERRFAC_DAE + (-29*256))	/* setting knob index is invalid */
#define	DAE_SETTING_NO_POOL	(ERRFAC_DAE + (-30*256))	/* setting no such pool */
#define	DAE_FTPMAN_RECURSIVE	(ERRFAC_DAE + (-31*256))	/* local engine must not request data through this path */
#define	DAE_LMBRJK_RECURSIVE	(ERRFAC_DAE + (-32*256))	/* local engine must not request data through this path */
#define	DAE_LMBRJK_TRUNCATED	(ERRFAC_DAE + (-33*256))	/* request frame is too short */
#define	DAE_LMBRJK_SUPPORT	(ERRFAC_DAE + (-34*256))	/* request not supported in Java data logger */
#define	DAE_LMBRJK_NOT_READY	(ERRFAC_DAE + (-35*256))	/* still initializing, try again later */
#define	DAE_LMBRJK_DUPLICATE_REQ	(ERRFAC_DAE + (-36*256))	/* retrieval request is duplicate and out of order */
#define	DAE_LMBRJK_ORDER	(ERRFAC_DAE + (-37*256))	/* retrieval request is out of order */
#define	DAE_TARDY_SNAP_ZIP	(ERRFAC_DAE + (-38*256))	/* snapshot was tardy and returned no points */
#define	DAE_BPM_SCALING		(ERRFAC_DAE + (-39*256))	/* BPM scaling expects USMs only */
#define	DAE_BPM_CACHE		(ERRFAC_DAE + (-40*256))	/* cache BPM scaling expects USMs only */
#define	DAE_BPM_INVALID		(ERRFAC_DAE + (-41*256))	/* invalid BPM reading from BPM scaling */
#define	DAE_BPM_ERROR		(ERRFAC_DAE + (-44*256))	/* BPM error reading from BPM scaling */
#define	DAE_IPADC_ERROR		(ERRFAC_DAE + (-45*256))	/* IPADC OAC socket error */
#define	DAE_BUGS_TRUNC		(ERRFAC_DAE + (-46*256))	/* BUGS ACNET handle truncated request */
#define	DAE_BUGS_TC		(ERRFAC_DAE + (-47*256))	/* BUGS ACNET handle bad typecode */
#define	DAE_FTP_REPLY_LENGTH	(ERRFAC_DAE + (-48*256))	/* FTP or SNAP bad reply length */
#define	DAE_BIG_SAVE_OFF	(ERRFAC_DAE + (-49*256))	/* BigSave is off, G:BIGSAV */
#define	DAE_BIG_SAVE_INV_FILE	(ERRFAC_DAE + (-50*256))	/* BigSave archive files must be in the 900's or 1100's */
#define	DAE_CONSLDTN_PLUS_ERROR	(ERRFAC_DAE + (-50*256))	/* positive error and no data */
#define	DAE_DATABASE_CHANGE	(ERRFAC_DAE + (-51*256))	/* device database has changed */
#define	DAE_ONESHOT_INCOMPLETE	(ERRFAC_DAE + (-52*256))	/* one shot pool failed to complete */
#define	DAE_GENERIC_SET_ERROR	(ERRFAC_DAE + (-53*256))	/* generic setting error (see XMLRPC handler) */
#define	DAE_OUT_OF_SERVICE	(ERRFAC_DAE + (-54*256))	/* front end is obsolete or out of service */
#define	DAE_SYNCH_PENDING	(ERRFAC_DAE + (-55*256))	/* awaiting synchronized collection */
#define	DAE_PARSE_SDA		(ERRFAC_DAE + (-56*256))	/* error parsing device request */
#define	DAE_PRIV_NODE_ACCOUNT	(ERRFAC_DAE + (-57*256))	/* node/account combination does not have setting privilege */
#define	DAE_PRIV_NODE_DEVICE	(ERRFAC_DAE + (-58*256))	/* node does not have setting privilege for this device */
#define	DAE_PRIV_ACCOUNT_DEVICE	(ERRFAC_DAE + (-59*256))	/* account does not have setting privilege for this device */
#define	DAE_NOT_A_NUMBER	(ERRFAC_DAE + (-60*256))	/* value scaled to NaN */
#define	DAE_INFINITE		(ERRFAC_DAE + (-61*256))	/* value scaled to infinity */
#define	DAE_NO_CLIENT		(ERRFAC_DAE + (-62*256))	/* no client data exists in logger */
#define	DAE_GPIB_EXCEPTION	(ERRFAC_DAE + (-63*256))	/* exception reading or setting GPIB data */
#define	DAE_LJ_NO_DATA		(ERRFAC_DAE + (-64*256))	/* data logger has no points to return */
#define	DAE_OPC_BAD_DATA	(ERRFAC_DAE + (-65*256))	/* data returned from OPC server is not valid */
#define	DAE_OPC_SERVER_UNAVAIL	(ERRFAC_DAE + (-66*256))	/* OPC server is not responding */
#define	DAE_NOVA_PW_BAD_DATA	(ERRFAC_DAE + (-67*256))	/* data from NOvA PW server is not valid */
#define	DAE_NOVA_PW_UNAVAIL	(ERRFAC_DAE + (-68*256))	/* NOvA Power server is not responding */
#define	DAE_NOVA_SIEMENS_BAD_DATA	(ERRFAC_DAE + (-69*256))	/* data from NOvA Siemens server is not valid */
#define	DAE_NOVA_SIEMENS_UNAVAIL	(ERRFAC_DAE + (-70*256))	/* NOvA Siemens server is not responding */
#define	DAE_NOVA_PHIDGT_BAD_DATA	(ERRFAC_DAE + (-71*256))	/* data from NOvA Phidgt server is not valid */
#define	DAE_NOVA_PHIDGT_UNAVAIL	(ERRFAC_DAE + (-72*256))	/* NOvA Phidgt server is not responding */

/*
**  LabView
*/
#define	LABVIEW_OK	0				/* successful completion */
#define	LABVIEW_SUCCESS	0				/* LabView success code */
#define	LABVIEW_INVALID_DEVICE	(ERRFAC_LABVIEW + (-1*256))	/* FE doesn't support this device */
#define	LABVIEW_BAD_OFFSET	(ERRFAC_LABVIEW + (-2*256))	/* invalid offset */
#define	LABVIEW_BAD_LENGTH	(ERRFAC_LABVIEW + (-3*256))	/* invalid length */
#define	LABVIEW_BAD_FTD	(ERRFAC_LABVIEW + (-4*256))	/* bad FTD (not in range 15 - .001 Hz) */
#define	LABVIEW_INVALID_REQUEST	(ERRFAC_LABVIEW + (-5*256))	/* invalid or unsupported request */
#define	LABVIEW_BAD_REQUEST	(ERRFAC_LABVIEW + (-6*256))	/* all requested devices are in error */
#define	LABVIEW_NO_SUCH_REQUEST	(ERRFAC_LABVIEW + (-7*256))	/* request not found */
#define	LABVIEW_TOO_MANY_REQUESTS	(ERRFAC_LABVIEW + (-8*256))	/* too many requests are active (maximum is 50) */
#define	LABVIEW_UNSUPPORTED_EVENT	(ERRFAC_LABVIEW + (-9*256))	/* FE doesn't support this clock event */
#define	LABVIEW_BAD_OFFLEN	(ERRFAC_LABVIEW + (-10*256))	/* invalid offset and length combination */

/*
**  BPM
*/
#define	BPM_OK			0				/* successful completion */
#define	BPM_SUCCESS		0				/* BPM success code */
#define	BPM_ARMED		(ERRFAC_BPM + (127*256))	/* measurement arm received */
#define	BPM_AWAITING_TRIGGER	(ERRFAC_BPM + (126*256))	/* measurement waiting for a trigger */
#define	BPM_TRIGGERED		(ERRFAC_BPM + (125*256))	/* measurement trigger received */
#define	BPM_READING_DATA	(ERRFAC_BPM + (124*256))	/* reading ADC measurement data */
#define	BPM_READING_CALIBRATION	(ERRFAC_BPM + (123*256))	/* reading ADC calibration data */
#define	BPM_MEASUREMENT_ACTIVE	(ERRFAC_BPM + (122*256))	/* measurement in progress */
#define	BPM_DISABLED		(ERRFAC_BPM + (121*256))	/* measurement disabled by acquisition specification */
#define	BPM_PREEMPTED		(ERRFAC_BPM + (120*256))	/* measurement preempted by another measurement */
#define	BPM_ARM_WILL_MASK	(ERRFAC_BPM + (111*256))	/* this measurement will mask another using the same arm event */
#define	BPM_ARM_IS_MASKED	(ERRFAC_BPM + (110*256))	/* this measurement will be masked by another using the same arm event */
#define	BPM_ADC_STATUS_79	(ERRFAC_BPM + (79*256))		/* ADC status 79:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_78	(ERRFAC_BPM + (78*256))		/* ADC status 78:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_77	(ERRFAC_BPM + (77*256))		/* ADC status 77:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_76	(ERRFAC_BPM + (76*256))		/* ADC status 76:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_75	(ERRFAC_BPM + (75*256))		/* ADC status 75:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_74	(ERRFAC_BPM + (74*256))		/* ADC status 74:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_73	(ERRFAC_BPM + (73*256))		/* ADC status 73:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_72	(ERRFAC_BPM + (72*256))		/* ADC status 72:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_71	(ERRFAC_BPM + (71*256))		/* ADC status 71:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_70	(ERRFAC_BPM + (70*256))		/* ADC status 70:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_69	(ERRFAC_BPM + (69*256))		/* ADC status 69:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_68	(ERRFAC_BPM + (68*256))		/* ADC status 68:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_67	(ERRFAC_BPM + (67*256))		/* ADC status 67:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_66	(ERRFAC_BPM + (66*256))		/* ADC status 66:Echotek ADC I/O friver status */
#define	BPM_ADC_STATUS_65	(ERRFAC_BPM + (65*256))		/* ADC status 65:Echotek ADC I/O friver status */
#define	BPM_NO_DATA_FOUND	(ERRFAC_BPM + (64*256))		/* BPM did not find any beam on this measurement */
#define	BPM_DIAGNOSTIC_MODE	(ERRFAC_BPM + (5*256))		/* system is in diagnostic mode */
#define	BPM_READOUT_BUSY	(ERRFAC_BPM + (4*256))		/* requested ReadoutSpecification and associated data are busy - retry */
#define	BPM_DATA_UNAVAILABLE	(ERRFAC_BPM + (3*256))		/* specified measurement has not yet been made */
#define	BPM_WAITING_FOR_DOWNLOAD	(ERRFAC_BPM + (2*256))	/* waiting for host to load parameters */
#define	BPM_INITIALIZATION	(ERRFAC_BPM + (1*256))		/* power on condition */
#define	BPM_GENERIC_ERROR	(ERRFAC_BPM + (-1*256))		/* generic error code - should not reach ACNet */
#define	BPM_INITIALIZATION_ERROR	(ERRFAC_BPM + (-2*256))	/* error during system initialization see initialization status device */
#define	BPM_READOUT_PROTOCOL_ERR	(ERRFAC_BPM + (-3*256))	/* associated ReadoutSpecification has timed out or was not set prior to data read */
#define	BPM_NO_SUCH_CHANNEL	(ERRFAC_BPM + (-4*256))		/* the requested channel is not supported by this front-end */
#define	BPM_NO_SUCH_DATA	(ERRFAC_BPM + (-5*256))		/* the requested data is not supported by this front-end */
#define	BPM_REQDATA_NOT_ACQUIRED	(ERRFAC_BPM + (-6*256))	/* the requested data cannot be determined from the event data */
#define	BPM_PARAM_NOT_SETTABLE	(ERRFAC_BPM + (-9*256))		/* attempted to set a parameter which is not settable */
#define	BPM_ARM_EVENT_IN_USE	(ERRFAC_BPM + (-10*256))	/* arm event is already being used to arm another measurement */
#define	BPM_TRIG_EVT_NO_SUPPORT	(ERRFAC_BPM + (-11*256))	/* specified trigger event is not supported by this measurement type */
#define	BPM_CALSPEC_CONTROL	(ERRFAC_BPM + (-49*256))	/* calibration spec control field is in error */
#define	BPM_CALSPEC_MODE	(ERRFAC_BPM + (-50*256))	/* calibration spec continuous/pulse field is in error */
#define	BPM_CALSPEC_FREQUENCY	(ERRFAC_BPM + (-51*256))	/* calibration spec frequency field is in error */
#define	BPM_CALSPEC_WAVEFORM	(ERRFAC_BPM + (-52*256))	/* calibration spec waveform field is in error */
#define	BPM_CALSPEC_BALANCE	(ERRFAC_BPM + (-53*256))	/* calibration spec balance field is in error */
#define	BPM_CALSPEC_AMPLITUDE	(ERRFAC_BPM + (-54*256))	/* calibration spec amplitude field is in error */
#define	BPM_CALSPEC_MUSTBEZERO	(ERRFAC_BPM + (-55*256))	/* calibration spec must be zero field is in error */
#define	BPM_CALSPEC_CALSYSTYPE	(ERRFAC_BPM + (-56*256))	/* calibration spec system type field is in error */
#define	BPM_DIASPEC_MUSTBEZERO	(ERRFAC_BPM + (-57*256))	/* diagnostic spec must be zero field is in error */
#define	BPM_DIASPEC_ENABLE	(ERRFAC_BPM + (-58*256))	/* diagnostic spec enable field is in error */
#define	BPM_DIASPEC_CHANNELA	(ERRFAC_BPM + (-59*256))	/* diagnostic spec channel A field is in error */
#define	BPM_DIASPEC_CHANNELB	(ERRFAC_BPM + (-60*256))	/* diagnostic spec channel B field is in error */
#define	BPM_RDOSPEC_CHANNEL	(ERRFAC_BPM + (-61*256))	/* readout spec channel field is in error */
#define	BPM_RDOSPEC_BEGINNUMTURN	(ERRFAC_BPM + (-62*256))	/* sum of the begin turn and number of turns fields is in eror */
#define	BPM_RDOSPEC_NUMTURNS	(ERRFAC_BPM + (-63*256))	/* readout spec number of turns field is in error */
#define	BPM_RDOSPEC_BEGINTURN	(ERRFAC_BPM + (-64*256))	/* readout spec begin turn field is in error */
#define	BPM_RDOSPEC_DATATYPE	(ERRFAC_BPM + (-65*256))	/* readout spec data type field is in error */
#define	BPM_RDOSPEC_EVENTINDEX	(ERRFAC_BPM + (-66*256))	/* readout spec event index field is in error */
#define	BPM_ACQSPEC_MEASURETRIG	(ERRFAC_BPM + (-67*256))	/* acquisition spec measurement trigger field is in error */
#define	BPM_ACQSPEC_TIMEOUT	(ERRFAC_BPM + (-68*256))	/* acquisition spec timeout field is in error */
#define	BPM_ACQSPEC_INTTHRESHOLD	(ERRFAC_BPM + (-69*256))	/* acquisition spec intensity threshold field is in error */
#define	BPM_ACQSPEC_GLOBALDELAY	(ERRFAC_BPM + (-70*256))	/* acquisition spec global delay field is in error */
#define	BPM_ACQSPEC_TRIGGERDELAY	(ERRFAC_BPM + (-71*256))	/* acquisition spec trigger delay field is in error */
#define	BPM_ACQSPEC_TRIGGERFREQ	(ERRFAC_BPM + (-72*256))	/* acquisition spec trigger frequency field is in error */
#define	BPM_ACQSPEC_PRETRIGENABL	(ERRFAC_BPM + (-73*256))	/* acquisition spec pretrigger enable field is in error */
#define	BPM_ACQSPEC_TRIGGEREVENT	(ERRFAC_BPM + (-74*256))	/* acquisition spec trigger event field is in error */
#define	BPM_ACQSPEC_ARMEVENT	(ERRFAC_BPM + (-75*256))	/* acquisition spec arm event field is in error */
#define	BPM_ACQSPEC_MEASURETYPE	(ERRFAC_BPM + (-76*256))	/* acquisition spec measurement type field is in error */
#define	BPM_ACQSPEC_BEAMTYPE	(ERRFAC_BPM + (-77*256))	/* acquisition spec beam mode field is in error */
#define	BPM_ACQSPEC_BEAMMODE	(ERRFAC_BPM + (-78*256))	/* acquisition spec enable field is in error */
#define	BPM_ACQSPEC_MEASUREMENT	(ERRFAC_BPM + (-79*256))	/* acquisition spec measurement field is in error */
#define	BPM_ACQSPEC_ENABLE	(ERRFAC_BPM + (-80*256))	/* acquisition spec enable field is in error */
#define	BPM_PREARM_TIMEOUT	(ERRFAC_BPM + (-91*256))	/* prearm phase of the measurement timed out */
#define	BPM_ARM_FAILURE		(ERRFAC_BPM + (-92*256))	/* arm event was not able to start the appropriate measurement task */
#define	BPM_TRIGGER_TIMEOUT	(ERRFAC_BPM + (-93*256))	/* trigger event did not occur within the timeout period */
#define	BPM_UCD_CONFIG_ERROR	(ERRFAC_BPM + (-94*256))	/* TCLK error while configuring the measurement */
#define	BPM_TSG_CONFIG_ERROR	(ERRFAC_BPM + (-95*256))	/* BSCLK error while configuring the measurement */
#define	BPM_ADC_CONFIG_ERROR	(ERRFAC_BPM + (-96*256))	/* ADC error while configuring the measurement */
#define	BPM_TSG_ERROR_97	(ERRFAC_BPM + (-97*256))	/* timing signal generator I/O driver error */
#define	BPM_TSG_ERROR_98	(ERRFAC_BPM + (-98*256))	/* timing signal generator I/O driver error */
#define	BPM_BSYNC_ERROR		(ERRFAC_BPM + (-99*256))	/* error from Bsync clock decoder on the TSG */
#define	BPM_MDAT_ERROR		(ERRFAC_BPM + (-100*256))	/* error from MDAT decoder on the TSG */
#define	BPM_TURN_COUNTER_ERROR	(ERRFAC_BPM + (-101*256))	/* error from Bsync turn counter on the TSG */
#define	BPM_53MHZ_ERROR		(ERRFAC_BPM + (-102*256))	/* 53 MHZ clock is missing on the TSG */
#define	BPM_ACQ_COUNT_OVERFLOW	(ERRFAC_BPM + (-103*256))	/* number of turns is too large */
#define	BPM_ACQ_DELAY_OVERFLOW	(ERRFAC_BPM + (-104*256))	/* sum of all acquisition delay terms is too large */
#define	BPM_NO_MDAT_MESSAGE	(ERRFAC_BPM + (-105*256))	/* required MDAT message was not detected */
#define	BPM_NO_BSYNC_TURN	(ERRFAC_BPM + (-106*256))	/* turn marker was not detected */
#define	BPM_ILLEGAL_BEAM_TYPE	(ERRFAC_BPM + (-107*256))	/* illegal beam type */
#define	BPM_ILLEGAL_BEAM_MODE	(ERRFAC_BPM + (-108*256))	/* illegal beam mode */
#define	BPM_ILLEGAL_MODE	(ERRFAC_BPM + (-109*256))	/* illegal mode */
#define	BPM_MISSING_TSG_MASTER	(ERRFAC_BPM + (-110*256))	/* master TSG module is missing or not responding */
#define	BPM_MISSING_TSG		(ERRFAC_BPM + (-111*256))	/* TSG module is missing or not responding */
#define	BPM_TSG_ERROR		(ERRFAC_BPM + (-112*256))	/* TSG error */
#define	BPM_ADC_ERROR_113	(ERRFAC_BPM + (-113*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_114	(ERRFAC_BPM + (-114*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_115	(ERRFAC_BPM + (-115*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_116	(ERRFAC_BPM + (-116*256))	/* Echotek ADC I/O driver error */
#define	BPM_DMA_BAD_INT		(ERRFAC_BPM + (-116*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_117	(ERRFAC_BPM + (-117*256))	/* Echotek ADC I/O driver error */
/* #define	BPM_NO_DATA_FOUND	(ERRFAC_BPM + (-117*256)) */	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_118	(ERRFAC_BPM + (-118*256))	/* Echotek ADC I/O driver error */
#define	BPM_ANOTHER_ERROR	(ERRFAC_BPM + (-118*256))	/* Echotek ADC I/O driver error */
#define	BPM_NO_DATA_BUFFER	(ERRFAC_BPM + (-118*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_119	(ERRFAC_BPM + (-119*256))	/* Echotek ADC I/O driver error */
#define	BPM_BAD_BOARD		(ERRFAC_BPM + (-119*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_120	(ERRFAC_BPM + (-120*256))	/* Echotek ADC I/O driver error */
#define	BPM_SAMPLES_PER_TURN	(ERRFAC_BPM + (-120*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_121	(ERRFAC_BPM + (-121*256))	/* Echotek ADC I/O driver error */
#define	BPM_COLLECTION_TMO	(ERRFAC_BPM + (-121*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_122	(ERRFAC_BPM + (-122*256))	/* Echotek ADC I/O driver error */
#define	BPM_DMA_FAILED		(ERRFAC_BPM + (-122*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_123	(ERRFAC_BPM + (-123*256))	/* Echotek ADC I/O driver error */
#define	BPM_TOO_MANY_SAMPLES	(ERRFAC_BPM + (-123*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_124	(ERRFAC_BPM + (-124*256))	/* Echotek ADC I/O driver error */
#define	BPM_ABORTED		(ERRFAC_BPM + (-124*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_125	(ERRFAC_BPM + (-125*256))	/* Echotek ADC I/O driver error */
#define	BPM_DATA_INVALID	(ERRFAC_BPM + (-125*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_126	(ERRFAC_BPM + (-126*256))	/* Echotek ADC I/O driver error */
#define	BPM_UNSUPPORTED_MODE	(ERRFAC_BPM + (-126*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_127	(ERRFAC_BPM + (-127*256))	/* Echotek ADC I/O driver error */
#define	BPM_WRONG_MODE		(ERRFAC_BPM + (-127*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR_128	(ERRFAC_BPM + (-128*256))	/* Echotek ADC I/O driver error */
#define	BPM_ADC_ERROR		(ERRFAC_BPM + (-128*256))	/* Echotek ADC I/O driver error */

/*
**  DMQ
*/
#define	DMQ_OK			0				/* successful completion */
#define	DMQ_SUCCESS		0				/* DMQ success code */
#define	DMQ_PEND		(ERRFAC_DMQ + (1*256))		/* data is pending */
#define	DMQ_INVALID_DATA_TYPE	(ERRFAC_DMQ + (-93*256))	/* invalid data type */
#define	DMQ_SETTINGS_DISABLED	(ERRFAC_DMQ + (-94*256))	/* settings are disabled */
#define	DMQ_INTERNAL_SERVER_ERROR	(ERRFAC_DMQ + (-95*256))	/* internal server error */
#define	DMQ_CHANNEL_NOT_READY	(ERRFAC_DMQ + (-96*256))	/* channel not ready */
#define	DMQ_DUPLICATE_JOB	(ERRFAC_DMQ + (-97*256))	/* duplicate job */
#define	DMQ_INVALID_REQUEST	(ERRFAC_DMQ + (-98*256))	/* invalid request */
#define	DMQ_SECURITY_VIOLATION	(ERRFAC_DMQ + (-99*256))	/* security violation */

#endif