1
2
3
4
5
6
7
8 #ifndef __VXPOCKET_H
9 #define __VXPOCKET_H
10
11 #include <sound/vx_core.h>
12
13 #include <pcmcia/cistpl.h>
14 #include <pcmcia/ds.h>
15
16 struct snd_vxpocket {
17
18 struct vx_core core;
19
20 unsigned long port;
21
22 int mic_level;
23
24 unsigned int regCDSP;
25 unsigned int regDIALOG;
26
27 int index;
28
29
30 struct pcmcia_device *p_dev;
31 };
32
33 #define to_vxpocket(x) container_of(x, struct snd_vxpocket, core)
34
35 extern struct snd_vx_ops snd_vxpocket_ops;
36
37 void vx_set_mic_boost(struct vx_core *chip, int boost);
38 void vx_set_mic_level(struct vx_core *chip, int level);
39
40 int vxp_add_mic_controls(struct vx_core *chip);
41
42
43 #define CDSP_MAGIC 0xA7
44
45 #define VXP_CDSP_CLOCKIN_SEL_MASK 0x80
46 #define VXP_CDSP_DATAIN_SEL_MASK 0x40
47 #define VXP_CDSP_SMPTE_SEL_MASK 0x20
48 #define VXP_CDSP_RESERVED_MASK 0x10
49 #define VXP_CDSP_MIC_SEL_MASK 0x08
50 #define VXP_CDSP_VALID_IRQ_MASK 0x04
51 #define VXP_CDSP_CODEC_RESET_MASK 0x02
52 #define VXP_CDSP_DSP_RESET_MASK 0x01
53
54 #define P24_CDSP_MICS_SEL_MASK 0x18
55 #define P24_CDSP_MIC20_SEL_MASK 0x10
56 #define P24_CDSP_MIC38_SEL_MASK 0x08
57
58
59 #define P44_MEMIRQ_MASTER_SLAVE_SEL_MASK 0x08
60 #define P44_MEMIRQ_SYNCED_ALONE_SEL_MASK 0x04
61 #define P44_MEMIRQ_WCLK_OUT_IN_SEL_MASK 0x02
62 #define P44_MEMIRQ_WCLK_UER_SEL_MASK 0x01
63
64
65
66
67 #define VXP_DLG_XILINX_REPROG_MASK 0x80
68 #define VXP_DLG_DATA_XICOR_MASK 0x80
69 #define VXP_DLG_RESERVED4_0_MASK 0x40
70 #define VXP_DLG_RESERVED2_0_MASK 0x20
71 #define VXP_DLG_RESERVED1_0_MASK 0x10
72 #define VXP_DLG_DMAWRITE_SEL_MASK 0x08
73 #define VXP_DLG_DMAREAD_SEL_MASK 0x04
74 #define VXP_DLG_MEMIRQ_MASK 0x02
75 #define VXP_DLG_DMA16_SEL_MASK 0x02
76 #define VXP_DLG_ACK_MEMIRQ_MASK 0x01
77
78
79 #endif