diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-06-15 07:43:07 +0300 |
---|---|---|
committer | Bo Yan <byan@nvidia.com> | 2012-07-05 09:16:16 -0700 |
commit | 0ab6edd33871d169b96d8b9f46e7d2f762182c21 (patch) | |
tree | 2e01a2ed062bf0a79083876bd0b724a6bff0b551 /drivers/video/tegra/host/chip_support.h | |
parent | 6d35c404aaf9ea475f605a3010ac4c12eccea475 (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
(cherry picked from commit 4624dd8bed05435978ae4381cbcfc0382726941c)
Reviewed-on: http://git-master/r/110033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/chip_support.h')
-rw-r--r-- | drivers/video/tegra/host/chip_support.h | 4 |
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 c34b72c5f7ad..932136b631b9 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 { |