File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2828#include " ReadoutCard/ChannelFactory.h"
2929#include " ReadoutCard/Exception.h"
3030#include " ReadoutCard/Parameters.h"
31- #include " Utilities/SmartPointer.h"
3231
3332namespace AliceO2
3433{
Original file line number Diff line number Diff line change 2626#include " ReadoutCard/ParameterTypes/PciAddress.h"
2727#include " ReadoutCard/ParameterTypes/SerialId.h"
2828#include " ReadoutCard/PciId.h"
29+ #include " Utilities/SmartPointer.h"
2930
3031namespace AliceO2
3132{
@@ -76,6 +77,10 @@ class RocPciDevice
7677 return std::move (mPdaBar0 );
7778 } else if (barIndex == 2 ) {
7879 return std::move (mPdaBar2 );
80+ } else if (barIndex > 0 && barIndex < 6 ) {
81+ std::shared_ptr<Pda::PdaBar> mPdaBarX ;
82+ Utilities::resetSmartPtr (mPdaBarX , mPciDevice , barIndex);
83+ return std::move (mPdaBarX );
7984 }
8085 return nullptr ;
8186 }
You can’t perform that action at this time.
0 commit comments