From 8d9691cc6f441756f19eb942f05fca37b15b5c24 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Wed, 9 Mar 2022 16:56:52 +0100 Subject: [PATCH] MESH: add MeshScsi namespace. --- devices/common/scsi/mesh.cpp | 2 ++ devices/common/scsi/mesh.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/devices/common/scsi/mesh.cpp b/devices/common/scsi/mesh.cpp index 2644b89..6eeea99 100644 --- a/devices/common/scsi/mesh.cpp +++ b/devices/common/scsi/mesh.cpp @@ -26,6 +26,8 @@ along with this program. If not, see . #include #include +using namespace MeshScsi; + uint8_t MESHController::read(uint8_t reg_offset) { switch(reg_offset) { diff --git a/devices/common/scsi/mesh.h b/devices/common/scsi/mesh.h index d0765ee..0cae9f8 100644 --- a/devices/common/scsi/mesh.h +++ b/devices/common/scsi/mesh.h @@ -29,6 +29,8 @@ along with this program. If not, see . // Chip ID returned by the MESH cell inside the Heathrow ASIC #define HeathrowMESHID 4 +namespace MeshScsi { + // MESH registers offsets enum MeshReg : uint8_t { XferCount0 = 0, @@ -49,6 +51,8 @@ enum MeshReg : uint8_t { SelTimeOut = 0xF }; +}; // namespace MeshScsi + class MESHController { public: MESHController(uint8_t mesh_id) { this->chip_id = mesh_id; };