|
2 | 2 | #ifndef __SOUND_HDAUDIO_EXT_H |
3 | 3 | #define __SOUND_HDAUDIO_EXT_H |
4 | 4 |
|
5 | | -#include <linux/io-64-nonatomic-lo-hi.h> |
6 | | -#include <linux/iopoll.h> |
7 | 5 | #include <sound/hdaudio.h> |
8 | 6 |
|
9 | 7 | int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, |
@@ -119,49 +117,6 @@ int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *hlink) |
119 | 117 |
|
120 | 118 | void snd_hdac_ext_bus_link_power(struct hdac_device *codec, bool enable); |
121 | 119 |
|
122 | | -#define snd_hdac_adsp_writeb(chip, reg, value) \ |
123 | | - snd_hdac_reg_writeb(chip, (chip)->dsp_ba + (reg), value) |
124 | | -#define snd_hdac_adsp_readb(chip, reg) \ |
125 | | - snd_hdac_reg_readb(chip, (chip)->dsp_ba + (reg)) |
126 | | -#define snd_hdac_adsp_writew(chip, reg, value) \ |
127 | | - snd_hdac_reg_writew(chip, (chip)->dsp_ba + (reg), value) |
128 | | -#define snd_hdac_adsp_readw(chip, reg) \ |
129 | | - snd_hdac_reg_readw(chip, (chip)->dsp_ba + (reg)) |
130 | | -#define snd_hdac_adsp_writel(chip, reg, value) \ |
131 | | - snd_hdac_reg_writel(chip, (chip)->dsp_ba + (reg), value) |
132 | | -#define snd_hdac_adsp_readl(chip, reg) \ |
133 | | - snd_hdac_reg_readl(chip, (chip)->dsp_ba + (reg)) |
134 | | -#define snd_hdac_adsp_writeq(chip, reg, value) \ |
135 | | - snd_hdac_reg_writeq(chip, (chip)->dsp_ba + (reg), value) |
136 | | -#define snd_hdac_adsp_readq(chip, reg) \ |
137 | | - snd_hdac_reg_readq(chip, (chip)->dsp_ba + (reg)) |
138 | | - |
139 | | -#define snd_hdac_adsp_updateb(chip, reg, mask, val) \ |
140 | | - snd_hdac_adsp_writeb(chip, reg, \ |
141 | | - (snd_hdac_adsp_readb(chip, reg) & ~(mask)) | (val)) |
142 | | -#define snd_hdac_adsp_updatew(chip, reg, mask, val) \ |
143 | | - snd_hdac_adsp_writew(chip, reg, \ |
144 | | - (snd_hdac_adsp_readw(chip, reg) & ~(mask)) | (val)) |
145 | | -#define snd_hdac_adsp_updatel(chip, reg, mask, val) \ |
146 | | - snd_hdac_adsp_writel(chip, reg, \ |
147 | | - (snd_hdac_adsp_readl(chip, reg) & ~(mask)) | (val)) |
148 | | -#define snd_hdac_adsp_updateq(chip, reg, mask, val) \ |
149 | | - snd_hdac_adsp_writeq(chip, reg, \ |
150 | | - (snd_hdac_adsp_readq(chip, reg) & ~(mask)) | (val)) |
151 | | - |
152 | | -#define snd_hdac_adsp_readb_poll(chip, reg, val, cond, delay_us, timeout_us) \ |
153 | | - readb_poll_timeout((chip)->dsp_ba + (reg), val, cond, \ |
154 | | - delay_us, timeout_us) |
155 | | -#define snd_hdac_adsp_readw_poll(chip, reg, val, cond, delay_us, timeout_us) \ |
156 | | - readw_poll_timeout((chip)->dsp_ba + (reg), val, cond, \ |
157 | | - delay_us, timeout_us) |
158 | | -#define snd_hdac_adsp_readl_poll(chip, reg, val, cond, delay_us, timeout_us) \ |
159 | | - readl_poll_timeout((chip)->dsp_ba + (reg), val, cond, \ |
160 | | - delay_us, timeout_us) |
161 | | -#define snd_hdac_adsp_readq_poll(chip, reg, val, cond, delay_us, timeout_us) \ |
162 | | - readq_poll_timeout((chip)->dsp_ba + (reg), val, cond, \ |
163 | | - delay_us, timeout_us) |
164 | | - |
165 | 120 | struct hdac_ext_device; |
166 | 121 |
|
167 | 122 | /* ops common to all codec drivers */ |
|
0 commit comments