summaryrefslogtreecommitdiffstats
path: root/hw/s390x/virtio-ccw-crypto.c
diff options
context:
space:
mode:
authorPaolo Bonzini2022-03-28 09:33:15 +0200
committerPaolo Bonzini2022-04-06 14:31:56 +0200
commit7da50d6411eede9eb1ff90ba85c30aa748ac4883 (patch)
tree0240c98924f1aaa8f01967e151b710c68cac52c5 /hw/s390x/virtio-ccw-crypto.c
parentvirtio-ccw: move vhost_ccw_scsi to a separate file (diff)
downloadqemu-7da50d6411eede9eb1ff90ba85c30aa748ac4883.tar.gz
qemu-7da50d6411eede9eb1ff90ba85c30aa748ac4883.tar.xz
qemu-7da50d6411eede9eb1ff90ba85c30aa748ac4883.zip
virtio-ccw: move device type declarations to .c files
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/s390x/virtio-ccw-crypto.c')
-rw-r--r--hw/s390x/virtio-ccw-crypto.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw-crypto.c b/hw/s390x/virtio-ccw-crypto.c
index 358c74fb4b..0fa2f89443 100644
--- a/hw/s390x/virtio-ccw-crypto.c
+++ b/hw/s390x/virtio-ccw-crypto.c
@@ -14,6 +14,15 @@
#include "qapi/error.h"
#include "qemu/module.h"
#include "virtio-ccw.h"
+#include "hw/virtio/virtio-crypto.h"
+
+#define TYPE_VIRTIO_CRYPTO_CCW "virtio-crypto-ccw"
+OBJECT_DECLARE_SIMPLE_TYPE(VirtIOCryptoCcw, VIRTIO_CRYPTO_CCW)
+
+struct VirtIOCryptoCcw {
+ VirtioCcwDevice parent_obj;
+ VirtIOCrypto vdev;
+};
static void virtio_ccw_crypto_realize(VirtioCcwDevice *ccw_dev, Error **errp)
{