File indexing completed on 2025-05-11 08:23:53
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef VME_AM_DEFINITIONS_H
0010 #define VME_AM_DEFINITIONS_H
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065 #ifndef VME_AM_STD_SUP_BLT
0066 #define VME_AM_STD_SUP_BLT 0x3f
0067 #endif
0068 #ifndef VME_AM_STD_SUP_ASCENDING
0069 #define VME_AM_STD_SUP_ASCENDING 0x3f
0070 #endif
0071 #ifndef VME_AM_STD_SUP_PGM
0072 #define VME_AM_STD_SUP_PGM 0x3e
0073 #endif
0074 #ifndef VME_AM_STD_SUP_MBLT
0075 #define VME_AM_STD_SUP_MBLT 0x3c
0076 #endif
0077 #ifndef VME_AM_STD_USR_BLT
0078 #define VME_AM_STD_USR_BLT 0x3b
0079 #endif
0080 #ifndef VME_AM_STD_USR_ASCENDING
0081 #define VME_AM_STD_USR_ASCENDING 0x3b
0082 #endif
0083 #ifndef VME_AM_STD_USR_PGM
0084 #define VME_AM_STD_USR_PGM 0x3a
0085 #endif
0086 #ifndef VME_AM_STD_SUP_DATA
0087 #define VME_AM_STD_SUP_DATA 0x3d
0088 #endif
0089 #ifndef VME_AM_STD_USR_DATA
0090 #define VME_AM_STD_USR_DATA 0x39
0091 #endif
0092 #ifndef VME_AM_STD_USR_MBLT
0093 #define VME_AM_STD_USR_MBLT 0x38
0094 #endif
0095 #ifndef VME_AM_EXT_SUP_BLT
0096 #define VME_AM_EXT_SUP_BLT 0x0f
0097 #endif
0098 #ifndef VME_AM_EXT_SUP_ASCENDING
0099 #define VME_AM_EXT_SUP_ASCENDING 0x0f
0100 #endif
0101 #ifndef VME_AM_EXT_SUP_PGM
0102 #define VME_AM_EXT_SUP_PGM 0x0e
0103 #endif
0104 #ifndef VME_AM_EXT_SUP_DATA
0105 #define VME_AM_EXT_SUP_DATA 0x0d
0106 #endif
0107 #ifndef VME_AM_EXT_SUP_MBLT
0108 #define VME_AM_EXT_SUP_MBLT 0x0c
0109 #endif
0110 #ifndef VME_AM_EXT_USR_BLT
0111 #define VME_AM_EXT_USR_BLT 0x0b
0112 #endif
0113 #ifndef VME_AM_EXT_USR_ASCENDING
0114 #define VME_AM_EXT_USR_ASCENDING 0x0b
0115 #endif
0116 #ifndef VME_AM_EXT_USR_PGM
0117 #define VME_AM_EXT_USR_PGM 0x0a
0118 #endif
0119 #ifndef VME_AM_EXT_USR_DATA
0120 #define VME_AM_EXT_USR_DATA 0x09
0121 #endif
0122 #ifndef VME_AM_EXT_USR_MBLT
0123 #define VME_AM_EXT_USR_MBLT 0x08
0124 #endif
0125 #ifndef VME_AM_2eVME_6U
0126 #define VME_AM_2eVME_6U 0x20
0127 #endif
0128 #ifndef VME_AM_2eVME_3U
0129 #define VME_AM_2eVME_3U 0x21
0130 #endif
0131 #ifndef VME_AM_CSR
0132 #define VME_AM_CSR 0x2f
0133 #endif
0134 #ifndef VME_AM_SUP_SHORT_IO
0135 #define VME_AM_SUP_SHORT_IO 0x2d
0136 #endif
0137 #ifndef VME_AM_USR_SHORT_IO
0138 #define VME_AM_USR_SHORT_IO 0x29
0139 #endif
0140 #ifndef VME_AM_IS_SHORT
0141 #define VME_AM_IS_SHORT(a) (((a) & 0x30) == 0x20)
0142 #endif
0143 #ifndef VME_AM_IS_STD
0144 #define VME_AM_IS_STD(a) (((a) & 0x30) == 0x30)
0145 #endif
0146 #ifndef VME_AM_IS_EXT
0147 #define VME_AM_IS_EXT(a) (((a) & 0x30) == 0x00)
0148 #endif
0149 #ifndef VME_AM_IS_SUP
0150 #define VME_AM_IS_SUP(a) ((a) & 4)
0151 #endif
0152
0153
0154
0155 #ifndef VME_AM_MASK
0156 #define VME_AM_MASK 0x3f
0157 #endif
0158
0159
0160
0161
0162
0163 #ifndef VME_AM_IS_MEMORY
0164 #define VME_AM_IS_MEMORY (1<<8)
0165 #endif
0166
0167
0168
0169
0170
0171
0172
0173 #define VME_AM_2eSST_BCST (1<<9)
0174
0175 #define VME_AM_2eSST_LO (1<<10)
0176
0177 #define VME_AM_2eSST_MID (2<<10)
0178
0179 #define VME_AM_2eSST_HI (3<<10)
0180
0181 #define VME_AM_IS_2eSST(am) ((am) & (3<<10))
0182
0183
0184
0185
0186 #define VME_MODE_DBW_MSK (3<<12)
0187 #define VME_MODE_DBW8 (1<<12)
0188 #define VME_MODE_DBW16 (2<<12)
0189 #define VME_MODE_DBW32 (3<<12)
0190
0191
0192
0193
0194
0195
0196
0197
0198 #endif