|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2018 [email protected]
4: //
5:
6: #pragma once
7:
8: #include "device.h"
9: #include "scheduler.h"
10:
11: class SysClkDevice
12: : public IODevice
13: {
14: typedef IODevice inherited;
15: public:
16: SysClkDevice();
17: virtual ~SysClkDevice();
18:
19: virtual bool PowerOn();
20:
1.1.1.2 ! root 21: protected:
! 22: // BusIO インタフェース
! 23: static const uint32 NPORT = 1;
! 24: uint64 Read(uint32);
! 25: uint64 Write(uint32, uint32);
! 26: uint64 Peek(uint32);
1.1 root 27:
28: private:
29: // イベントコールバック
30: void Callback(int);
31:
1.1.1.2 ! root 32: // 割り込み状態をレジスタイメージにして返す
! 33: uint8 GetInt() const;
! 34:
1.1 root 35: // システムクロック割り込み有りなら true。
36: bool sysint = false;
37:
38: // 割り込みイベント
39: Event event {};
40: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.