aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/include
diff options
context:
space:
mode:
authorFernando Guzman Lugo <x0095840@ti.com>2010-10-05 16:35:36 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-05 18:30:57 -0400
commit4dd1944ab7242d76534c97d5fef0ce541a2f1040 (patch)
tree33d37002e39bc57be95976fcc576bf52139e6c21 /drivers/staging/tidspbridge/include
parent0c10e91b6cc9d1c6a23e9eed3e0653f30b6eb3d3 (diff)
staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name
Now these functions only map user space addresses to dsp virtual addresses, so now the functions have a more meaningful name. Also now user_to_dsp_map returns the mapped address. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/include')
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dspdefs.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
index 173dfbb4201..61536347481 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
@@ -162,48 +162,6 @@ typedef int(*fxn_brd_memwrite) (struct bridge_dev_context
162 u32 mem_type); 162 u32 mem_type);
163 163
164/* 164/*
165 * ======== bridge_brd_mem_map ========
166 * Purpose:
167 * Map a MPU memory region to a DSP/IVA memory space
168 * Parameters:
169 * dev_ctxt: Handle to Bridge driver defined device info.
170 * ul_mpu_addr: MPU memory region start address.
171 * virt_addr: DSP/IVA memory region u8 address.
172 * ul_num_bytes: Number of bytes to map.
173 * map_attrs: Mapping attributes (e.g. endianness).
174 * Returns:
175 * 0: Success.
176 * -EPERM: Other, unspecified error.
177 * Requires:
178 * dev_ctxt != NULL;
179 * Ensures:
180 */
181typedef int(*fxn_brd_memmap) (struct bridge_dev_context
182 * dev_ctxt, u32 ul_mpu_addr,
183 u32 virt_addr, u32 ul_num_bytes,
184 u32 map_attr,
185 struct page **mapped_pages);
186
187/*
188 * ======== bridge_brd_mem_un_map ========
189 * Purpose:
190 * UnMap an MPU memory region from DSP/IVA memory space
191 * Parameters:
192 * dev_ctxt: Handle to Bridge driver defined device info.
193 * virt_addr: DSP/IVA memory region u8 address.
194 * ul_num_bytes: Number of bytes to unmap.
195 * Returns:
196 * 0: Success.
197 * -EPERM: Other, unspecified error.
198 * Requires:
199 * dev_ctxt != NULL;
200 * Ensures:
201 */
202typedef int(*fxn_brd_memunmap) (struct bridge_dev_context
203 * dev_ctxt,
204 u32 da);
205
206/*
207 * ======== bridge_brd_stop ======== 165 * ======== bridge_brd_stop ========
208 * Purpose: 166 * Purpose:
209 * Bring board to the BRD_STOPPED state. 167 * Bring board to the BRD_STOPPED state.
@@ -993,8 +951,6 @@ struct bridge_drv_interface {
993 fxn_brd_setstate pfn_brd_set_state; /* Sets the Board State */ 951 fxn_brd_setstate pfn_brd_set_state; /* Sets the Board State */
994 fxn_brd_memcopy pfn_brd_mem_copy; /* Copies DSP Memory */ 952 fxn_brd_memcopy pfn_brd_mem_copy; /* Copies DSP Memory */
995 fxn_brd_memwrite pfn_brd_mem_write; /* Write DSP Memory w/o halt */ 953 fxn_brd_memwrite pfn_brd_mem_write; /* Write DSP Memory w/o halt */
996 fxn_brd_memmap pfn_brd_mem_map; /* Maps MPU mem to DSP mem */
997 fxn_brd_memunmap pfn_brd_mem_un_map; /* Unmaps MPU mem to DSP mem */
998 fxn_chnl_create pfn_chnl_create; /* Create channel manager. */ 954 fxn_chnl_create pfn_chnl_create; /* Create channel manager. */
999 fxn_chnl_destroy pfn_chnl_destroy; /* Destroy channel manager. */ 955 fxn_chnl_destroy pfn_chnl_destroy; /* Destroy channel manager. */
1000 fxn_chnl_open pfn_chnl_open; /* Create a new channel. */ 956 fxn_chnl_open pfn_chnl_open; /* Create a new channel. */