Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause */
0002 /*
0003  * Definitions for virtio-pmem devices.
0004  *
0005  * Copyright (C) 2019 Red Hat, Inc.
0006  *
0007  * Author(s): Pankaj Gupta <pagupta@redhat.com>
0008  */
0009 
0010 #ifndef _UAPI_LINUX_VIRTIO_PMEM_H
0011 #define _UAPI_LINUX_VIRTIO_PMEM_H
0012 
0013 #include <linux/types.h>
0014 #include <linux/virtio_ids.h>
0015 #include <linux/virtio_config.h>
0016 
0017 struct virtio_pmem_config {
0018     __le64 start;
0019     __le64 size;
0020 };
0021 
0022 #define VIRTIO_PMEM_REQ_TYPE_FLUSH      0
0023 
0024 struct virtio_pmem_resp {
0025     /* Host return status corresponding to flush request */
0026     __le32 ret;
0027 };
0028 
0029 struct virtio_pmem_req {
0030     /* command type */
0031     __le32 type;
0032 };
0033 
0034 #endif