aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/include/dspbridge/cod.h
diff options
context:
space:
mode:
authorRene Sapiens <rene.sapiens@ti.com>2010-07-09 22:24:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 13:45:36 -0400
commit383b834522b11eec607dbe422835dcf5812730c3 (patch)
tree195f0be11cc94701884e34485d5111c3770f373f /drivers/staging/tidspbridge/include/dspbridge/cod.h
parent13b18c29ec01068dce4b266cc179d4e90e79d0e9 (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: ======================================== pstrFxn to str_fxn pstrLibName to str_lib_name pstrSect to str_sect pstrSym to str_sym pstrZLFileName to str_zl_file_name pstrZLFile to str_zl_file pszCoffPath to sz_coff_path pszMode to sz_mode pszName to sz_name pszSectName to sz_sect_name pszUuid to sz_uuid pszZlDllName to sz_zl_dll_name puAddr to addr pulAddr to addr pulBufSize to buff_size pulBytes to nbytes ======================================== 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/dspbridge/cod.h')
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/cod.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cod.h b/drivers/staging/tidspbridge/include/dspbridge/cod.h
index f8cbb21c182..c84761e608a 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/cod.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/cod.h
@@ -78,7 +78,7 @@ extern void cod_close(struct cod_libraryobj *lib);
78 * using the cod_get_sym_value() function. 78 * using the cod_get_sym_value() function.
79 * Parameters: 79 * Parameters:
80 * manager: created manager object 80 * manager: created manager object
81 * pstrZLFile: ZL DLL filename, of length < COD_MAXPATHLENGTH. 81 * str_zl_file: ZL DLL filename, of length < COD_MAXPATHLENGTH.
82 * attrs: attributes to be used by this object. A NULL value 82 * attrs: attributes to be used by this object. A NULL value
83 * will cause default attrs to be used. 83 * will cause default attrs to be used.
84 * Returns: 84 * Returns:
@@ -88,11 +88,11 @@ extern void cod_close(struct cod_libraryobj *lib);
88 * non default values of attrs. 88 * non default values of attrs.
89 * Requires: 89 * Requires:
90 * COD module initialized. 90 * COD module initialized.
91 * pstrZLFile != NULL 91 * str_zl_file != NULL
92 * Ensures: 92 * Ensures:
93 */ 93 */
94extern int cod_create(OUT struct cod_manager **manager, 94extern int cod_create(OUT struct cod_manager **manager,
95 char *pstrZLFile, 95 char *str_zl_file,
96 IN OPTIONAL CONST struct cod_attrs *attrs); 96 IN OPTIONAL CONST struct cod_attrs *attrs);
97 97
98/* 98/*
@@ -149,7 +149,7 @@ extern int cod_get_base_lib(struct cod_manager *cod_mgr_obj,
149 * Get the name of the base image DBL library. 149 * Get the name of the base image DBL library.
150 * Parameters: 150 * Parameters:
151 * cod_mgr_obj: handle of manager to be deleted 151 * cod_mgr_obj: handle of manager to be deleted
152 * pszName: location to store library name on output. 152 * sz_name: location to store library name on output.
153 * usize: size of name buffer. 153 * usize: size of name buffer.
154 * Returns: 154 * Returns:
155 * 0: Success. 155 * 0: Success.
@@ -157,11 +157,11 @@ extern int cod_get_base_lib(struct cod_manager *cod_mgr_obj,
157 * Requires: 157 * Requires:
158 * COD module initialized. 158 * COD module initialized.
159 * valid cod_mgr_obj. 159 * valid cod_mgr_obj.
160 * pszName != NULL. 160 * sz_name != NULL.
161 * Ensures: 161 * Ensures:
162 */ 162 */
163extern int cod_get_base_name(struct cod_manager *cod_mgr_obj, 163extern int cod_get_base_name(struct cod_manager *cod_mgr_obj,
164 char *pszName, u32 usize); 164 char *sz_name, u32 usize);
165 165
166/* 166/*
167 * ======== cod_get_entry ======== 167 * ======== cod_get_entry ========
@@ -206,8 +206,8 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
206 * given the section name. 206 * given the section name.
207 * Parameters: 207 * Parameters:
208 * lib Library handle returned from cod_open(). 208 * lib Library handle returned from cod_open().
209 * pstrSect: name of the section, with or without leading "." 209 * str_sect: name of the section, with or without leading "."
210 * puAddr: Location to store address. 210 * addr: Location to store address.
211 * puLen: Location to store length. 211 * puLen: Location to store length.
212 * Returns: 212 * Returns:
213 * 0: Success 213 * 0: Success
@@ -216,18 +216,18 @@ extern int cod_get_loader(struct cod_manager *cod_mgr_obj,
216 * Requires: 216 * Requires:
217 * COD module initialized. 217 * COD module initialized.
218 * valid cod_mgr_obj. 218 * valid cod_mgr_obj.
219 * pstrSect != NULL; 219 * str_sect != NULL;
220 * puAddr != NULL; 220 * addr != NULL;
221 * puLen != NULL; 221 * puLen != NULL;
222 * Ensures: 222 * Ensures:
223 * 0: *puAddr and *puLen contain the address and length of the 223 * 0: *addr and *puLen contain the address and length of the
224 * section. 224 * section.
225 * else: *puAddr == 0 and *puLen == 0; 225 * else: *addr == 0 and *puLen == 0;
226 * 226 *
227 */ 227 */
228extern int cod_get_section(struct cod_libraryobj *lib, 228extern int cod_get_section(struct cod_libraryobj *lib,
229 IN char *pstrSect, 229 IN char *str_sect,
230 OUT u32 *puAddr, OUT u32 *puLen); 230 OUT u32 *addr, OUT u32 *puLen);
231 231
232/* 232/*
233 * ======== cod_get_sym_value ======== 233 * ======== cod_get_sym_value ========
@@ -246,12 +246,12 @@ extern int cod_get_section(struct cod_libraryobj *lib,
246 * Requires: 246 * Requires:
247 * COD module initialized. 247 * COD module initialized.
248 * Valid cod_mgr_obj. 248 * Valid cod_mgr_obj.
249 * pstrSym != NULL. 249 * str_sym != NULL.
250 * pul_value != NULL. 250 * pul_value != NULL.
251 * Ensures: 251 * Ensures:
252 */ 252 */
253extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj, 253extern int cod_get_sym_value(struct cod_manager *cod_mgr_obj,
254 IN char *pstrSym, OUT u32 * pul_value); 254 IN char *str_sym, OUT u32 * pul_value);
255 255
256/* 256/*
257 * ======== cod_init ======== 257 * ======== cod_init ========
@@ -304,7 +304,7 @@ extern int cod_load_base(struct cod_manager *cod_mgr_obj,
304 * Open a library for reading sections. Does not load or set the base. 304 * Open a library for reading sections. Does not load or set the base.
305 * Parameters: 305 * Parameters:
306 * hmgr: manager to load the code with 306 * hmgr: manager to load the code with
307 * pszCoffPath: Coff file to open. 307 * sz_coff_path: Coff file to open.
308 * flags: COD_NOLOAD (don't load symbols) or COD_SYMB (load 308 * flags: COD_NOLOAD (don't load symbols) or COD_SYMB (load
309 * symbols). 309 * symbols).
310 * lib_obj: Handle returned that can be used in calls to cod_close 310 * lib_obj: Handle returned that can be used in calls to cod_close
@@ -316,11 +316,11 @@ extern int cod_load_base(struct cod_manager *cod_mgr_obj,
316 * COD module initialized. 316 * COD module initialized.
317 * hmgr is valid. 317 * hmgr is valid.
318 * flags == COD_NOLOAD || flags == COD_SYMB. 318 * flags == COD_NOLOAD || flags == COD_SYMB.
319 * pszCoffPath != NULL. 319 * sz_coff_path != NULL.
320 * Ensures: 320 * Ensures:
321 */ 321 */
322extern int cod_open(struct cod_manager *hmgr, 322extern int cod_open(struct cod_manager *hmgr,
323 IN char *pszCoffPath, 323 IN char *sz_coff_path,
324 u32 flags, OUT struct cod_libraryobj **lib_obj); 324 u32 flags, OUT struct cod_libraryobj **lib_obj);
325 325
326/* 326/*
@@ -329,7 +329,7 @@ extern int cod_open(struct cod_manager *hmgr,
329 * Open base image for reading sections. Does not load the base. 329 * Open base image for reading sections. Does not load the base.
330 * Parameters: 330 * Parameters:
331 * hmgr: manager to load the code with 331 * hmgr: manager to load the code with
332 * pszCoffPath: Coff file to open. 332 * sz_coff_path: Coff file to open.
333 * flags: Specifies whether to load symbols. 333 * flags: Specifies whether to load symbols.
334 * Returns: 334 * Returns:
335 * 0: Success. 335 * 0: Success.
@@ -337,10 +337,10 @@ extern int cod_open(struct cod_manager *hmgr,
337 * Requires: 337 * Requires:
338 * COD module initialized. 338 * COD module initialized.
339 * hmgr is valid. 339 * hmgr is valid.
340 * pszCoffPath != NULL. 340 * sz_coff_path != NULL.
341 * Ensures: 341 * Ensures:
342 */ 342 */
343extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath, 343extern int cod_open_base(struct cod_manager *hmgr, IN char *sz_coff_path,
344 dbll_flags flags); 344 dbll_flags flags);
345 345
346/* 346/*
@@ -349,7 +349,7 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
349 * Retrieve the content of a code section given the section name. 349 * Retrieve the content of a code section given the section name.
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 * str_sect - name of the section, with or without leading "."
353 * str_content - 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
@@ -357,13 +357,13 @@ extern int cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath,
357 * Requires: 357 * Requires:
358 * COD module initialized. 358 * COD module initialized.
359 * valid cod_mgr_obj. 359 * valid cod_mgr_obj.
360 * pstrSect != NULL; 360 * str_sect != NULL;
361 * str_content != NULL; 361 * str_content != NULL;
362 * Ensures: 362 * Ensures:
363 * 0: *str_content 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 *str_sect,
367 OUT char *str_content, IN u32 content_size); 367 OUT char *str_content, IN u32 content_size);
368 368
369#endif /* COD_ */ 369#endif /* COD_ */