aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/core/_tiomap.h
diff options
context:
space:
mode:
authorFernando Guzman Lugo <x0095840@ti.com>2010-10-05 16:35:35 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-05 18:30:50 -0400
commit0c10e91b6cc9d1c6a23e9eed3e0653f30b6eb3d3 (patch)
tree9ec7c65ebe8a2c450cf4e69cc650ab32b236a679 /drivers/staging/tidspbridge/core/_tiomap.h
parentfffa1cca3db6ac0ce612bc52f5cbd23b6672566f (diff)
staging: tidspbridge - move shared memory iommu maps to tiomap3430.c
Now iommu maps of shared memory segments are done in bridge_brd_start and unmaped in bridge_brd_stop. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/core/_tiomap.h')
-rw-r--r--drivers/staging/tidspbridge/core/_tiomap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/staging/tidspbridge/core/_tiomap.h b/drivers/staging/tidspbridge/core/_tiomap.h
index a42c3931fc7..c1bf95d756b 100644
--- a/drivers/staging/tidspbridge/core/_tiomap.h
+++ b/drivers/staging/tidspbridge/core/_tiomap.h
@@ -308,6 +308,18 @@ static const struct bpwr_clk_t bpwr_clks[] = {
308 308
309#define CLEAR_BIT_INDEX(reg, index) (reg &= ~(1 << (index))) 309#define CLEAR_BIT_INDEX(reg, index) (reg &= ~(1 << (index)))
310 310
311struct shm_segs {
312 u32 seg0_da;
313 u32 seg0_pa;
314 u32 seg0_va;
315 u32 seg0_size;
316 u32 seg1_da;
317 u32 seg1_pa;
318 u32 seg1_va;
319 u32 seg1_size;
320};
321
322
311/* This Bridge driver's device context: */ 323/* This Bridge driver's device context: */
312struct bridge_dev_context { 324struct bridge_dev_context {
313 struct dev_object *hdev_obj; /* Handle to Bridge device object. */ 325 struct dev_object *hdev_obj; /* Handle to Bridge device object. */
@@ -331,6 +343,7 @@ struct bridge_dev_context {
331 343
332 struct omap_mbox *mbox; /* Mail box handle */ 344 struct omap_mbox *mbox; /* Mail box handle */
333 struct iommu *dsp_mmu; /* iommu for iva2 handler */ 345 struct iommu *dsp_mmu; /* iommu for iva2 handler */
346 struct shm_segs sh_s;
334 struct cfg_hostres *resources; /* Host Resources */ 347 struct cfg_hostres *resources; /* Host Resources */
335 348
336 /* 349 /*