Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / virtio_pmem.h
blobede4f3564977dcd477e386c51c2a73a11dac43a2
1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause */
2 /*
3 * Definitions for virtio-pmem devices.
5 * Copyright (C) 2019 Red Hat, Inc.
7 * Author(s): Pankaj Gupta <pagupta@redhat.com>
8 */
10 #ifndef _UAPI_LINUX_VIRTIO_PMEM_H
11 #define _UAPI_LINUX_VIRTIO_PMEM_H
13 #include <linux/types.h>
14 #include <linux/virtio_ids.h>
15 #include <linux/virtio_config.h>
17 /* Feature bits */
18 /* guest physical address range will be indicated as shared memory region 0 */
19 #define VIRTIO_PMEM_F_SHMEM_REGION 0
21 /* shmid of the shared memory region corresponding to the pmem */
22 #define VIRTIO_PMEM_SHMEM_REGION_ID 0
24 struct virtio_pmem_config {
25 __le64 start;
26 __le64 size;
29 #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0
31 struct virtio_pmem_resp {
32 /* Host return status corresponding to flush request */
33 __le32 ret;
36 struct virtio_pmem_req {
37 /* command type */
38 __le32 type;
41 #endif