mrfioc2
2.3.0
mrfCommon
src
configurationInfo.h
Go to the documentation of this file.
1
/*************************************************************************\
2
* Copyright (c) 2015 Paul Scherrer Institute (PSI), Villigen, Switzerland
3
* mrfioc2 is distributed subject to a Software License Agreement found
4
* in file LICENSE that is included with this distribution.
5
\*************************************************************************/
6
#ifndef CONFIGURATIONINFO_H
7
#define CONFIGURATIONINFO_H
8
9
#include <devLibPCI.h>
10
11
//VME
12
struct
configuration_vme
{
13
epicsInt32
slot
;
// slot where the card is inserted
14
epicsUInt32
address
;
// VME address in A24 space
15
epicsInt32
irqLevel
;
// interupt level
16
epicsInt32
irqVector
;
// interrupt vector
17
std::string
position
;
// position description for EVR
18
};
19
20
21
// PCI
22
struct
configuration_pci
{
23
const
epicsPCIDevice *
dev
;
24
configuration_pci
()
25
:dev(0)
26
{}
27
};
28
29
enum
busType
{
30
busType_vme
= 0,
31
busType_pci
= 1
32
};
33
34
struct
bus_configuration
{
35
struct
configuration_vme
vme;
36
struct
configuration_pci
pci;
37
enum
busType
busType
;
38
};
39
40
// form factor corresponds to FPGA Firmware Version Register bit 26-24
41
enum
formFactor
{
42
formFactor_unknown
= -1,
43
formFactor_CPCI
=0,
// 3U
44
formFactor_PMC
=1,
45
formFactor_VME64
=2,
46
formFactor_CRIO
=3,
47
formFactor_CPCIFULL
=4,
// 6U
48
formFactor_PXIe
=6,
49
formFactor_PCIe
=7,
50
formFactor_mTCA
=8,
51
};
52
53
#endif // CONFIGURATIONINFO_H
configuration_vme
Definition:
configurationInfo.h:12
configuration_vme::position
std::string position
Definition:
configurationInfo.h:17
formFactor_VME64
Definition:
configurationInfo.h:45
configuration_vme::address
epicsUInt32 address
Definition:
configurationInfo.h:14
configuration_vme::irqLevel
epicsInt32 irqLevel
Definition:
configurationInfo.h:15
formFactor_mTCA
Definition:
configurationInfo.h:50
formFactor_PMC
Definition:
configurationInfo.h:44
formFactor
formFactor
Definition:
configurationInfo.h:41
formFactor_unknown
Definition:
configurationInfo.h:42
formFactor_PXIe
Definition:
configurationInfo.h:48
busType
busType
Definition:
configurationInfo.h:29
formFactor_CRIO
Definition:
configurationInfo.h:46
busType_pci
Definition:
configurationInfo.h:31
configuration_pci
Definition:
configurationInfo.h:22
configuration_pci::configuration_pci
configuration_pci()
Definition:
configurationInfo.h:24
configuration_pci::dev
const epicsPCIDevice * dev
Definition:
configurationInfo.h:23
configuration_vme::slot
epicsInt32 slot
Definition:
configurationInfo.h:13
formFactor_CPCI
Definition:
configurationInfo.h:43
busType_vme
Definition:
configurationInfo.h:30
formFactor_PCIe
Definition:
configurationInfo.h:49
configuration_vme::irqVector
epicsInt32 irqVector
Definition:
configurationInfo.h:16
formFactor_CPCIFULL
Definition:
configurationInfo.h:47
bus_configuration
Definition:
configurationInfo.h:34
Generated on Fri Sep 22 2023 08:38:15 for mrfioc2 by
1.8.13