dev: Rename CopyEngineReg namespace as copy_engine_reg
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. ::CopyEngineReg became ::copy_engine_reg. Change-Id: I8ac5ff272ab6a663a25f245c48827c7ff1b6abc5 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45387 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
This commit is contained in:
committed by
Daniel Carvalho
parent
f317fbdb75
commit
fd4f65a294
@@ -56,7 +56,7 @@
|
||||
#include "sim/stats.hh"
|
||||
#include "sim/system.hh"
|
||||
|
||||
using namespace CopyEngineReg;
|
||||
using namespace copy_engine_reg;
|
||||
|
||||
CopyEngine::CopyEngine(const Params &p)
|
||||
: PciDevice(p),
|
||||
|
||||
@@ -62,9 +62,9 @@ class CopyEngine : public PciDevice
|
||||
private:
|
||||
DmaPort cePort;
|
||||
CopyEngine *ce;
|
||||
CopyEngineReg::ChanRegs cr;
|
||||
copy_engine_reg::ChanRegs cr;
|
||||
int channelId;
|
||||
CopyEngineReg::DmaDesc *curDmaDesc;
|
||||
copy_engine_reg::DmaDesc *curDmaDesc;
|
||||
uint8_t *copyBuffer;
|
||||
|
||||
bool busy;
|
||||
@@ -149,7 +149,7 @@ class CopyEngine : public PciDevice
|
||||
} copyEngineStats;
|
||||
|
||||
// device registers
|
||||
CopyEngineReg::Regs regs;
|
||||
copy_engine_reg::Regs regs;
|
||||
|
||||
// Array of channels each one with regs/dma port/etc
|
||||
std::vector<CopyEngineChannel*> chan;
|
||||
|
||||
@@ -30,10 +30,12 @@
|
||||
* Register and structure descriptions for Intel's I/O AT DMA Engine
|
||||
*/
|
||||
#include "base/bitfield.hh"
|
||||
#include "base/compiler.hh"
|
||||
#include "sim/serialize.hh"
|
||||
|
||||
namespace CopyEngineReg {
|
||||
|
||||
GEM5_DEPRECATED_NAMESPACE(CopyEngineReg, copy_engine_reg);
|
||||
namespace copy_engine_reg
|
||||
{
|
||||
|
||||
// General Channel independant registers, 128 bytes starting at 0x00
|
||||
const uint32_t GEN_CHANCOUNT = 0x00;
|
||||
@@ -232,6 +234,6 @@ struct ChanRegs : public Serializable
|
||||
|
||||
};
|
||||
|
||||
} // namespace CopyEngineReg
|
||||
} // namespace copy_engine_reg
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user