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

1.1       root        1: //
                      2: // nono
1.1.1.4   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.7 ! root       12: class SIODevice : public uPD7201Device
1.1       root       13: {
1.1.1.4   root       14:        using inherited = uPD7201Device;
1.1       root       15:  public:
                     16:        SIODevice();
1.1.1.5   root       17:        virtual ~SIODevice() override;
1.1       root       18: 
1.1.1.6   root       19:        // BusIO インタフェース
                     20:        // (内蔵 ROM からのアクセス用に特別に public にしてある)
                     21:        uint64 Read(uint32 offset);
                     22:        uint64 Write(uint32 offset, uint32 data);
1.1       root       23: 
1.1.1.3   root       24:  protected:
                     25:        // BusIO インタフェース
                     26:        static const uint32 NPORT = 4;
1.1.1.6   root       27:        uint64 Peek(uint32 offset);
1.1       root       28: 
                     29:  private:
1.1.1.4   root       30:        void Interrupt() override;
1.1       root       31: };
                     32: 
1.1.1.3   root       33: extern std::unique_ptr<SIODevice> gSIO;

unix.superglobalmegacorp.com

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