Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hpidspcd.h
Go to the documentation of this file.
1 /***********************************************************************/
24 /***********************************************************************/
25 #ifndef _HPIDSPCD_H_
26 #define _HPIDSPCD_H_
27 
28 #include "hpi_internal.h"
29 
33 /*#ifndef DISABLE_PRAGMA_PACK1 */
34 /*#pragma pack(push, 1) */
35 /*#endif */
36 struct code_header {
47 };
48 /*#ifndef DISABLE_PRAGMA_PACK1 */
49 /*#pragma pack(pop) */
50 /*#endif */
51 
52 /*? Don't need the pragmas? */
53 compile_time_assert((sizeof(struct code_header) == 20), code_header_size);
54 
56 struct dsp_code {
63 
66 };
67 
73 short hpi_dsp_code_open(
75  u32 adapter, void *pci_dev,
77  struct dsp_code *ps_dsp_code,
79  u32 *pos_error_code);
80 
82 void hpi_dsp_code_close(struct dsp_code *ps_dsp_code);
83 
85 void hpi_dsp_code_rewind(struct dsp_code *ps_dsp_code);
86 
90 short hpi_dsp_code_read_word(struct dsp_code *ps_dsp_code,
92  u32 *pword
93  );
94 
101 short hpi_dsp_code_read_block(size_t words_requested,
102  struct dsp_code *ps_dsp_code,
103  /* Pointer to store (Pointer to code buffer) */
104  u32 **ppblock);
105 
106 #endif