logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

virtio_pmem.h (882B)


  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 <pagupta@redhat.com>
  8. */
  9. #ifndef _LINUX_VIRTIO_PMEM_H
  10. #define _LINUX_VIRTIO_PMEM_H
  11. #include <linux/types.h>
  12. #include <linux/virtio_ids.h>
  13. #include <linux/virtio_config.h>
  14. /* Feature bits */
  15. /* guest physical address range will be indicated as shared memory region 0 */
  16. #define VIRTIO_PMEM_F_SHMEM_REGION 0
  17. /* shmid of the shared memory region corresponding to the pmem */
  18. #define VIRTIO_PMEM_SHMEM_REGION_ID 0
  19. struct virtio_pmem_config {
  20. __le64 start;
  21. __le64 size;
  22. };
  23. #define VIRTIO_PMEM_REQ_TYPE_FLUSH 0
  24. struct virtio_pmem_resp {
  25. /* Host return status corresponding to flush request */
  26. __le32 ret;
  27. };
  28. struct virtio_pmem_req {
  29. /* command type */
  30. __le32 type;
  31. };
  32. #endif