--- nono/vm/lance.h 2026/04/29 17:04:32 1.1.1.2 +++ nono/vm/lance.h 2026/04/29 17:04:39 1.1.1.4 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -137,7 +138,7 @@ struct AM7990 class LanceDevice : public EthernetDevice { - typedef EthernetDevice inherited; + using inherited = EthernetDevice; public: static const uint32 REQ_TXIDLE = 0x00000001; // ポーリングフェーズ static const uint32 REQ_TXCOPY = 0x00000002; // バッファ読込フェーズ @@ -152,18 +153,18 @@ class LanceDevice public: LanceDevice(); - virtual ~LanceDevice(); + ~LanceDevice() override; - virtual bool Init(); - virtual void ResetHard(); + bool Init() override; + void ResetHard() override; - virtual bool MonitorUpdate(); + void MonitorUpdate(TextScreen&) override; // ワーカスレッド (エントリポイントから呼ばれる) void ThreadRun(); // パケットを受信した (ホストネットワークスレッドから呼ばれる) - virtual bool RecvPacket(qvector& buf); + bool RecvPacket(qvector& buf) override; protected: // BusIO インタフェース @@ -179,7 +180,8 @@ class LanceDevice // スレッドの終了を指示 void Terminate(); - void MonitorReg(int x, int y, uint32 data, const char * const * names); + void MonitorReg(TextScreen&, + int x, int y, uint32 data, const char * const * names); uint32 ReadData(); void WriteData(uint32 data);