mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-25 18:29:49 +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 <loguru.hpp>
|
||||
|
||||
using namespace MeshScsi;
|
||||
|
||||
uint8_t MESHController::read(uint8_t 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
|
||||
#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; };
|
||||
|
Loading…
Reference in New Issue
Block a user