master
h 34 lines 770 Bytes
Raw
1 /*
2 * Virtio MEM CCW device
3 *
4 * Copyright (C) 2024 Red Hat, Inc.
5 *
6 * Authors:
7 * David Hildenbrand <david@redhat.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2.
10 * See the COPYING file in the top-level directory.
11 */
12
13 #ifndef HW_S390X_VIRTIO_CCW_MEM_H
14 #define HW_S390X_VIRTIO_CCW_MEM_H
15
16 #include "virtio-ccw-md.h"
17 #include "hw/virtio/virtio-mem.h"
18 #include "qom/object.h"
19
20 typedef struct VirtIOMEMCcw VirtIOMEMCcw;
21
22 /*
23 * virtio-mem-ccw: This extends VirtIOMDCcw
24 */
25 #define TYPE_VIRTIO_MEM_CCW "virtio-mem-ccw"
26 DECLARE_INSTANCE_CHECKER(VirtIOMEMCcw, VIRTIO_MEM_CCW, TYPE_VIRTIO_MEM_CCW)
27
28 struct VirtIOMEMCcw {
29 VirtIOMDCcw parent_obj;
30 VirtIOMEM vdev;
31 Notifier size_change_notifier;
32 };
33
34 #endif /* HW_S390X_VIRTIO_CCW_MEM_H */