diff options
| author | Sri Krishna chowdary <schowdary@nvidia.com> | 2017-03-10 07:14:32 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-16 02:45:29 -0400 |
| commit | 1575efef4c6b517064fd22bd39e57effdfa53b05 (patch) | |
| tree | 7cdb05b51f3eda0ae53c66ac5ea43ae4b34e7e1b /include/linux/nvmap.h | |
| parent | 3f93e7baa7950750fd9a8eabb45ab075d9bd2aa7 (diff) | |
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 <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/1318720
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
| -rw-r--r-- | include/linux/nvmap.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 { | |||
| 304 | __u64 addr; /* in: pointer to label or NULL to remove */ | 304 | __u64 addr; /* in: pointer to label or NULL to remove */ |
| 305 | }; | 305 | }; |
| 306 | 306 | ||
| 307 | struct nvmap_available_heaps { | ||
| 308 | __u64 heaps; /* heaps bitmask */ | ||
| 309 | }; | ||
| 310 | |||
| 307 | #define NVMAP_IOC_MAGIC 'N' | 311 | #define NVMAP_IOC_MAGIC 'N' |
| 308 | 312 | ||
| 309 | /* Creates a new memory handle. On input, the argument is the size of the new | 313 | /* Creates a new memory handle. On input, the argument is the size of the new |
| @@ -389,6 +393,9 @@ struct nvmap_set_tag_label { | |||
| 389 | /* Define a label for allocation tag */ | 393 | /* Define a label for allocation tag */ |
| 390 | #define NVMAP_IOC_SET_TAG_LABEL _IOW(NVMAP_IOC_MAGIC, 24, struct nvmap_set_tag_label) | 394 | #define NVMAP_IOC_SET_TAG_LABEL _IOW(NVMAP_IOC_MAGIC, 24, struct nvmap_set_tag_label) |
| 391 | 395 | ||
| 396 | #define NVMAP_IOC_GET_AVAILABLE_HEAPS \ | ||
| 397 | _IOR(NVMAP_IOC_MAGIC, 25, struct nvmap_available_heaps) | ||
| 398 | |||
| 392 | /* START of T124 IOCTLS */ | 399 | /* START of T124 IOCTLS */ |
| 393 | /* Actually allocates memory for the specified handle, with kind */ | 400 | /* Actually allocates memory for the specified handle, with kind */ |
| 394 | #define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) | 401 | #define NVMAP_IOC_ALLOC_KIND _IOW(NVMAP_IOC_MAGIC, 100, struct nvmap_alloc_kind_handle) |
