diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-02-16 22:36:15 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-02-26 13:04:04 +0100 |
commit | 3e96b2db080db986b813b58228e2553621b4b675 (patch) | |
tree | 97aa5a7e50f8f71f85c49a30a3fa2be823a907fe | |
parent | b93a5ba3d1e840feef70a9cd367c6818ac63911e (diff) |
virtio-rng: use standard-headers
Drop duplicated code.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
-rw-r--r-- | include/hw/virtio/virtio-rng.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index 14e85a5a3a..7702ff4749 100644 --- a/include/hw/virtio/virtio-rng.h +++ b/include/hw/virtio/virtio-rng.h @@ -14,6 +14,7 @@ #include "sysemu/rng.h" #include "sysemu/rng-random.h" +#include "standard-headers/linux/virtio_rng.h" #define TYPE_VIRTIO_RNG "virtio-rng-device" #define VIRTIO_RNG(obj) \ @@ -21,9 +22,6 @@ #define VIRTIO_RNG_GET_PARENT_CLASS(obj) \ OBJECT_GET_PARENT_CLASS(obj, TYPE_VIRTIO_RNG) -/* The Virtio ID for the virtio rng device */ -#define VIRTIO_ID_RNG 4 - struct VirtIORNGConf { RngBackend *rng; uint64_t max_bytes; |