Annotation of nono/vm/prom.h, revision 1.1

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 "ethernet.h"
        !            10: #include "rom.h"
        !            11: 
        !            12: class PROMDevice
        !            13:        : public ROMDevice
        !            14: {
        !            15:        using inherited = ROMDevice;
        !            16:  public:
        !            17:        PROMDevice();
        !            18:        ~PROMDevice() override;
        !            19: 
        !            20:        bool Init() override;
        !            21:        bool PowerOn() override;
        !            22: 
        !            23:        uint64 Read8(uint32 addr) override;
        !            24:        uint64 Write8(uint32 addr, uint32 data) override;
        !            25:        uint64 Write32(uint32 addr, uint32 data) override;
        !            26: 
        !            27:  private:
        !            28:        bool InitLuna();
        !            29:        bool InitLuna88k();
        !            30: 
        !            31:        uint64 start_time = 0;                          // パフォーマンス測定用
        !            32: };
        !            33: 
        !            34: extern std::unique_ptr<PROMDevice> gPROM;

unix.superglobalmegacorp.com

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