pcidevice.hh
来自「一个mips虚拟机非常好代码,使用C++来编写的,希望大家多学学,」· HH 代码 · 共 21 行
HH
21 行
#ifndef pcidevice_hh_included#define pcidevice_hh_included#include <device.hh>class PCIDevice : public Device{public: const UInt16 vendor_id, device_id, class_id; UInt32 bar[6]; UInt8 irq; explicit PCIDevice(int w, UInt16 vendor, UInt16 device, UInt16 pciclass) : Device(w), vendor_id(vendor), device_id(device), class_id(pciclass) { } virtual void init(Bus *bus, InterruptSink *intctrl, UInt64 base_address, UInt64 size, int base_irq) = 0;};#endif // pcidevice_hh_included
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?