dev-arm: Rename SCMI namespace as scmi

As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.

::SCMI became ::scmi.

Change-Id: I68f729124079ecce02120577d2b89b25f10bde4a
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45392
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:
Daniel R. Carvalho
2021-05-07 14:55:03 -03:00
committed by Daniel Carvalho
parent b571b17626
commit 78915f1895
5 changed files with 15 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ class ScmiChannel(SimObject):
"""
type = 'ScmiChannel'
cxx_header = "dev/arm/css/scmi_platform.hh"
cxx_class = "SCMI::VirtualChannel"
cxx_class = "scmi::VirtualChannel"
shmem_range = Param.AddrRange(
"Virtual channel's shared memory address range")
phys_id = Param.Unsigned(4,
@@ -78,7 +78,7 @@ class ScmiAgentChannel(ScmiChannel):
"""
type = 'ScmiAgentChannel'
cxx_header = "dev/arm/css/scmi_platform.hh"
cxx_class = "SCMI::AgentChannel"
cxx_class = "scmi::AgentChannel"
class ScmiPlatformChannel(ScmiChannel):
@@ -87,7 +87,7 @@ class ScmiPlatformChannel(ScmiChannel):
"""
type = 'ScmiPlatformChannel'
cxx_header = "dev/arm/css/scmi_platform.hh"
cxx_class = "SCMI::PlatformChannel"
cxx_class = "scmi::PlatformChannel"
class ScmiCommunication(SimObject):
"""
@@ -98,7 +98,7 @@ class ScmiCommunication(SimObject):
"""
type = 'ScmiCommunication'
cxx_header = "dev/arm/css/scmi_platform.hh"
cxx_class = "SCMI::Communication"
cxx_class = "scmi::Communication"
agent_channel = Param.ScmiAgentChannel(
"Agent to Platform channel")
@@ -108,7 +108,7 @@ class ScmiCommunication(SimObject):
class ScmiPlatform(Scp):
type = 'ScmiPlatform'
cxx_header = "dev/arm/css/scmi_platform.hh"
cxx_class = "SCMI::Platform"
cxx_class = "scmi::Platform"
comms = VectorParam.ScmiCommunication([],
"SCMI Communications")

View File

@@ -43,7 +43,7 @@
#include "dev/arm/doorbell.hh"
#include "mem/packet_access.hh"
using namespace SCMI;
using namespace scmi;
AgentChannel::AgentChannel(const ScmiChannelParams &p)
: VirtualChannel(p),

View File

@@ -46,7 +46,8 @@
class Doorbell;
namespace SCMI
GEM5_DEPRECATED_NAMESPACE(SCMI, scmi);
namespace scmi
{
class Platform;
@@ -326,6 +327,6 @@ class Platform : public Scp
DmaPort dmaPort;
};
} // namespace SCMI
} // namespace scmi
#endif // __DEV_ARM_CSS_SCMI_PLATFORM_H__

View File

@@ -40,7 +40,7 @@
#include "debug/SCMI.hh"
#include "dev/arm/css/scmi_platform.hh"
using namespace SCMI;
using namespace scmi;
const std::string
Protocol::name() const

View File

@@ -41,7 +41,10 @@
#include <cstdint>
#include <string>
namespace SCMI
#include "base/compiler.hh"
GEM5_DEPRECATED_NAMESPACE(SCMI, scmi);
namespace scmi
{
class Platform;
@@ -148,6 +151,6 @@ class BaseProtocol : public Protocol
};
}; // namespace SCMI
}; // namespace scmi
#endif