sb16_csp.h revision 655a7c081f83b8351ed5f11a6c6accd9458293a8
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__SOUND_SB16_CSP_H
20#define _UAPI__SOUND_SB16_CSP_H
21#define SNDRV_SB_CSP_MODE_NONE 0x00
22#define SNDRV_SB_CSP_MODE_DSP_READ 0x01
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SNDRV_SB_CSP_MODE_DSP_WRITE 0x02
25#define SNDRV_SB_CSP_MODE_QSOUND 0x04
26#define SNDRV_SB_CSP_LOAD_FROMUSER 0x01
27#define SNDRV_SB_CSP_LOAD_INITBLOCK 0x02
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SNDRV_SB_CSP_SAMPLE_8BIT 0x01
30#define SNDRV_SB_CSP_SAMPLE_16BIT 0x02
31#define SNDRV_SB_CSP_MONO 0x01
32#define SNDRV_SB_CSP_STEREO 0x02
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SNDRV_SB_CSP_RATE_8000 0x01
35#define SNDRV_SB_CSP_RATE_11025 0x02
36#define SNDRV_SB_CSP_RATE_22050 0x04
37#define SNDRV_SB_CSP_RATE_44100 0x08
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SNDRV_SB_CSP_RATE_ALL 0x0f
40#define SNDRV_SB_CSP_ST_IDLE 0x00
41#define SNDRV_SB_CSP_ST_LOADED 0x01
42#define SNDRV_SB_CSP_ST_RUNNING 0x02
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SNDRV_SB_CSP_ST_PAUSED 0x04
45#define SNDRV_SB_CSP_ST_AUTO 0x08
46#define SNDRV_SB_CSP_ST_QSOUND 0x10
47#define SNDRV_SB_CSP_QSOUND_MAX_RIGHT 0x20
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SNDRV_SB_CSP_MAX_MICROCODE_FILE_SIZE 0x3000
50struct snd_sb_csp_mc_header {
51 char codec_name[16];
52 unsigned short func_req;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55struct snd_sb_csp_microcode {
56 struct snd_sb_csp_mc_header info;
57 unsigned char data[SNDRV_SB_CSP_MAX_MICROCODE_FILE_SIZE];
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60struct snd_sb_csp_start {
61 int sample_width;
62 int channels;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65struct snd_sb_csp_info {
66 char codec_name[16];
67 unsigned short func_nr;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned int acc_format;
70 unsigned short acc_channels;
71 unsigned short acc_width;
72 unsigned short acc_rates;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned short csp_mode;
75 unsigned short run_channels;
76 unsigned short run_width;
77 unsigned short version;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 unsigned short state;
80};
81#define SNDRV_SB_CSP_IOCTL_INFO _IOR('H', 0x10, struct snd_sb_csp_info)
82#define SNDRV_SB_CSP_IOCTL_LOAD_CODE   _IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode))
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SNDRV_SB_CSP_IOCTL_UNLOAD_CODE _IO('H', 0x12)
85#define SNDRV_SB_CSP_IOCTL_START _IOW('H', 0x13, struct snd_sb_csp_start)
86#define SNDRV_SB_CSP_IOCTL_STOP _IO('H', 0x14)
87#define SNDRV_SB_CSP_IOCTL_PAUSE _IO('H', 0x15)
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define SNDRV_SB_CSP_IOCTL_RESTART _IO('H', 0x16)
90#endif
91