From 24256459b955c24697a85d8292a67f1b5d6b7305 Mon Sep 17 00:00:00 2001 From: Gajanan Bhat Date: Fri, 5 Aug 2011 15:51:57 -0700 Subject: 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 Reviewed-by: Scott Williams Reviewed-by: Krishna Reddy Reviewed-by: Kaz Fukuoka Reviewed-by: Yu-Huan Hsu --- include/linux/tegra_nvavp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 { -- cgit v1.2.3