From 1575efef4c6b517064fd22bd39e57effdfa53b05 Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary Date: Fri, 10 Mar 2017 17:44:32 +0530 Subject: video: tegra: nvmap: Add NVMAP_IOC_GET_AVAILABLE_HEAPS ioctl This new ioctl can be used to query which heaps are available on a particular platform. bug 1885017 Change-Id: Ib21bca63a419972c596e2a5ebc5bee3b35abef00 Signed-off-by: Sri Krishna chowdary Reviewed-on: http://git-master/r/1318720 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/nvmap.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/linux/nvmap.h') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index c133880d2..dc188087c 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -304,6 +304,10 @@ struct nvmap_set_tag_label { __u64 addr; /* in: pointer to label or NULL to remove */ }; +struct nvmap_available_heaps { + __u64 heaps; /* heaps bitmask */ +}; + #define NVMAP_IOC_MAGIC 'N' /* Creates a new memory handle. On input, the argument is the size of the new @@ -389,6 +393,9 @@ struct nvmap_set_tag_label { /* Define a label for allocation tag */ #define NVMAP_IOC_SET_TAG_LABEL _IOW(NVMAP_IOC_MAGIC, 24, struct nvmap_set_tag_label) +#define NVMAP_IOC_GET_AVAILABLE_HEAPS \ + _IOR(NVMAP_IOC_MAGIC, 25, struct nvmap_available_heaps) + /* START of T124 IOCTLS */ /* Actually allocates memory for the specified handle, with kind */ #define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) -- cgit v1.2.2