target/sh4: Remove MMU_MODE{0,1}_SUFFIX
[qemu/ar7.git] / hw / virtio / virtio-input-host-pci.c
bloba82eb5d914f948c6c0b2b4121dbe14bd1d1d05b1
1 /*
2 * Virtio input host PCI Bindings
4 * This work is licensed under the terms of the GNU GPL, version 2 or
5 * (at your option) any later version. See the COPYING file in the
6 * top-level directory.
7 */
9 #include "qemu/osdep.h"
11 #include "virtio-pci.h"
12 #include "hw/virtio/virtio-input.h"
13 #include "qemu/module.h"
15 typedef struct VirtIOInputHostPCI VirtIOInputHostPCI;
17 #define TYPE_VIRTIO_INPUT_HOST_PCI "virtio-input-host-pci"
18 #define VIRTIO_INPUT_HOST_PCI(obj) \
19 OBJECT_CHECK(VirtIOInputHostPCI, (obj), TYPE_VIRTIO_INPUT_HOST_PCI)
21 struct VirtIOInputHostPCI {
22 VirtIOPCIProxy parent_obj;
23 VirtIOInputHost vdev;
26 static void virtio_host_initfn(Object *obj)
28 VirtIOInputHostPCI *dev = VIRTIO_INPUT_HOST_PCI(obj);
30 virtio_instance_init_common(obj, &dev->vdev, sizeof(dev->vdev),
31 TYPE_VIRTIO_INPUT_HOST);
34 static const VirtioPCIDeviceTypeInfo virtio_input_host_pci_info = {
35 .generic_name = TYPE_VIRTIO_INPUT_HOST_PCI,
36 .parent = TYPE_VIRTIO_INPUT_PCI,
37 .instance_size = sizeof(VirtIOInputHostPCI),
38 .instance_init = virtio_host_initfn,
41 static void virtio_input_host_pci_register(void)
43 virtio_pci_types_register(&virtio_input_host_pci_info);
46 type_init(virtio_input_host_pci_register)