# -*- mode:python -*-
-# Copyright (c) 2014 ARM Limited
+# Copyright (c) 2014, 2016 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
system = Param.System(Parent.any, "system object")
+class VirtIODummyDevice(VirtIODeviceBase):
+ type = 'VirtIODummyDevice'
+ cxx_header = 'dev/virtio/base.hh'
+
class PciVirtIO(PciDevice):
type = 'PciVirtIO'
cxx_header = 'dev/virtio/pci.hh'
- vio = Param.VirtIODeviceBase("VirtIO device")
+ vio = Param.VirtIODeviceBase(VirtIODummyDevice(), "VirtIO device")
VendorID = 0x1AF4
SubsystemVendorID = VendorID;
/*
- * Copyright (c) 2014 ARM Limited
+ * Copyright (c) 2014, 2016 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
#include "debug/VIO.hh"
#include "params/VirtIODeviceBase.hh"
+#include "params/VirtIODummyDevice.hh"
VirtDescriptor::VirtDescriptor(PortProxy &_memProxy, VirtQueue &_queue,
Index descIndex)
{
_queues.push_back(&queue);
}
+
+
+VirtIODummyDevice::VirtIODummyDevice(VirtIODummyDeviceParams *params)
+ : VirtIODeviceBase(params, ID_INVALID, 0, 0)
+{
+}
+
+VirtIODummyDevice *
+VirtIODummyDeviceParams::create()
+{
+ return new VirtIODummyDevice(this);
+}
/*
- * Copyright (c) 2014 ARM Limited
+ * Copyright (c) 2014, 2016 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
#include "sim/sim_object.hh"
struct VirtIODeviceBaseParams;
+struct VirtIODummyDeviceParams;
+
class VirtQueue;
/** @{
Callback *transKick;
};
+class VirtIODummyDevice : public VirtIODeviceBase
+{
+ public:
+ VirtIODummyDevice(VirtIODummyDeviceParams *params);
+
+ protected:
+ /** VirtIO device ID */
+ static const DeviceId ID_INVALID = 0x00;
+};
+
#endif // __DEV_VIRTIO_BASE_HH__