dev: Rename Sinic namespace as sinic
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. ::Sinic became ::sinic. Change-Id: I0a28089cc9f8f65b33101b4791d67c2f82b85059 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45385 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
43b026f3f9
commit
a498fb3551
@@ -229,7 +229,7 @@ class NSGigE(EtherDevBase):
|
||||
|
||||
class Sinic(EtherDevBase):
|
||||
type = 'Sinic'
|
||||
cxx_class = 'Sinic::Device'
|
||||
cxx_class = 'sinic::Device'
|
||||
cxx_header = "dev/net/sinic.hh"
|
||||
|
||||
rx_max_copy = Param.MemorySize('1514B', "rx max copy")
|
||||
|
||||
@@ -45,7 +45,9 @@
|
||||
|
||||
using namespace Net;
|
||||
|
||||
namespace Sinic {
|
||||
GEM5_DEPRECATED_NAMESPACE(Sinic, sinic);
|
||||
namespace sinic
|
||||
{
|
||||
|
||||
const char *RxStateStrings[] =
|
||||
{
|
||||
@@ -1486,4 +1488,4 @@ Device::unserialize(CheckpointIn &cp)
|
||||
|
||||
}
|
||||
|
||||
} // namespace Sinic
|
||||
} // namespace sinic
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#ifndef __DEV_NET_SINIC_HH__
|
||||
#define __DEV_NET_SINIC_HH__
|
||||
|
||||
#include "base/compiler.hh"
|
||||
#include "base/inet.hh"
|
||||
#include "base/statistics.hh"
|
||||
#include "dev/io_device.hh"
|
||||
@@ -41,7 +42,9 @@
|
||||
#include "params/Sinic.hh"
|
||||
#include "sim/eventq.hh"
|
||||
|
||||
namespace Sinic {
|
||||
GEM5_DEPRECATED_NAMESPACE(Sinic, sinic);
|
||||
namespace sinic
|
||||
{
|
||||
|
||||
class Interface;
|
||||
class Base : public EtherDevBase
|
||||
@@ -319,6 +322,6 @@ class Interface : public EtherInt
|
||||
virtual void sendDone() { dev->transferDone(); }
|
||||
};
|
||||
|
||||
} // namespace Sinic
|
||||
} // namespace sinic
|
||||
|
||||
#endif // __DEV_NET_SINIC_HH__
|
||||
|
||||
@@ -52,7 +52,9 @@
|
||||
static inline uint64_t set_##NAME(uint64_t reg, uint64_t val) \
|
||||
{ return (reg & ~NAME) | ((val << OFFSET) & NAME); }
|
||||
|
||||
namespace Sinic {
|
||||
GEM5_DEPRECATED_NAMESPACE(Sinic, sinic);
|
||||
namespace sinic
|
||||
{
|
||||
namespace Regs {
|
||||
|
||||
static const int VirtualShift = 8;
|
||||
@@ -232,6 +234,6 @@ regValid(Addr daddr)
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Sinic
|
||||
} // namespace sinic
|
||||
|
||||
#endif // __DEV_NET_SINICREG_HH__
|
||||
|
||||
Reference in New Issue
Block a user