xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/virtio_pmem.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker /*
2*8d67ca89SAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*8d67ca89SAndroid Build Coastguard Worker  *
4*8d67ca89SAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*8d67ca89SAndroid Build Coastguard Worker  * for more information.
6*8d67ca89SAndroid Build Coastguard Worker  */
7*8d67ca89SAndroid Build Coastguard Worker #ifndef _UAPI_LINUX_VIRTIO_PMEM_H
8*8d67ca89SAndroid Build Coastguard Worker #define _UAPI_LINUX_VIRTIO_PMEM_H
9*8d67ca89SAndroid Build Coastguard Worker #include <linux/types.h>
10*8d67ca89SAndroid Build Coastguard Worker #include <linux/virtio_ids.h>
11*8d67ca89SAndroid Build Coastguard Worker #include <linux/virtio_config.h>
12*8d67ca89SAndroid Build Coastguard Worker #define VIRTIO_PMEM_F_SHMEM_REGION 0
13*8d67ca89SAndroid Build Coastguard Worker #define VIRTIO_PMEM_SHMEM_REGION_ID 0
14*8d67ca89SAndroid Build Coastguard Worker struct virtio_pmem_config {
15*8d67ca89SAndroid Build Coastguard Worker   __le64 start;
16*8d67ca89SAndroid Build Coastguard Worker   __le64 size;
17*8d67ca89SAndroid Build Coastguard Worker };
18*8d67ca89SAndroid Build Coastguard Worker #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0
19*8d67ca89SAndroid Build Coastguard Worker struct virtio_pmem_resp {
20*8d67ca89SAndroid Build Coastguard Worker   __le32 ret;
21*8d67ca89SAndroid Build Coastguard Worker };
22*8d67ca89SAndroid Build Coastguard Worker struct virtio_pmem_req {
23*8d67ca89SAndroid Build Coastguard Worker   __le32 type;
24*8d67ca89SAndroid Build Coastguard Worker };
25*8d67ca89SAndroid Build Coastguard Worker #endif
26