summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/chip_support.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2012-06-15 07:43:07 +0300
committerSimone Willett <swillett@nvidia.com>2012-06-18 18:52:39 -0700
commit4624dd8bed05435978ae4381cbcfc0382726941c (patch)
tree776eadb190e03ebddd5e272360338eb40bf7b828 /drivers/video/tegra/host/chip_support.h
parent9923fdb793c254e9787cdae56cc0c4e4529f3c52 (diff)
video: tegra: host: Use chip_ops for save context
Call drain fifo and save context functions via nvhost_chip_support. Earlier client drivers called into host1x code directly, which makes each client driver SoC specific. Change-Id: I4f805abad21012e59e11bf6a98fa46441c71c51a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/109101 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/chip_support.h')
-rw-r--r--drivers/video/tegra/host/chip_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/chip_support.h b/drivers/video/tegra/host/chip_support.h
index c6860e611550..5bc0c9f63e1d 100644
--- a/drivers/video/tegra/host/chip_support.h
+++ b/drivers/video/tegra/host/chip_support.h
@@ -52,6 +52,10 @@ struct nvhost_chip_support {
struct nvhost_hwctx *hwctx,
u32 offset,
u32 *value);
+ int (*save_context)(struct nvhost_channel *channel);
+ int (*drain_read_fifo)(struct nvhost_channel *ch,
+ u32 *ptr, unsigned int count,
+ unsigned int *pending);
} channel;
struct {