|
|
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:
1.1.1.3 ! root 11: class OPMDevice : public IODevice
1.1 root 12: {
13: using inherited = IODevice;
14: private:
15: static const int baseaddr = 0xe90000;
16:
17: public:
18: OPMDevice();
19: virtual ~OPMDevice() override;
20:
21: protected:
22: // BusIO インタフェース
23: static const uint32 NPORT = 2;
1.1.1.2 root 24: uint64 Read(uint32 offset);
25: uint64 Write(uint32 offset, uint32 data);
26: uint64 Peek(uint32 offset);
1.1 root 27: };
28:
29: 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.