File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,16 @@ class BarAccessor
187187 return mBar ->readRegister (Registers::FIRMWARE_TIME.index );
188188 }
189189
190- uint32_t getFpgaChipId1 ()
190+ uint32_t getFpgaChipHigh ()
191191 {
192192 assertBarIndex (2 , " Can only get FPGA chip ID from BAR 2" );
193- return mBar ->readRegister (Registers::FPGA_CHIP_ID_1 .index );
193+ return mBar ->readRegister (Registers::FPGA_CHIP_HIGH .index );
194194 }
195195
196- uint32_t getFpgaChipId2 ()
196+ uint32_t getFpgaChipLow ()
197197 {
198198 assertBarIndex (2 , " Can only get FPGA chip ID from BAR 2" );
199- return mBar ->readRegister (Registers::FPGA_CHIP_ID_2 .index );
199+ return mBar ->readRegister (Registers::FPGA_CHIP_LOW .index );
200200 }
201201
202202 // / Get the enabled features for the card's firmware.
@@ -310,4 +310,4 @@ class BarAccessor
310310} // namespace roc
311311} // namespace AliceO2
312312
313- #endif // ALICEO2_READOUTCARD_CRU_BARACCESSOR_H_
313+ #endif // ALICEO2_READOUTCARD_CRU_BARACCESSOR_H_
Original file line number Diff line number Diff line change @@ -111,19 +111,19 @@ static constexpr Register FIRMWARE_EPOCH(0x1c);
111111
112112// / Register containing the compilation date/time in seconds since Unix epoch
113113// / Must be accessed on BAR 2
114- static constexpr Register FIRMWARE_DATE (0x20 );
114+ static constexpr Register FIRMWARE_DATE (0x08 );
115115
116116// / Register containing the compilation date/time in seconds since Unix epoch
117117// / Must be accessed on BAR 2
118- static constexpr Register FIRMWARE_TIME (0x24 );
118+ static constexpr Register FIRMWARE_TIME (0x0c );
119119
120120// / Register containing the first part of the Arria 10 chip ID
121121// / Must be accessed on BAR 2
122- static constexpr Register FPGA_CHIP_ID_1 ( 0x00200038 );
122+ static constexpr Register FPGA_CHIP_HIGH ( 0x00010014 );
123123
124124// / Register containing the second part of the Arria 10 chip ID
125125// / Must be accessed on BAR 2
126- static constexpr Register FPGA_CHIP_ID_2 ( 0x0020003c );
126+ static constexpr Register FPGA_CHIP_LOW ( 0x00010018 );
127127
128128} // namespace Cru
129129} // namespace Registers
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ boost::optional<std::string> CruDmaChannel::getFirmwareInfo()
351351boost::optional<std::string> CruDmaChannel::getCardId ()
352352{
353353 if (mFeatures .chipId ) {
354- return (boost::format (" %08x-%08x" ) % getBar2 ().getFpgaChipId1 () % getBar2 ().getFpgaChipId2 ()).str ();
354+ return (boost::format (" %08x-%08x" ) % getBar2 ().getFpgaChipHigh () % getBar2 ().getFpgaChipLow ()).str ();
355355 } else {
356356 return {};
357357 }
You can’t perform that action at this time.
0 commit comments