1
2
3
4
5
6
7
8
9
10
11 #ifndef __INCLUDE_SOUND_SOF_H
12 #define __INCLUDE_SOUND_SOF_H
13
14 #include <linux/pci.h>
15 #include <sound/soc.h>
16 #include <sound/soc-acpi.h>
17
18 struct snd_sof_dsp_ops;
19
20
21
22
23 struct snd_sof_pdata {
24 const struct firmware *fw;
25 const char *drv_name;
26 const char *name;
27 const char *platform;
28
29 struct device *dev;
30
31
32
33
34
35
36
37
38 void (*sof_probe_complete)(struct device *dev);
39
40
41 const struct sof_dev_desc *desc;
42
43
44 const char *fw_filename_prefix;
45 const char *fw_filename;
46 const char *tplg_filename_prefix;
47 const char *tplg_filename;
48
49
50 struct platform_device *pdev_mach;
51 const struct snd_soc_acpi_mach *machine;
52
53 void *hw_pdata;
54 };
55
56
57
58
59
60 struct sof_dev_desc {
61
62 struct snd_soc_acpi_mach *machines;
63
64
65
66 int resindex_lpe_base;
67 int resindex_pcicfg_base;
68 int resindex_imr_base;
69 int irqindex_host_ipc;
70 int resindex_dma_base;
71
72
73 int dma_engine;
74 int dma_size;
75
76
77 int ipc_timeout;
78 int boot_timeout;
79
80
81 const void *chip_info;
82
83
84 const char *nocodec_fw_filename;
85 const char *nocodec_tplg_filename;
86
87
88 const char *default_fw_path;
89 const char *default_tplg_path;
90
91 const struct snd_sof_dsp_ops *ops;
92 const struct sof_arch_ops *arch_ops;
93 };
94
95 int sof_nocodec_setup(struct device *dev,
96 struct snd_sof_pdata *sof_pdata,
97 struct snd_soc_acpi_mach *mach,
98 const struct sof_dev_desc *desc,
99 const struct snd_sof_dsp_ops *ops);
100 #endif