diff options
author | Gajanan Bhat <gbhat@nvidia.com> | 2011-08-05 15:51:57 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-08-17 16:28:49 -0700 |
commit | 24256459b955c24697a85d8292a67f1b5d6b7305 (patch) | |
tree | 1e1cf4c72294f9a917537b925fdafc03b8efdbba /include | |
parent | f8c80f4ea8930af9e2e93765e635d84fe6e22575 (diff) |
media: tegra: nvavp: ucode loading in driver
Implementation to load the app ucode from driver
instead of each client instance maintaining copy
of common ucode.The driver will load and maintain
a single instance of the app ucode, but gives
ability to flag external ucode usage for every
submit call. The driver also caches both the os
and app ucode till driver is unloaded.
Change-Id: I96ad3c039bf96c621774d41b3f838ea6fbe52ae9
Reviewed-on: http://git-master/r/45872
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_nvavp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/tegra_nvavp.h b/include/linux/tegra_nvavp.h index 475a7beb44d4..c468014a8b9f 100644 --- a/include/linux/tegra_nvavp.h +++ b/include/linux/tegra_nvavp.h @@ -16,6 +16,10 @@ #define NVAVP_MAX_RELOCATION_COUNT 64 +/* avp submit flags */ +#define NVAVP_FLAG_NONE 0x00000000 +#define NVAVP_UCODE_EXT 0x00000001 /*use external ucode provided */ + struct nvavp_cmdbuf { __u32 mem; __u32 offset; @@ -39,6 +43,7 @@ struct nvavp_pushbuffer_submit_hdr { struct nvavp_reloc *relocs; __u32 num_relocs; struct nvavp_syncpt *syncpt; + __u32 flags; }; struct nvavp_set_nvmap_fd_args { |