virtio_pmem.h 651 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) 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 <[email protected]>
  8. */
  9. #ifndef _UAPI_LINUX_VIRTIO_PMEM_H
  10. #define _UAPI_LINUX_VIRTIO_PMEM_H
  11. #include <linux/types.h>
  12. #include <linux/virtio_ids.h>
  13. #include <linux/virtio_config.h>
  14. struct virtio_pmem_config {
  15. __le64 start;
  16. __le64 size;
  17. };
  18. #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0
  19. struct virtio_pmem_resp {
  20. /* Host return status corresponding to flush request */
  21. __le32 ret;
  22. };
  23. struct virtio_pmem_req {
  24. /* command type */
  25. __le32 type;
  26. };
  27. #endif