From e12597fb98af0c4e9618c22aec0cc72dabffe54b Mon Sep 17 00:00:00 2001 From: Chris Goldsworthy Date: Thu, 1 Sep 2022 14:47:53 -0700 Subject: [PATCH] virtio/virtio_mem: Port qti_virtio_mem UAPI header from msm-5.15 Bring the qti_virtio_mem UAPI header from msm-5.15, taken from commit 957fe56b98e0 ("Merge "sched/walt: disable cpu packing when current freq is high""). Change-Id: If3511d61075498f596ee2de5cba0a49108154d42 Signed-off-by: Chris Goldsworthy --- include/uapi/linux/qti_virtio_mem.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/uapi/linux/qti_virtio_mem.h diff --git a/include/uapi/linux/qti_virtio_mem.h b/include/uapi/linux/qti_virtio_mem.h new file mode 100644 index 000000000000..297581585c26 --- /dev/null +++ b/include/uapi/linux/qti_virtio_mem.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#ifndef _UAPI_LINUX_QTI_VIRTIO_MEM_H +#define _UAPI_LINUX_QTI_VIRTIO_MEM_H + +#include +#include + +#define QTI_VIRTIO_MEM_IOC_MAGIC 'M' + +#define QTI_VIRTIO_MEM_IOC_MAX_NAME_LEN 128 +struct qti_virtio_mem_ioc_hint_create_arg { + char name[QTI_VIRTIO_MEM_IOC_MAX_NAME_LEN]; + __s64 size; + __u32 fd; + __u32 reserved0; + __u64 reserved1; +}; + +#define QTI_VIRTIO_MEM_IOC_HINT_CREATE \ + _IOWR(QTI_VIRTIO_MEM_IOC_MAGIC, 0, \ + struct qti_virtio_mem_ioc_hint_create_arg) + + +#endif /* _UAPI_LINUX_QTI_VIRTIO_MEM_H */