summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/gr3d/gr3d_t20.c
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/gr3d/gr3d_t20.c
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/gr3d/gr3d_t20.c')
-rw-r--r--drivers/video/tegra/host/gr3d/gr3d_t20.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/gr3d/gr3d_t20.c b/drivers/video/tegra/host/gr3d/gr3d_t20.c
index 88bb2be6b8a9..23cd1557c420 100644
--- a/drivers/video/tegra/host/gr3d/gr3d_t20.c
+++ b/drivers/video/tegra/host/gr3d/gr3d_t20.c
@@ -200,7 +200,7 @@ static void __init save_end_v0(struct host1x_hwctx_handler *h, u32 *ptr)
}
static u32 *save_regs_v0(u32 *ptr, unsigned int *pending,
- void __iomem *chan_regs,
+ struct nvhost_channel *ch,
const struct hwctx_reginfo *regs,
unsigned int nr_regs)
{
@@ -218,7 +218,7 @@ static u32 *save_regs_v0(u32 *ptr, unsigned int *pending,
ptr += RESTORE_INDIRECT_SIZE;
break;
}
- drain_result = host1x_drain_read_fifo(chan_regs,
+ drain_result = nvhost_channel_drain_read_fifo(ch,
ptr, count, pending);
BUG_ON(drain_result < 0);
ptr += count;
@@ -344,7 +344,7 @@ static void ctx3d_save_service(struct nvhost_hwctx *nctx)
u32 *ptr = (u32 *)ctx->restore_virt + RESTORE_BEGIN_SIZE;
unsigned int pending = 0;
- ptr = save_regs_v0(ptr, &pending, nctx->channel->aperture,
+ ptr = save_regs_v0(ptr, &pending, nctx->channel,
ctxsave_regs_3d_global,
ARRAY_SIZE(ctxsave_regs_3d_global));