mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-26 09:29:28 +00:00
MESH: add MeshScsi namespace.
This commit is contained in:
parent
3235018260
commit
e913f39812
@ -26,6 +26,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <loguru.hpp>
|
#include <loguru.hpp>
|
||||||
|
|
||||||
|
using namespace MeshScsi;
|
||||||
|
|
||||||
uint8_t MESHController::read(uint8_t reg_offset)
|
uint8_t MESHController::read(uint8_t reg_offset)
|
||||||
{
|
{
|
||||||
switch(reg_offset) {
|
switch(reg_offset) {
|
||||||
|
@ -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
|
// Chip ID returned by the MESH cell inside the Heathrow ASIC
|
||||||
#define HeathrowMESHID 4
|
#define HeathrowMESHID 4
|
||||||
|
|
||||||
|
namespace MeshScsi {
|
||||||
|
|
||||||
// MESH registers offsets
|
// MESH registers offsets
|
||||||
enum MeshReg : uint8_t {
|
enum MeshReg : uint8_t {
|
||||||
XferCount0 = 0,
|
XferCount0 = 0,
|
||||||
@ -49,6 +51,8 @@ enum MeshReg : uint8_t {
|
|||||||
SelTimeOut = 0xF
|
SelTimeOut = 0xF
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}; // namespace MeshScsi
|
||||||
|
|
||||||
class MESHController {
|
class MESHController {
|
||||||
public:
|
public:
|
||||||
MESHController(uint8_t mesh_id) { this->chip_id = mesh_id; };
|
MESHController(uint8_t mesh_id) { this->chip_id = mesh_id; };
|
||||||
|
Loading…
Reference in New Issue
Block a user