Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
sound
pci
asihpi
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
{
38
u32
size
;
40
u32
type
;
42
u32
adapter
;
44
u32
version
;
46
u32
checksum
;
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
{
58
struct
code_header
header
;
60
u32
block_length
;
62
u32
word_count
;
63
65
struct
dsp_code_private
*
pvt
;
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
Generated on Thu Jan 10 2013 15:05:43 for Linux Kernel by
1.8.2