summaryrefslogtreecommitdiff
path: root/src/dev/virtio/base.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/virtio/base.hh')
-rw-r--r--src/dev/virtio/base.hh14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/dev/virtio/base.hh b/src/dev/virtio/base.hh
index 4d4c16536..89c281f21 100644
--- a/src/dev/virtio/base.hh
+++ b/src/dev/virtio/base.hh
@@ -1,5 +1,5 @@
/*
- * 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
@@ -48,6 +48,8 @@
#include "sim/sim_object.hh"
struct VirtIODeviceBaseParams;
+struct VirtIODummyDeviceParams;
+
class VirtQueue;
/** @{
@@ -875,4 +877,14 @@ class VirtIODeviceBase : public SimObject
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__