|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2022 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // NWS-1750 のキーボードコントローラ(予定地)
9: //
10:
11: #pragma once
12:
13: #include "device.h"
14:
15: class KBCDevice : public IODevice
16: {
17: using inherited = IODevice;
18:
19: // レジスタ
20: static const uint32 KEYDATA = 0;
21: static const uint32 KEYSTAT = 1;
22: static const uint32 KEYINTE = 2;
23: static const uint32 KEYRESET = 3;
24: static const uint32 KEYBUZZ = 4;
25: static const uint32 MSDATA = 5;
26: static const uint32 MSINTE = 6;
27: static const uint32 MSRESET = 7;
28:
29: public:
30: KBCDevice();
31: ~KBCDevice() override;
32:
1.1.1.3 ! root 33: protected:
! 34: // BusIO インタフェース
! 35: // 何も分からないのでとりあえず適当に折り返しておく
! 36: static const uint32 NPORT = 8;
! 37: busdata ReadPort(uint32 offset);
! 38: busdata WritePort(uint32 offset, uint32 data);
! 39: busdata PeekPort(uint32 offset);
! 40: bool PokePort(uint32 offset, uint32 data);
1.1 root 41: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.