aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/include
diff options
context:
space:
mode:
authorRene Sapiens <rene.sapiens@ti.com>2010-07-09 22:24:03 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 13:45:36 -0400
commit13b18c29ec01068dce4b266cc179d4e90e79d0e9 (patch)
tree1ce214748543368d31d4de8cdb4a30eef0c2e77b /drivers/staging/tidspbridge/include
parentfb6aabb7f8b64aef7c4376b6cd4b760a62f75c5b (diff)
staging: ti dspbridge: Rename words with camel case.
The intention of this patch is to rename the remaining variables with camel case. Variables will be renamed avoiding camel case and Hungarian notation. The words to be renamed in this patch are: ======================================== pPhysAddr to phys_addr pPhysicalAddress to physical_address ppIntfFxns to if_fxns pProcLoadStat to proc_load_stat pProcStat to proc_lstat ppSym to sym_val pRefData to ref_data pRef to ref preservedBit to preserved_bit pResult to result procID to proc_id pSectInfo to sect_inf pSrc to src pstrContent to str_content pstrDummyFile to str_dummy_file pstrExecFile to str_exec_file ======================================== Signed-off-by: Rene Sapiens <rene.sapiens@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/cfg.h10
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/cod.h8
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dbll.h4
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dblldefs.h12
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dev.h10
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/drv.h10
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dspapi.h4
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dspdefs.h4
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dspio.h2
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/io_sm.h6
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/proc.h4
11 files changed, 37 insertions, 37 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cfg.h b/drivers/staging/tidspbridge/include/dspbridge/cfg.h
index 6fdd229cfa2..98cadb17cfa 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/cfg.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/cfg.h
@@ -100,20 +100,20 @@ extern int cfg_get_dev_object(IN struct cfg_devnode *dev_node_obj,
100 * Parameters: 100 * Parameters:
101 * dev_node_obj: Handle to the dev_node who's driver we are querying. 101 * dev_node_obj: Handle to the dev_node who's driver we are querying.
102 * buf_size: Size of buffer. 102 * buf_size: Size of buffer.
103 * pstrExecFile: Ptr to character buf to hold ExecFile. 103 * str_exec_file: Ptr to character buf to hold ExecFile.
104 * Returns: 104 * Returns:
105 * 0: Success. 105 * 0: Success.
106 * -EFAULT: dev_node_obj is invalid or pstrExecFile is invalid. 106 * -EFAULT: dev_node_obj is invalid or str_exec_file is invalid.
107 * -ENODATA: The resource is not available. 107 * -ENODATA: The resource is not available.
108 * Requires: 108 * Requires:
109 * CFG initialized. 109 * CFG initialized.
110 * Ensures: 110 * Ensures:
111 * 0: Not more than buf_size bytes were copied into pstrExecFile, 111 * 0: Not more than buf_size bytes were copied into str_exec_file,
112 * and *pstrExecFile contains default executable for this 112 * and *str_exec_file contains default executable for this
113 * devnode. 113 * devnode.
114 */ 114 */
115extern int cfg_get_exec_file(IN struct cfg_devnode *dev_node_obj, 115extern int cfg_get_exec_file(IN struct cfg_devnode *dev_node_obj,
116 IN u32 buf_size, OUT char *pstrExecFile); 116 IN u32 buf_size, OUT char *str_exec_file);
117 117
118/* 118/*
119 * ======== cfg_get_object ======== 119 * ======== cfg_get_object ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cod.h b/drivers/staging/tidspbridge/include/dspbridge/cod.h
index 0cc1bd2bffd..f8cbb21c182 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/cod.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/cod.h
@@ -350,7 +350,7 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
350 * Parameters: 350 * Parameters:
351 * cod_mgr_obj - manager in which to search for the symbol 351 * cod_mgr_obj - manager in which to search for the symbol
352 * pstrSect - name of the section, with or without leading "." 352 * pstrSect - name of the section, with or without leading "."
353 * pstrContent - buffer to store content of the section. 353 * str_content - buffer to store content of the section.
354 * Returns: 354 * Returns:
355 * 0: on success, error code on failure 355 * 0: on success, error code on failure
356 * -ESPIPE: Symbols have not been loaded onto the board. 356 * -ESPIPE: Symbols have not been loaded onto the board.
@@ -358,12 +358,12 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
358 * COD module initialized. 358 * COD module initialized.
359 * valid cod_mgr_obj. 359 * valid cod_mgr_obj.
360 * pstrSect != NULL; 360 * pstrSect != NULL;
361 * pstrContent != NULL; 361 * str_content != NULL;
362 * Ensures: 362 * Ensures:
363 * 0: *pstrContent stores the content of the named section. 363 * 0: *str_content stores the content of the named section.
364 */ 364 */
365extern int cod_read_section(struct cod_libraryobj *lib, 365extern int cod_read_section(struct cod_libraryobj *lib,
366 IN char *pstrSect, 366 IN char *pstrSect,
367 OUT char *pstrContent, IN u32 content_size); 367 OUT char *str_content, IN u32 content_size);
368 368
369#endif /* COD_ */ 369#endif /* COD_ */
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbll.h b/drivers/staging/tidspbridge/include/dspbridge/dbll.h
index 63785558e35..a4dea0c110d 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dbll.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dbll.h
@@ -31,11 +31,11 @@ extern int dbll_create(struct dbll_tar_obj **target_obj,
31extern void dbll_delete(struct dbll_tar_obj *target); 31extern void dbll_delete(struct dbll_tar_obj *target);
32extern void dbll_exit(void); 32extern void dbll_exit(void);
33extern bool dbll_get_addr(struct dbll_library_obj *lib, char *name, 33extern bool dbll_get_addr(struct dbll_library_obj *lib, char *name,
34 struct dbll_sym_val **ppSym); 34 struct dbll_sym_val **sym_val);
35extern void dbll_get_attrs(struct dbll_tar_obj *target, 35extern void dbll_get_attrs(struct dbll_tar_obj *target,
36 struct dbll_attrs *pattrs); 36 struct dbll_attrs *pattrs);
37extern bool dbll_get_c_addr(struct dbll_library_obj *lib, char *name, 37extern bool dbll_get_c_addr(struct dbll_library_obj *lib, char *name,
38 struct dbll_sym_val **ppSym); 38 struct dbll_sym_val **sym_val);
39extern int dbll_get_sect(struct dbll_library_obj *lib, char *name, 39extern int dbll_get_sect(struct dbll_library_obj *lib, char *name,
40 u32 *paddr, u32 *psize); 40 u32 *paddr, u32 *psize);
41extern bool dbll_init(void); 41extern bool dbll_init(void);
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h b/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h
index 23eca159563..b827320e450 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dblldefs.h
@@ -239,7 +239,7 @@ typedef void (*dbll_exit_fxn) (void);
239 * Parameters: 239 * Parameters:
240 * lib - Handle returned from dbll_open(). 240 * lib - Handle returned from dbll_open().
241 * name - Name of symbol 241 * name - Name of symbol
242 * ppSym - Location to store symbol address on output. 242 * sym_val - Location to store symbol address on output.
243 * Returns: 243 * Returns:
244 * TRUE: Success. 244 * TRUE: Success.
245 * FALSE: Symbol not found. 245 * FALSE: Symbol not found.
@@ -247,11 +247,11 @@ typedef void (*dbll_exit_fxn) (void);
247 * DBL initialized. 247 * DBL initialized.
248 * Valid library. 248 * Valid library.
249 * name != NULL. 249 * name != NULL.
250 * ppSym != NULL. 250 * sym_val != NULL.
251 * Ensures: 251 * Ensures:
252 */ 252 */
253typedef bool(*dbll_get_addr_fxn) (struct dbll_library_obj *lib, char *name, 253typedef bool(*dbll_get_addr_fxn) (struct dbll_library_obj *lib, char *name,
254 struct dbll_sym_val **ppSym); 254 struct dbll_sym_val **sym_val);
255 255
256/* 256/*
257 * ======== dbll_get_attrs ======== 257 * ======== dbll_get_attrs ========
@@ -275,7 +275,7 @@ typedef void (*dbll_get_attrs_fxn) (struct dbll_tar_obj *target,
275 * Parameters: 275 * Parameters:
276 * lib - Handle returned from dbll_open(). 276 * lib - Handle returned from dbll_open().
277 * name - Name of symbol 277 * name - Name of symbol
278 * ppSym - Location to store symbol address on output. 278 * sym_val - Location to store symbol address on output.
279 * Returns: 279 * Returns:
280 * TRUE: Success. 280 * TRUE: Success.
281 * FALSE: Symbol not found. 281 * FALSE: Symbol not found.
@@ -283,11 +283,11 @@ typedef void (*dbll_get_attrs_fxn) (struct dbll_tar_obj *target,
283 * DBL initialized. 283 * DBL initialized.
284 * Valid target. 284 * Valid target.
285 * name != NULL. 285 * name != NULL.
286 * ppSym != NULL. 286 * sym_val != NULL.
287 * Ensures: 287 * Ensures:
288 */ 288 */
289typedef bool(*dbll_get_c_addr_fxn) (struct dbll_library_obj *lib, char *name, 289typedef bool(*dbll_get_c_addr_fxn) (struct dbll_library_obj *lib, char *name,
290 struct dbll_sym_val **ppSym); 290 struct dbll_sym_val **sym_val);
291 291
292/* 292/*
293 * ======== dbll_get_sect ======== 293 * ======== dbll_get_sect ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dev.h b/drivers/staging/tidspbridge/include/dspbridge/dev.h
index a646402fb70..d658df521d1 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dev.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dev.h
@@ -367,20 +367,20 @@ extern struct dev_object *dev_get_first(void);
367 * Parameters: 367 * Parameters:
368 * hdev_obj: Handle to device object created with 368 * hdev_obj: Handle to device object created with
369 * dev_create_device(). 369 * dev_create_device().
370 * *ppIntfFxns: Ptr to location to store fxn interface. 370 * *if_fxns: Ptr to location to store fxn interface.
371 * Returns: 371 * Returns:
372 * 0: Success. 372 * 0: Success.
373 * -EFAULT: Invalid hdev_obj. 373 * -EFAULT: Invalid hdev_obj.
374 * Requires: 374 * Requires:
375 * ppIntfFxns != NULL. 375 * if_fxns != NULL.
376 * DEV Initialized. 376 * DEV Initialized.
377 * Ensures: 377 * Ensures:
378 * 0: *ppIntfFxns contains a pointer to the Bridge 378 * 0: *if_fxns contains a pointer to the Bridge
379 * driver interface; 379 * driver interface;
380 * else: *ppIntfFxns is NULL. 380 * else: *if_fxns is NULL.
381 */ 381 */
382extern int dev_get_intf_fxns(struct dev_object *hdev_obj, 382extern int dev_get_intf_fxns(struct dev_object *hdev_obj,
383 OUT struct bridge_drv_interface **ppIntfFxns); 383 OUT struct bridge_drv_interface **if_fxns);
384 384
385/* 385/*
386 * ======== dev_get_io_mgr ======== 386 * ======== dev_get_io_mgr ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/drv.h b/drivers/staging/tidspbridge/include/dspbridge/drv.h
index 604c15bda5f..b43d22f8e51 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/drv.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/drv.h
@@ -451,7 +451,7 @@ extern void mem_ext_phys_pool_release(void);
451 * Parameters: 451 * Parameters:
452 * byte_size: Number of bytes to allocate. 452 * byte_size: Number of bytes to allocate.
453 * ulAlign: Alignment Mask. 453 * ulAlign: Alignment Mask.
454 * pPhysicalAddress: Physical address of allocated memory. 454 * physical_address: Physical address of allocated memory.
455 * Returns: 455 * Returns:
456 * Pointer to a block of memory; 456 * Pointer to a block of memory;
457 * NULL if memory couldn't be allocated, or if byte_size == 0. 457 * NULL if memory couldn't be allocated, or if byte_size == 0.
@@ -463,7 +463,7 @@ extern void mem_ext_phys_pool_release(void);
463 * location of memory. 463 * location of memory.
464 */ 464 */
465extern void *mem_alloc_phys_mem(IN u32 byte_size, 465extern void *mem_alloc_phys_mem(IN u32 byte_size,
466 IN u32 ulAlign, OUT u32 *pPhysicalAddress); 466 IN u32 ulAlign, OUT u32 *physical_address);
467 467
468/* 468/*
469 * ======== mem_free_phys_mem ======== 469 * ======== mem_free_phys_mem ========
@@ -472,7 +472,7 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size,
472 * Parameters: 472 * Parameters:
473 * pVirtualAddress: Pointer to virtual memory region allocated 473 * pVirtualAddress: Pointer to virtual memory region allocated
474 * by mem_alloc_phys_mem(). 474 * by mem_alloc_phys_mem().
475 * pPhysicalAddress: Pointer to physical memory region allocated 475 * physical_address: Pointer to physical memory region allocated
476 * by mem_alloc_phys_mem(). 476 * by mem_alloc_phys_mem().
477 * byte_size: Size of the memory region allocated by mem_alloc_phys_mem(). 477 * byte_size: Size of the memory region allocated by mem_alloc_phys_mem().
478 * Returns: 478 * Returns:
@@ -484,14 +484,14 @@ extern void *mem_alloc_phys_mem(IN u32 byte_size,
484 * pVirtualAddress is no longer a valid pointer to memory. 484 * pVirtualAddress is no longer a valid pointer to memory.
485 */ 485 */
486extern void mem_free_phys_mem(void *pVirtualAddress, 486extern void mem_free_phys_mem(void *pVirtualAddress,
487 u32 pPhysicalAddress, u32 byte_size); 487 u32 physical_address, u32 byte_size);
488 488
489/* 489/*
490 * ======== MEM_LINEAR_ADDRESS ======== 490 * ======== MEM_LINEAR_ADDRESS ========
491 * Purpose: 491 * Purpose:
492 * Get the linear address corresponding to the given physical address. 492 * Get the linear address corresponding to the given physical address.
493 * Parameters: 493 * Parameters:
494 * pPhysAddr: Physical address to be mapped. 494 * phys_addr: Physical address to be mapped.
495 * byte_size: Number of bytes in physical range to map. 495 * byte_size: Number of bytes in physical range to map.
496 * Returns: 496 * Returns:
497 * The corresponding linear address, or NULL if unsuccessful. 497 * The corresponding linear address, or NULL if unsuccessful.
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspapi.h b/drivers/staging/tidspbridge/include/dspbridge/dspapi.h
index f84ac6986b1..765a175a28b 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dspapi.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dspapi.h
@@ -42,7 +42,7 @@
42 * Parameters: 42 * Parameters:
43 * cmd: IOCTL id, base 0. 43 * cmd: IOCTL id, base 0.
44 * args: Argument structure. 44 * args: Argument structure.
45 * pResult: 45 * result:
46 * Returns: 46 * Returns:
47 * 0 if command called; -EINVAL if command not in IOCTL 47 * 0 if command called; -EINVAL if command not in IOCTL
48 * table. 48 * table.
@@ -51,7 +51,7 @@
51 */ 51 */
52extern int api_call_dev_ioctl(unsigned int cmd, 52extern int api_call_dev_ioctl(unsigned int cmd,
53 union Trapped_Args *args, 53 union Trapped_Args *args,
54 u32 *pResult, void *pr_ctxt); 54 u32 *result, void *pr_ctxt);
55 55
56/* 56/*
57 * ======== api_init ======== 57 * ======== api_init ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
index 04df01d9ff7..ed6388e4ceb 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
@@ -787,7 +787,7 @@ typedef int(*fxn_io_onloaded) (struct io_mgr *hio_mgr);
787 * Called to get the Processor's current and predicted load 787 * Called to get the Processor's current and predicted load
788 * Parameters: 788 * Parameters:
789 * hio_mgr: IO Manager. 789 * hio_mgr: IO Manager.
790 * pProcLoadStat Processor Load statistics 790 * proc_load_stat Processor Load statistics
791 * Returns: 791 * Returns:
792 * 0: Success. 792 * 0: Success.
793 * -EPERM: Internal failure occurred. 793 * -EPERM: Internal failure occurred.
@@ -797,7 +797,7 @@ typedef int(*fxn_io_onloaded) (struct io_mgr *hio_mgr);
797 */ 797 */
798typedef int(*fxn_io_getprocload) (struct io_mgr *hio_mgr, 798typedef int(*fxn_io_getprocload) (struct io_mgr *hio_mgr,
799 struct dsp_procloadstat * 799 struct dsp_procloadstat *
800 pProcLoadStat); 800 proc_load_stat);
801 801
802/* 802/*
803 * ======== bridge_msg_create ======== 803 * ======== bridge_msg_create ========
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dspio.h b/drivers/staging/tidspbridge/include/dspbridge/dspio.h
index 93dc5926fc2..2b9e19c25c7 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dspio.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dspio.h
@@ -36,6 +36,6 @@ extern int bridge_io_on_loaded(struct io_mgr *hio_mgr);
36 36
37extern int iva_io_on_loaded(struct io_mgr *hio_mgr); 37extern int iva_io_on_loaded(struct io_mgr *hio_mgr);
38extern int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr, 38extern int bridge_io_get_proc_load(IN struct io_mgr *hio_mgr,
39 OUT struct dsp_procloadstat *pProcStat); 39 OUT struct dsp_procloadstat *proc_lstat);
40 40
41#endif /* DSPIO_ */ 41#endif /* DSPIO_ */
diff --git a/drivers/staging/tidspbridge/include/dspbridge/io_sm.h b/drivers/staging/tidspbridge/include/dspbridge/io_sm.h
index 7e598ee5757..1627e0ae92f 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/io_sm.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/io_sm.h
@@ -68,7 +68,7 @@ extern void io_cancel_chnl(struct io_mgr *hio_mgr, u32 ulChnl);
68 * Deferred procedure call for shared memory channel driver ISR. Carries 68 * Deferred procedure call for shared memory channel driver ISR. Carries
69 * out the dispatch of I/O. 69 * out the dispatch of I/O.
70 * Parameters: 70 * Parameters:
71 * pRefData: Pointer to reference data registered via a call to 71 * ref_data: Pointer to reference data registered via a call to
72 * DPC_Create(). 72 * DPC_Create().
73 * Returns: 73 * Returns:
74 * Requires: 74 * Requires:
@@ -78,7 +78,7 @@ extern void io_cancel_chnl(struct io_mgr *hio_mgr, u32 ulChnl);
78 * Ensures: 78 * Ensures:
79 * Non-preemptible (but interruptible). 79 * Non-preemptible (but interruptible).
80 */ 80 */
81extern void io_dpc(IN OUT unsigned long pRefData); 81extern void io_dpc(IN OUT unsigned long ref_data);
82 82
83/* 83/*
84 * ======== io_mbox_msg ======== 84 * ======== io_mbox_msg ========
@@ -87,7 +87,7 @@ extern void io_dpc(IN OUT unsigned long pRefData);
87 * Calls the Bridge's chnlsm_isr to determine if this interrupt is ours, 87 * Calls the Bridge's chnlsm_isr to determine if this interrupt is ours,
88 * then schedules a DPC to dispatch I/O. 88 * then schedules a DPC to dispatch I/O.
89 * Parameters: 89 * Parameters:
90 * pRefData: Pointer to the channel manager object for this board. 90 * ref_data: Pointer to the channel manager object for this board.
91 * Set in an initial call to ISR_Install(). 91 * Set in an initial call to ISR_Install().
92 * Returns: 92 * Returns:
93 * TRUE if interrupt handled; FALSE otherwise. 93 * TRUE if interrupt handled; FALSE otherwise.
diff --git a/drivers/staging/tidspbridge/include/dspbridge/proc.h b/drivers/staging/tidspbridge/include/dspbridge/proc.h
index cbd26dc9b5a..5583bd51b45 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/proc.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/proc.h
@@ -265,7 +265,7 @@ extern int proc_get_state(void *hprocessor, OUT struct dsp_processorstate
265 * Report the state of the specified DSP processor. 265 * Report the state of the specified DSP processor.
266 * Parameters: 266 * Parameters:
267 * hprocessor : The processor handle. 267 * hprocessor : The processor handle.
268 * procID : Processor ID 268 * proc_id : Processor ID
269 * 269 *
270 * Returns: 270 * Returns:
271 * 0 : Success. 271 * 0 : Success.
@@ -278,7 +278,7 @@ extern int proc_get_state(void *hprocessor, OUT struct dsp_processorstate
278 * Ensures: 278 * Ensures:
279 * Details: 279 * Details:
280 */ 280 */
281extern int proc_get_processor_id(void *hprocessor, u32 * procID); 281extern int proc_get_processor_id(void *hprocessor, u32 * proc_id);
282 282
283/* 283/*
284 * ======== proc_get_trace ======== 284 * ======== proc_get_trace ========