MESH: add MeshScsi namespace.

This commit is contained in:
Maxim Poliakovski 2022-03-09 16:56:52 +01:00
parent 3235018260
commit e913f39812
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <cinttypes>
#include <loguru.hpp>
using namespace MeshScsi;
uint8_t MESHController::read(uint8_t reg_offset)
{
switch(reg_offset) {

View File

@ -29,6 +29,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
// 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; };