File tree Expand file tree Collapse file tree 9 files changed +72
-9
lines changed
Expand file tree Collapse file tree 9 files changed +72
-9
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ if(PDA_FOUND)
122122 src/DmaChannelPdaBase.cxx
123123 src/BarInterfaceBase.cxx
124124 src/CardConfigurator.cxx
125+ src/CardFinder.cxx
125126 src/Crorc/Crorc.cxx
126127 src/Crorc/CrorcDmaChannel.cxx
127128 src/Crorc/CrorcBar.cxx
Original file line number Diff line number Diff line change 1313// /
1414// / \author Kostas Alexopoulos ([email protected] )1515
16- #ifndef ALICEO2_SRC_READOUTCARD_CARDCONFIGURATOR_H_
17- #define ALICEO2_SRC_READOUTCARD_CARDCONFIGURATOR_H_
16+ #ifndef ALICEO2_INCLUDE_READOUTCARD_CARDCONFIGURATOR_H_
17+ #define ALICEO2_INCLUDE_READOUTCARD_CARDCONFIGURATOR_H_
1818
1919#include " ReadoutCard/Parameters.h"
2020
Original file line number Diff line number Diff line change 1313// /
1414// / \author Pascal Boeschoten ([email protected] )1515
16- #ifndef ALICEO2_SRC_READOUTCARD_CARDDESCRIPTOR_H_
17- #define ALICEO2_SRC_READOUTCARD_CARDDESCRIPTOR_H_
16+ #ifndef ALICEO2_INCLUDE_READOUTCARD_CARDDESCRIPTOR_H_
17+ #define ALICEO2_INCLUDE_READOUTCARD_CARDDESCRIPTOR_H_
1818
1919#include < boost/optional.hpp>
2020#include " ReadoutCard/CardType.h"
@@ -38,4 +38,4 @@ struct CardDescriptor {
3838} // namespace roc
3939} // namespace AliceO2
4040
41- #endif // ALICEO2_SRC_READOUTCARD_CARDDESCRIPTOR_H_
41+ #endif // ALICEO2_INCLUDE_READOUTCARD_CARDDESCRIPTOR_H_
Original file line number Diff line number Diff line change 1+ // Copyright CERN and copyright holders of ALICE O2. This software is
2+ // distributed under the terms of the GNU General Public License v3 (GPL
3+ // Version 3), copied verbatim in the file "COPYING".
4+ //
5+ // See http://alice-o2.web.cern.ch/license for full licensing information.
6+ //
7+ // In applying this license CERN does not waive the privileges and immunities
8+ // granted to it by virtue of its status as an Intergovernmental Organization
9+ // or submit itself to any jurisdiction.
10+
11+ // / \file CardFinder.h
12+ // / \brief Definitions for the CardFinder methods.
13+ // /
14+ // / \author Kostas Alexopoulos ([email protected] )15+
16+ #ifndef ALICEO2_INCLUDE_READOUTCARD_CARDFINDER_H_
17+ #define ALICEO2_INCLUDE_READOUTCARD_CARDFINDER_H_
18+
19+ #include " ReadoutCard/CardDescriptor.h"
20+
21+ namespace AliceO2
22+ {
23+ namespace roc
24+ {
25+
26+ std::vector<CardDescriptor> findCards (); // Possibly extend with card types (crorc, cru)
27+
28+ } // namespace roc
29+ } // namespace AliceO2
30+
31+ #endif // ALICEO2_INCLUDE_READOUTCARD_CARDFINDER_H_
Original file line number Diff line number Diff line change 1+ // Copyright CERN and copyright holders of ALICE O2. This software is
2+ // distributed under the terms of the GNU General Public License v3 (GPL
3+ // Version 3), copied verbatim in the file "COPYING".
4+ //
5+ // See http://alice-o2.web.cern.ch/license for full licensing information.
6+ //
7+ // In applying this license CERN does not waive the privileges and immunities
8+ // granted to it by virtue of its status as an Intergovernmental Organization
9+ // or submit itself to any jurisdiction.
10+
11+ // / \file CardFinder.cxx
12+ // / \brief Implementation of the CardFinder collection of functions.
13+ // /
14+ // / \author Kostas Alexopoulos ([email protected] )15+
16+ #include " ReadoutCard/CardFinder.h"
17+ #include " RocPciDevice.h"
18+
19+ namespace AliceO2
20+ {
21+ namespace roc
22+ {
23+
24+ std::vector<CardDescriptor> findCards ()
25+ {
26+ std::vector<CardDescriptor> cards = RocPciDevice::findSystemDevices ();
27+ return cards;
28+ }
29+
30+ } // namespace roc
31+ } // namespace AliceO2
Original file line number Diff line number Diff line change 2222#include < mutex>
2323#include < boost/optional.hpp>
2424#include < InfoLogger/InfoLogger.hxx>
25- #include " CardDescriptor.h"
2625#include " ChannelPaths.h"
2726#include " ExceptionInternal.h"
2827#include " Pda/PdaLock.h"
28+ #include " ReadoutCard/CardDescriptor.h"
2929#include " ReadoutCard/DmaChannelInterface.h"
3030#include " ReadoutCard/Exception.h"
3131#include " ReadoutCard/InterprocessLock.h"
Original file line number Diff line number Diff line change 1515
1616#include < map>
1717#include < algorithm>
18- #include " CardDescriptor.h"
1918#include " ExceptionInternal.h"
19+ #include " ReadoutCard/CardDescriptor.h"
2020#include " ReadoutCard/CardType.h"
2121#include " ReadoutCard/Parameters.h"
2222#ifdef ALICEO2_READOUTCARD_PDA_ENABLED
Original file line number Diff line number Diff line change 1818
1919#include < memory>
2020#include < string>
21- #include " CardDescriptor.h"
2221#include " Pda/PdaDevice.h"
2322#include " ReadoutCard/CardType.h"
23+ #include " ReadoutCard/CardDescriptor.h"
2424#include " ReadoutCard/Parameters.h"
2525#include " ReadoutCard/ParameterTypes/PciAddress.h"
2626#include " ReadoutCard/PciId.h"
Original file line number Diff line number Diff line change 1010#define BOOST_TEST_DYN_LINK
1111#include < boost/test/unit_test.hpp>
1212#include < assert.h>
13- #include " CardDescriptor.h"
13+ #include " ReadoutCard/ CardDescriptor.h"
1414
1515BOOST_AUTO_TEST_CASE (ChannelPathsTest)
1616{
You can’t perform that action at this time.
0 commit comments