diff --git a/devices/ethernet/mace.cpp b/devices/ethernet/mace.cpp
index 4dffab0..f5c9358 100644
--- a/devices/ethernet/mace.cpp
+++ b/devices/ethernet/mace.cpp
@@ -26,6 +26,8 @@ along with this program. If not, see .
#include
+using namespace MaceEnet;
+
uint8_t MaceController::read(uint8_t reg_offset)
{
switch(reg_offset) {
diff --git a/devices/ethernet/mace.h b/devices/ethernet/mace.h
index 67358ee..d722453 100644
--- a/devices/ethernet/mace.h
+++ b/devices/ethernet/mace.h
@@ -32,6 +32,8 @@ along with this program. If not, see .
// MACE registers offsets
// Refer to the Am79C940 datasheet for details
+namespace MaceEnet {
+
enum MaceReg : uint8_t {
Rcv_FIFO = 0,
Xmit_FIFO = 1,
@@ -62,6 +64,8 @@ enum MaceReg : uint8_t {
Rsrvd_Test_2 = 0x1F, // not used in Macintosh?
};
+}; // namespace MaceEnet
+
class MaceController {
public:
MaceController(uint16_t id) { this->chip_id = id; };