122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef _UAPI__SOUND_EMU10K1_H 2022851890Sopenharmony_ci#define _UAPI__SOUND_EMU10K1_H 2122851890Sopenharmony_ci#ifdef __linux__ 2222851890Sopenharmony_ci#include <linux/types.h> 2322851890Sopenharmony_ci#endif 2422851890Sopenharmony_ci#define EMU10K1_CARD_CREATIVE 0x00000000 2522851890Sopenharmony_ci#define EMU10K1_CARD_EMUAPS 0x00000001 2622851890Sopenharmony_ci#define EMU10K1_FX8010_PCM_COUNT 8 2722851890Sopenharmony_ci#define __EMU10K1_DECLARE_BITMAP(name,bits) unsigned long name[(bits) / (sizeof(unsigned long) * 8)] 2822851890Sopenharmony_ci#define iMAC0 0x00 2922851890Sopenharmony_ci#define iMAC1 0x01 3022851890Sopenharmony_ci#define iMAC2 0x02 3122851890Sopenharmony_ci#define iMAC3 0x03 3222851890Sopenharmony_ci#define iMACINT0 0x04 3322851890Sopenharmony_ci#define iMACINT1 0x05 3422851890Sopenharmony_ci#define iACC3 0x06 3522851890Sopenharmony_ci#define iMACMV 0x07 3622851890Sopenharmony_ci#define iANDXOR 0x08 3722851890Sopenharmony_ci#define iTSTNEG 0x09 3822851890Sopenharmony_ci#define iLIMITGE 0x0a 3922851890Sopenharmony_ci#define iLIMITLT 0x0b 4022851890Sopenharmony_ci#define iLOG 0x0c 4122851890Sopenharmony_ci#define iEXP 0x0d 4222851890Sopenharmony_ci#define iINTERP 0x0e 4322851890Sopenharmony_ci#define iSKIP 0x0f 4422851890Sopenharmony_ci#define FXBUS(x) (0x00 + (x)) 4522851890Sopenharmony_ci#define EXTIN(x) (0x10 + (x)) 4622851890Sopenharmony_ci#define EXTOUT(x) (0x20 + (x)) 4722851890Sopenharmony_ci#define FXBUS2(x) (0x30 + (x)) 4822851890Sopenharmony_ci#define C_00000000 0x40 4922851890Sopenharmony_ci#define C_00000001 0x41 5022851890Sopenharmony_ci#define C_00000002 0x42 5122851890Sopenharmony_ci#define C_00000003 0x43 5222851890Sopenharmony_ci#define C_00000004 0x44 5322851890Sopenharmony_ci#define C_00000008 0x45 5422851890Sopenharmony_ci#define C_00000010 0x46 5522851890Sopenharmony_ci#define C_00000020 0x47 5622851890Sopenharmony_ci#define C_00000100 0x48 5722851890Sopenharmony_ci#define C_00010000 0x49 5822851890Sopenharmony_ci#define C_00080000 0x4a 5922851890Sopenharmony_ci#define C_10000000 0x4b 6022851890Sopenharmony_ci#define C_20000000 0x4c 6122851890Sopenharmony_ci#define C_40000000 0x4d 6222851890Sopenharmony_ci#define C_80000000 0x4e 6322851890Sopenharmony_ci#define C_7fffffff 0x4f 6422851890Sopenharmony_ci#define C_ffffffff 0x50 6522851890Sopenharmony_ci#define C_fffffffe 0x51 6622851890Sopenharmony_ci#define C_c0000000 0x52 6722851890Sopenharmony_ci#define C_4f1bbcdc 0x53 6822851890Sopenharmony_ci#define C_5a7ef9db 0x54 6922851890Sopenharmony_ci#define C_00100000 0x55 7022851890Sopenharmony_ci#define GPR_ACCU 0x56 7122851890Sopenharmony_ci#define GPR_COND 0x57 7222851890Sopenharmony_ci#define GPR_NOISE0 0x58 7322851890Sopenharmony_ci#define GPR_NOISE1 0x59 7422851890Sopenharmony_ci#define GPR_IRQ 0x5a 7522851890Sopenharmony_ci#define GPR_DBAC 0x5b 7622851890Sopenharmony_ci#define GPR(x) (FXGPREGBASE + (x)) 7722851890Sopenharmony_ci#define ITRAM_DATA(x) (TANKMEMDATAREGBASE + 0x00 + (x)) 7822851890Sopenharmony_ci#define ETRAM_DATA(x) (TANKMEMDATAREGBASE + 0x80 + (x)) 7922851890Sopenharmony_ci#define ITRAM_ADDR(x) (TANKMEMADDRREGBASE + 0x00 + (x)) 8022851890Sopenharmony_ci#define ETRAM_ADDR(x) (TANKMEMADDRREGBASE + 0x80 + (x)) 8122851890Sopenharmony_ci#define A_ITRAM_DATA(x) (TANKMEMDATAREGBASE + 0x00 + (x)) 8222851890Sopenharmony_ci#define A_ETRAM_DATA(x) (TANKMEMDATAREGBASE + 0xc0 + (x)) 8322851890Sopenharmony_ci#define A_ITRAM_ADDR(x) (TANKMEMADDRREGBASE + 0x00 + (x)) 8422851890Sopenharmony_ci#define A_ETRAM_ADDR(x) (TANKMEMADDRREGBASE + 0xc0 + (x)) 8522851890Sopenharmony_ci#define A_ITRAM_CTL(x) (A_TANKMEMCTLREGBASE + 0x00 + (x)) 8622851890Sopenharmony_ci#define A_ETRAM_CTL(x) (A_TANKMEMCTLREGBASE + 0xc0 + (x)) 8722851890Sopenharmony_ci#define A_FXBUS(x) (0x00 + (x)) 8822851890Sopenharmony_ci#define A_EXTIN(x) (0x40 + (x)) 8922851890Sopenharmony_ci#define A_P16VIN(x) (0x50 + (x)) 9022851890Sopenharmony_ci#define A_EXTOUT(x) (0x60 + (x)) 9122851890Sopenharmony_ci#define A_FXBUS2(x) (0x80 + (x)) 9222851890Sopenharmony_ci#define A_EMU32OUTH(x) (0xa0 + (x)) 9322851890Sopenharmony_ci#define A_EMU32OUTL(x) (0xb0 + (x)) 9422851890Sopenharmony_ci#define A3_EMU32IN(x) (0x160 + (x)) 9522851890Sopenharmony_ci#define A3_EMU32OUT(x) (0x1E0 + (x)) 9622851890Sopenharmony_ci#define A_GPR(x) (A_FXGPREGBASE + (x)) 9722851890Sopenharmony_ci#define CC_REG_NORMALIZED C_00000001 9822851890Sopenharmony_ci#define CC_REG_BORROW C_00000002 9922851890Sopenharmony_ci#define CC_REG_MINUS C_00000004 10022851890Sopenharmony_ci#define CC_REG_ZERO C_00000008 10122851890Sopenharmony_ci#define CC_REG_SATURATE C_00000010 10222851890Sopenharmony_ci#define CC_REG_NONZERO C_00000100 10322851890Sopenharmony_ci#define FXBUS_PCM_LEFT 0x00 10422851890Sopenharmony_ci#define FXBUS_PCM_RIGHT 0x01 10522851890Sopenharmony_ci#define FXBUS_PCM_LEFT_REAR 0x02 10622851890Sopenharmony_ci#define FXBUS_PCM_RIGHT_REAR 0x03 10722851890Sopenharmony_ci#define FXBUS_MIDI_LEFT 0x04 10822851890Sopenharmony_ci#define FXBUS_MIDI_RIGHT 0x05 10922851890Sopenharmony_ci#define FXBUS_PCM_CENTER 0x06 11022851890Sopenharmony_ci#define FXBUS_PCM_LFE 0x07 11122851890Sopenharmony_ci#define FXBUS_PCM_LEFT_FRONT 0x08 11222851890Sopenharmony_ci#define FXBUS_PCM_RIGHT_FRONT 0x09 11322851890Sopenharmony_ci#define FXBUS_MIDI_REVERB 0x0c 11422851890Sopenharmony_ci#define FXBUS_MIDI_CHORUS 0x0d 11522851890Sopenharmony_ci#define FXBUS_PCM_LEFT_SIDE 0x0e 11622851890Sopenharmony_ci#define FXBUS_PCM_RIGHT_SIDE 0x0f 11722851890Sopenharmony_ci#define FXBUS_PT_LEFT 0x14 11822851890Sopenharmony_ci#define FXBUS_PT_RIGHT 0x15 11922851890Sopenharmony_ci#define EXTIN_AC97_L 0x00 12022851890Sopenharmony_ci#define EXTIN_AC97_R 0x01 12122851890Sopenharmony_ci#define EXTIN_SPDIF_CD_L 0x02 12222851890Sopenharmony_ci#define EXTIN_SPDIF_CD_R 0x03 12322851890Sopenharmony_ci#define EXTIN_ZOOM_L 0x04 12422851890Sopenharmony_ci#define EXTIN_ZOOM_R 0x05 12522851890Sopenharmony_ci#define EXTIN_TOSLINK_L 0x06 12622851890Sopenharmony_ci#define EXTIN_TOSLINK_R 0x07 12722851890Sopenharmony_ci#define EXTIN_LINE1_L 0x08 12822851890Sopenharmony_ci#define EXTIN_LINE1_R 0x09 12922851890Sopenharmony_ci#define EXTIN_COAX_SPDIF_L 0x0a 13022851890Sopenharmony_ci#define EXTIN_COAX_SPDIF_R 0x0b 13122851890Sopenharmony_ci#define EXTIN_LINE2_L 0x0c 13222851890Sopenharmony_ci#define EXTIN_LINE2_R 0x0d 13322851890Sopenharmony_ci#define EXTOUT_AC97_L 0x00 13422851890Sopenharmony_ci#define EXTOUT_AC97_R 0x01 13522851890Sopenharmony_ci#define EXTOUT_TOSLINK_L 0x02 13622851890Sopenharmony_ci#define EXTOUT_TOSLINK_R 0x03 13722851890Sopenharmony_ci#define EXTOUT_AC97_CENTER 0x04 13822851890Sopenharmony_ci#define EXTOUT_AC97_LFE 0x05 13922851890Sopenharmony_ci#define EXTOUT_HEADPHONE_L 0x06 14022851890Sopenharmony_ci#define EXTOUT_HEADPHONE_R 0x07 14122851890Sopenharmony_ci#define EXTOUT_REAR_L 0x08 14222851890Sopenharmony_ci#define EXTOUT_REAR_R 0x09 14322851890Sopenharmony_ci#define EXTOUT_ADC_CAP_L 0x0a 14422851890Sopenharmony_ci#define EXTOUT_ADC_CAP_R 0x0b 14522851890Sopenharmony_ci#define EXTOUT_MIC_CAP 0x0c 14622851890Sopenharmony_ci#define EXTOUT_AC97_REAR_L 0x0d 14722851890Sopenharmony_ci#define EXTOUT_AC97_REAR_R 0x0e 14822851890Sopenharmony_ci#define EXTOUT_ACENTER 0x11 14922851890Sopenharmony_ci#define EXTOUT_ALFE 0x12 15022851890Sopenharmony_ci#define A_EXTIN_AC97_L 0x00 15122851890Sopenharmony_ci#define A_EXTIN_AC97_R 0x01 15222851890Sopenharmony_ci#define A_EXTIN_SPDIF_CD_L 0x02 15322851890Sopenharmony_ci#define A_EXTIN_SPDIF_CD_R 0x03 15422851890Sopenharmony_ci#define A_EXTIN_OPT_SPDIF_L 0x04 15522851890Sopenharmony_ci#define A_EXTIN_OPT_SPDIF_R 0x05 15622851890Sopenharmony_ci#define A_EXTIN_LINE2_L 0x08 15722851890Sopenharmony_ci#define A_EXTIN_LINE2_R 0x09 15822851890Sopenharmony_ci#define A_EXTIN_ADC_L 0x0a 15922851890Sopenharmony_ci#define A_EXTIN_ADC_R 0x0b 16022851890Sopenharmony_ci#define A_EXTIN_AUX2_L 0x0c 16122851890Sopenharmony_ci#define A_EXTIN_AUX2_R 0x0d 16222851890Sopenharmony_ci#define A_EXTOUT_FRONT_L 0x00 16322851890Sopenharmony_ci#define A_EXTOUT_FRONT_R 0x01 16422851890Sopenharmony_ci#define A_EXTOUT_CENTER 0x02 16522851890Sopenharmony_ci#define A_EXTOUT_LFE 0x03 16622851890Sopenharmony_ci#define A_EXTOUT_HEADPHONE_L 0x04 16722851890Sopenharmony_ci#define A_EXTOUT_HEADPHONE_R 0x05 16822851890Sopenharmony_ci#define A_EXTOUT_REAR_L 0x06 16922851890Sopenharmony_ci#define A_EXTOUT_REAR_R 0x07 17022851890Sopenharmony_ci#define A_EXTOUT_AFRONT_L 0x08 17122851890Sopenharmony_ci#define A_EXTOUT_AFRONT_R 0x09 17222851890Sopenharmony_ci#define A_EXTOUT_ACENTER 0x0a 17322851890Sopenharmony_ci#define A_EXTOUT_ALFE 0x0b 17422851890Sopenharmony_ci#define A_EXTOUT_ASIDE_L 0x0c 17522851890Sopenharmony_ci#define A_EXTOUT_ASIDE_R 0x0d 17622851890Sopenharmony_ci#define A_EXTOUT_AREAR_L 0x0e 17722851890Sopenharmony_ci#define A_EXTOUT_AREAR_R 0x0f 17822851890Sopenharmony_ci#define A_EXTOUT_AC97_L 0x10 17922851890Sopenharmony_ci#define A_EXTOUT_AC97_R 0x11 18022851890Sopenharmony_ci#define A_EXTOUT_ADC_CAP_L 0x16 18122851890Sopenharmony_ci#define A_EXTOUT_ADC_CAP_R 0x17 18222851890Sopenharmony_ci#define A_EXTOUT_MIC_CAP 0x18 18322851890Sopenharmony_ci#define A_C_00000000 0xc0 18422851890Sopenharmony_ci#define A_C_00000001 0xc1 18522851890Sopenharmony_ci#define A_C_00000002 0xc2 18622851890Sopenharmony_ci#define A_C_00000003 0xc3 18722851890Sopenharmony_ci#define A_C_00000004 0xc4 18822851890Sopenharmony_ci#define A_C_00000008 0xc5 18922851890Sopenharmony_ci#define A_C_00000010 0xc6 19022851890Sopenharmony_ci#define A_C_00000020 0xc7 19122851890Sopenharmony_ci#define A_C_00000100 0xc8 19222851890Sopenharmony_ci#define A_C_00010000 0xc9 19322851890Sopenharmony_ci#define A_C_00000800 0xca 19422851890Sopenharmony_ci#define A_C_10000000 0xcb 19522851890Sopenharmony_ci#define A_C_20000000 0xcc 19622851890Sopenharmony_ci#define A_C_40000000 0xcd 19722851890Sopenharmony_ci#define A_C_80000000 0xce 19822851890Sopenharmony_ci#define A_C_7fffffff 0xcf 19922851890Sopenharmony_ci#define A_C_ffffffff 0xd0 20022851890Sopenharmony_ci#define A_C_fffffffe 0xd1 20122851890Sopenharmony_ci#define A_C_c0000000 0xd2 20222851890Sopenharmony_ci#define A_C_4f1bbcdc 0xd3 20322851890Sopenharmony_ci#define A_C_5a7ef9db 0xd4 20422851890Sopenharmony_ci#define A_C_00100000 0xd5 20522851890Sopenharmony_ci#define A_GPR_ACCU 0xd6 20622851890Sopenharmony_ci#define A_GPR_COND 0xd7 20722851890Sopenharmony_ci#define A_GPR_NOISE0 0xd8 20822851890Sopenharmony_ci#define A_GPR_NOISE1 0xd9 20922851890Sopenharmony_ci#define A_GPR_IRQ 0xda 21022851890Sopenharmony_ci#define A_GPR_DBAC 0xdb 21122851890Sopenharmony_ci#define A_GPR_DBACE 0xde 21222851890Sopenharmony_ci#define EMU10K1_DBG_ZC 0x80000000 21322851890Sopenharmony_ci#define EMU10K1_DBG_SATURATION_OCCURED 0x02000000 21422851890Sopenharmony_ci#define EMU10K1_DBG_SATURATION_ADDR 0x01ff0000 21522851890Sopenharmony_ci#define EMU10K1_DBG_SINGLE_STEP 0x00008000 21622851890Sopenharmony_ci#define EMU10K1_DBG_STEP 0x00004000 21722851890Sopenharmony_ci#define EMU10K1_DBG_CONDITION_CODE 0x00003e00 21822851890Sopenharmony_ci#define EMU10K1_DBG_SINGLE_STEP_ADDR 0x000001ff 21922851890Sopenharmony_ci#define TANKMEMADDRREG_ADDR_MASK 0x000fffff 22022851890Sopenharmony_ci#define TANKMEMADDRREG_CLEAR 0x00800000 22122851890Sopenharmony_ci#define TANKMEMADDRREG_ALIGN 0x00400000 22222851890Sopenharmony_ci#define TANKMEMADDRREG_WRITE 0x00200000 22322851890Sopenharmony_ci#define TANKMEMADDRREG_READ 0x00100000 22422851890Sopenharmony_cistruct snd_emu10k1_fx8010_info { 22522851890Sopenharmony_ci unsigned int internal_tram_size; 22622851890Sopenharmony_ci unsigned int external_tram_size; 22722851890Sopenharmony_ci char fxbus_names[16][32]; 22822851890Sopenharmony_ci char extin_names[16][32]; 22922851890Sopenharmony_ci char extout_names[32][32]; 23022851890Sopenharmony_ci unsigned int gpr_controls; 23122851890Sopenharmony_ci}; 23222851890Sopenharmony_ci#define EMU10K1_GPR_TRANSLATION_NONE 0 23322851890Sopenharmony_ci#define EMU10K1_GPR_TRANSLATION_TABLE100 1 23422851890Sopenharmony_ci#define EMU10K1_GPR_TRANSLATION_BASS 2 23522851890Sopenharmony_ci#define EMU10K1_GPR_TRANSLATION_TREBLE 3 23622851890Sopenharmony_ci#define EMU10K1_GPR_TRANSLATION_ONOFF 4 23722851890Sopenharmony_cienum emu10k1_ctl_elem_iface { 23822851890Sopenharmony_ci EMU10K1_CTL_ELEM_IFACE_MIXER = 2, 23922851890Sopenharmony_ci EMU10K1_CTL_ELEM_IFACE_PCM = 3, 24022851890Sopenharmony_ci}; 24122851890Sopenharmony_cistruct emu10k1_ctl_elem_id { 24222851890Sopenharmony_ci unsigned int pad; 24322851890Sopenharmony_ci int iface; 24422851890Sopenharmony_ci unsigned int device; 24522851890Sopenharmony_ci unsigned int subdevice; 24622851890Sopenharmony_ci unsigned char name[44]; 24722851890Sopenharmony_ci unsigned int index; 24822851890Sopenharmony_ci}; 24922851890Sopenharmony_cistruct snd_emu10k1_fx8010_control_gpr { 25022851890Sopenharmony_ci struct emu10k1_ctl_elem_id id; 25122851890Sopenharmony_ci unsigned int vcount; 25222851890Sopenharmony_ci unsigned int count; 25322851890Sopenharmony_ci unsigned short gpr[32]; 25422851890Sopenharmony_ci unsigned int value[32]; 25522851890Sopenharmony_ci unsigned int min; 25622851890Sopenharmony_ci unsigned int max; 25722851890Sopenharmony_ci unsigned int translation; 25822851890Sopenharmony_ci const unsigned int * tlv; 25922851890Sopenharmony_ci}; 26022851890Sopenharmony_cistruct snd_emu10k1_fx8010_control_old_gpr { 26122851890Sopenharmony_ci struct emu10k1_ctl_elem_id id; 26222851890Sopenharmony_ci unsigned int vcount; 26322851890Sopenharmony_ci unsigned int count; 26422851890Sopenharmony_ci unsigned short gpr[32]; 26522851890Sopenharmony_ci unsigned int value[32]; 26622851890Sopenharmony_ci unsigned int min; 26722851890Sopenharmony_ci unsigned int max; 26822851890Sopenharmony_ci unsigned int translation; 26922851890Sopenharmony_ci}; 27022851890Sopenharmony_cistruct snd_emu10k1_fx8010_code { 27122851890Sopenharmony_ci char name[128]; 27222851890Sopenharmony_ci __EMU10K1_DECLARE_BITMAP(gpr_valid, 0x200); 27322851890Sopenharmony_ci __u32 * gpr_map; 27422851890Sopenharmony_ci unsigned int gpr_add_control_count; 27522851890Sopenharmony_ci struct snd_emu10k1_fx8010_control_gpr * gpr_add_controls; 27622851890Sopenharmony_ci unsigned int gpr_del_control_count; 27722851890Sopenharmony_ci struct emu10k1_ctl_elem_id * gpr_del_controls; 27822851890Sopenharmony_ci unsigned int gpr_list_control_count; 27922851890Sopenharmony_ci unsigned int gpr_list_control_total; 28022851890Sopenharmony_ci struct snd_emu10k1_fx8010_control_gpr * gpr_list_controls; 28122851890Sopenharmony_ci __EMU10K1_DECLARE_BITMAP(tram_valid, 0x100); 28222851890Sopenharmony_ci __u32 * tram_data_map; 28322851890Sopenharmony_ci __u32 * tram_addr_map; 28422851890Sopenharmony_ci __EMU10K1_DECLARE_BITMAP(code_valid, 1024); 28522851890Sopenharmony_ci __u32 * code; 28622851890Sopenharmony_ci}; 28722851890Sopenharmony_cistruct snd_emu10k1_fx8010_tram { 28822851890Sopenharmony_ci unsigned int address; 28922851890Sopenharmony_ci unsigned int size; 29022851890Sopenharmony_ci unsigned int * samples; 29122851890Sopenharmony_ci}; 29222851890Sopenharmony_cistruct snd_emu10k1_fx8010_pcm_rec { 29322851890Sopenharmony_ci unsigned int substream; 29422851890Sopenharmony_ci unsigned int res1; 29522851890Sopenharmony_ci unsigned int channels; 29622851890Sopenharmony_ci unsigned int tram_start; 29722851890Sopenharmony_ci unsigned int buffer_size; 29822851890Sopenharmony_ci unsigned short gpr_size; 29922851890Sopenharmony_ci unsigned short gpr_ptr; 30022851890Sopenharmony_ci unsigned short gpr_count; 30122851890Sopenharmony_ci unsigned short gpr_tmpcount; 30222851890Sopenharmony_ci unsigned short gpr_trigger; 30322851890Sopenharmony_ci unsigned short gpr_running; 30422851890Sopenharmony_ci unsigned char pad; 30522851890Sopenharmony_ci unsigned char etram[32]; 30622851890Sopenharmony_ci unsigned int res2; 30722851890Sopenharmony_ci}; 30822851890Sopenharmony_ci#define SNDRV_EMU10K1_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1) 30922851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_INFO _IOR('H', 0x10, struct snd_emu10k1_fx8010_info) 31022851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_CODE_POKE _IOW('H', 0x11, struct snd_emu10k1_fx8010_code) 31122851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_CODE_PEEK _IOWR('H', 0x12, struct snd_emu10k1_fx8010_code) 31222851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_TRAM_SETUP _IOW('H', 0x20, int) 31322851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_TRAM_POKE _IOW('H', 0x21, struct snd_emu10k1_fx8010_tram) 31422851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_TRAM_PEEK _IOWR('H', 0x22, struct snd_emu10k1_fx8010_tram) 31522851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_PCM_POKE _IOW('H', 0x30, struct snd_emu10k1_fx8010_pcm_rec) 31622851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_PCM_PEEK _IOWR('H', 0x31, struct snd_emu10k1_fx8010_pcm_rec) 31722851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_PVERSION _IOR('H', 0x40, int) 31822851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_STOP _IO('H', 0x80) 31922851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_CONTINUE _IO('H', 0x81) 32022851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_ZERO_TRAM_COUNTER _IO('H', 0x82) 32122851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_SINGLE_STEP _IOW('H', 0x83, int) 32222851890Sopenharmony_ci#define SNDRV_EMU10K1_IOCTL_DBG_READ _IOR('H', 0x84, int) 32322851890Sopenharmony_ci#endif 324