Annotation of nono/vm/scc.h, revision 1.1.1.7

1.1       root        1: //
                      2: // nono
1.1.1.3   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
                      7: #pragma once
                      8: 
                      9: #include "device.h"
                     10: #include "upd7201.h"
                     11: 
1.1.1.6   root       12: class SCCDevice : public uPD7201Device
1.1       root       13: {
1.1.1.3   root       14:        using inherited = uPD7201Device;
1.1       root       15:  private:
                     16:        static const int baseaddr = 0xe98000;
                     17: 
                     18:  public:
                     19:        SCCDevice();
1.1.1.4   root       20:        virtual ~SCCDevice() override;
1.1       root       21: 
                     22:        // XXX 親の同名メソッドと名前分けたほうがいいか
1.1.1.3   root       23:        uint8 ReadCtrl(struct SIO::channel *chan) override;
                     24:        void WriteCtrl(struct SIO::channel *chan, uint32 data) override;
1.1       root       25: 
1.1.1.4   root       26:        // 割り込みアクノリッジ
                     27:        int InterruptAcknowledge();
1.1.1.2   root       28: 
1.1.1.3   root       29:  protected:
                     30:        // BusIO インタフェース
                     31:        static const uint32 NPORT = 4;
1.1.1.5   root       32:        uint64 Read(uint32 offset);
                     33:        uint64 Write(uint32 offset, uint32 data);
                     34:        uint64 Peek(uint32 offset);
1.1.1.4   root       35: 
                     36:  private:
                     37:        void Interrupt() override;
1.1.1.7 ! root       38:        void WriteCR5(struct SIO::channel *chan, uint32 data) override;
1.1       root       39: };
1.1.1.2   root       40: 
                     41: extern std::unique_ptr<SCCDevice> gSCC;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.