NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
PlxStat.h
1 #ifndef __PLX_STATUS_H
2 #define __PLX_STATUS_H
3 
4 /*******************************************************************************
5  * Copyright (c) PLX Technology, Inc.
6  *
7  * PLX Technology Inc. licenses this source file under the GNU Lesser General Public
8  * License (LGPL) version 2. This source file may be modified or redistributed
9  * under the terms of the LGPL and without express permission from PLX Technology.
10  *
11  * PLX Technology, Inc. provides this software AS IS, WITHOUT ANY WARRANTY,
12  * EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTY OF
13  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PLX makes no guarantee
14  * or representations regarding the use of, or the results of the use of,
15  * the software and documentation in terms of correctness, accuracy,
16  * reliability, currentness, or otherwise; and you rely on the software,
17  * documentation and results solely at your own risk.
18  *
19  * IN NO EVENT SHALL PLX BE LIABLE FOR ANY LOSS OF USE, LOSS OF BUSINESS,
20  * LOSS OF PROFITS, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES
21  * OF ANY KIND.
22  *
23  ******************************************************************************/
24 
25 /******************************************************************************
26  *
27  * File Name:
28  *
29  * PlxStat.h
30  *
31  * Description:
32  *
33  * This file defines all the status codes for PLX SDK
34  *
35  * Revision:
36  *
37  * 06-01-11 : PLX SDK v6.50
38  *
39  ******************************************************************************/
40 
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 
47 
48 
49 /******************************************
50 * Definitions
51 ******************************************/
52 #define PLX_STATUS_START 0x200 // Starting status code
53 
54 
55 // API Return Code Values
56 typedef enum _PLX_STATUS
57 {
58  ApiSuccess = PLX_STATUS_START,
59  ApiFailed,
60  ApiNullParam,
61  ApiUnsupportedFunction,
62  ApiNoActiveDriver,
63  ApiConfigAccessFailed,
64  ApiInvalidDeviceInfo,
65  ApiInvalidDriverVersion,
66  ApiInvalidOffset,
67  ApiInvalidData,
68  ApiInvalidSize,
69  ApiInvalidAddress,
70  ApiInvalidAccessType,
71  ApiInvalidIndex,
72  ApiInvalidPowerState,
73  ApiInvalidIopSpace,
74  ApiInvalidHandle,
75  ApiInvalidPciSpace,
76  ApiInvalidBusIndex,
77  ApiInsufficientResources,
78  ApiWaitTimeout,
79  ApiWaitCanceled,
80  ApiDmaChannelUnavailable,
81  ApiDmaChannelInvalid,
82  ApiDmaDone,
83  ApiDmaPaused,
84  ApiDmaInProgress,
85  ApiDmaCommandInvalid,
86  ApiDmaInvalidChannelPriority,
87  ApiDmaSglPagesGetError,
88  ApiDmaSglPagesLockError,
89  ApiMuFifoEmpty,
90  ApiMuFifoFull,
91  ApiPowerDown,
92  ApiHSNotSupported,
93  ApiVPDNotSupported,
94  ApiDeviceInUse,
95  ApiDeviceDisabled,
96  ApiPending,
97  ApiObjectNotFound,
98  ApiInvalidState,
99  ApiBufferTooSmall,
100  ApiLastError // Do not add API errors below this line
101 } PLX_STATUS;
102 
103 
104 
105 #ifdef __cplusplus
106 }
107 #endif
108 
109 #endif