Pankaj Gupta | 6e84200 | 2019-07-05 19:33:23 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ |
| 2 | /* |
| 3 | * Definitions for virtio-pmem devices. |
| 4 | * |
| 5 | * Copyright (C) 2019 Red Hat, Inc. |
| 6 | * |
| 7 | * Author(s): Pankaj Gupta <pagupta@redhat.com> |
| 8 | */ |
| 9 | |
| 10 | #ifndef _UAPI_LINUX_VIRTIO_PMEM_H |
| 11 | #define _UAPI_LINUX_VIRTIO_PMEM_H |
| 12 | |
| 13 | #include <linux/types.h> |
| 14 | #include <linux/virtio_ids.h> |
| 15 | #include <linux/virtio_config.h> |
| 16 | |
| 17 | struct virtio_pmem_config { |
| 18 | __u64 start; |
| 19 | __u64 size; |
| 20 | }; |
| 21 | |
| 22 | #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0 |
| 23 | |
| 24 | struct virtio_pmem_resp { |
| 25 | /* Host return status corresponding to flush request */ |
Pankaj Gupta | 8c2e408 | 2019-07-12 10:46:10 +0530 | [diff] [blame] | 26 | __le32 ret; |
Pankaj Gupta | 6e84200 | 2019-07-05 19:33:23 +0530 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | struct virtio_pmem_req { |
| 30 | /* command type */ |
Pankaj Gupta | 8c2e408 | 2019-07-12 10:46:10 +0530 | [diff] [blame] | 31 | __le32 type; |
Pankaj Gupta | 6e84200 | 2019-07-05 19:33:23 +0530 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | #endif |