@@ -363,29 +363,6 @@ FirmwareFeatures CruBar::convertToFirmwareFeatures(uint32_t reg)
363363 return features;
364364}
365365
366- // / Sets the bits for the data generator size in the given integer
367- // / \param bits Integer with bits to set
368- // / \param size Size to set
369- void CruBar::setDataGeneratorSizeBits (uint32_t & bits, size_t size)
370- {
371- if (!Utilities::isMultiple (size, 32ul )) {
372- BOOST_THROW_EXCEPTION (Exception ()
373- << ErrorInfo::Message (" Unsupported generator data size for CRU; must be multiple of 32 bytes" )
374- << ErrorInfo::GeneratorEventLength (size));
375- }
376-
377- if (size < 32 || size > Cru::DMA_PAGE_SIZE) {
378- BOOST_THROW_EXCEPTION (Exception ()
379- << ErrorInfo::Message (" Unsupported generator data size for CRU; must be >= 32 bytes and <= 8 KiB" )
380- << ErrorInfo::GeneratorEventLength (size));
381- }
382-
383- // We set the size in 256-bit (32 byte) words and do -1 because that's how it works.
384- uint32_t sizeValue = ((size / 32 ) - 1 ) << 8 ;
385- bits &= ~(uint32_t (0xff00 ));
386- bits += sizeValue;
387- }
388-
389366// / Sets the bits for the data generator enabled in the given integer
390367// / \param bits Integer with bits to set
391368// / \param enabled Generator enabled or not
@@ -394,14 +371,6 @@ void CruBar::setDataGeneratorEnableBits(uint32_t& bits, bool enabled)
394371 Utilities::setBit (bits, 0 , enabled);
395372}
396373
397- // / Sets the bits for the data generator random size in the given integer
398- // / \param bits Integer with bits to set
399- // / \param enabled Random enabled or not
400- void CruBar::setDataGeneratorRandomSizeBits (uint32_t & bits, bool enabled)
401- {
402- Utilities::setBit (bits, 16 , enabled);
403- }
404-
405374// / Reports the CRU status
406375Cru::ReportInfo CruBar::report ()
407376{
0 commit comments