|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: #pragma once
8:
9: #include "device.h"
10:
11: class OPMDevice
12: : public IODevice
13: {
14: using inherited = IODevice;
15: private:
16: static const int baseaddr = 0xe90000;
17:
18: public:
19: OPMDevice();
20: virtual ~OPMDevice() override;
21:
22: protected:
23: // BusIO インタフェース
24: static const uint32 NPORT = 2;
1.1.1.2 ! root 25: uint64 Read(uint32 offset);
! 26: uint64 Write(uint32 offset, uint32 data);
! 27: uint64 Peek(uint32 offset);
1.1 root 28: };
29:
30: extern std::unique_ptr<OPMDevice> gOPM;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.