Lines Matching refs:gf1

104 	if (gus->gf1.res_port2 == NULL)  in snd_gus_free()
109 release_and_free_resource(gus->gf1.res_port1); in snd_gus_free()
110 release_and_free_resource(gus->gf1.res_port2); in snd_gus_free()
111 if (gus->gf1.irq >= 0) in snd_gus_free()
112 free_irq(gus->gf1.irq, (void *) gus); in snd_gus_free()
113 if (gus->gf1.dma1 >= 0) { in snd_gus_free()
114 disable_dma(gus->gf1.dma1); in snd_gus_free()
115 free_dma(gus->gf1.dma1); in snd_gus_free()
117 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free()
118 disable_dma(gus->gf1.dma2); in snd_gus_free()
119 free_dma(gus->gf1.dma2); in snd_gus_free()
158 gus->gf1.irq = -1; in snd_gus_create()
159 gus->gf1.dma1 = -1; in snd_gus_create()
160 gus->gf1.dma2 = -1; in snd_gus_create()
162 gus->gf1.port = port; in snd_gus_create()
164 gus->gf1.reg_page = GUSP(gus, GF1PAGE); in snd_gus_create()
165 gus->gf1.reg_regsel = GUSP(gus, GF1REGSEL); in snd_gus_create()
166 gus->gf1.reg_data8 = GUSP(gus, GF1DATAHIGH); in snd_gus_create()
167 gus->gf1.reg_data16 = GUSP(gus, GF1DATALOW); in snd_gus_create()
168 gus->gf1.reg_irqstat = GUSP(gus, IRQSTAT); in snd_gus_create()
169 gus->gf1.reg_dram = GUSP(gus, DRAM); in snd_gus_create()
170 gus->gf1.reg_timerctrl = GUSP(gus, TIMERCNTRL); in snd_gus_create()
171 gus->gf1.reg_timerdata = GUSP(gus, TIMERDATA); in snd_gus_create()
173 if ((gus->gf1.res_port1 = request_region(port, 16, "GUS GF1 (Adlib/SB)")) == NULL) { in snd_gus_create()
178 if ((gus->gf1.res_port2 = request_region(port + 0x100, 12, "GUS GF1 (Synth)")) == NULL) { in snd_gus_create()
188 gus->gf1.irq = irq; in snd_gus_create()
194 gus->gf1.dma1 = dma1; in snd_gus_create()
201 gus->gf1.dma2 = dma2; in snd_gus_create()
203 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create()
217 gus->gf1.effect = effect ? 1 : 0; in snd_gus_create()
218 gus->gf1.active_voices = voices; in snd_gus_create()
219 gus->gf1.pcm_channels = pcm_channels; in snd_gus_create()
220 gus->gf1.volume_ramp = 25; in snd_gus_create()
221 gus->gf1.smooth_pan = 1; in snd_gus_create()
242 snd_printk(KERN_ERR "plain GF1 card at 0x%lx without onboard DRAM?\n", gus->gf1.port); in snd_gus_detect_memory()
255 gus->gf1.memory = idx << 18; in snd_gus_detect_memory()
257 gus->gf1.memory = 256 * 1024; in snd_gus_detect_memory()
259 for (l = 0, local = gus->gf1.memory; l < 4; l++, local -= 256 * 1024) { in snd_gus_detect_memory()
260 gus->gf1.mem_alloc.banks_8[l].address = in snd_gus_detect_memory()
261 gus->gf1.mem_alloc.banks_8[l].size = 0; in snd_gus_detect_memory()
262 gus->gf1.mem_alloc.banks_16[l].address = l << 18; in snd_gus_detect_memory()
263 gus->gf1.mem_alloc.banks_16[l].size = local > 0 ? 256 * 1024 : 0; in snd_gus_detect_memory()
265 gus->gf1.mem_alloc.banks_8[0].size = gus->gf1.memory; in snd_gus_detect_memory()
291 dma1 = gus->gf1.dma1; in snd_gus_init_dma_irq()
294 dma2 = gus->gf1.dma2; in snd_gus_init_dma_irq()
303 irq = gus->gf1.irq; in snd_gus_init_dma_irq()
370 snd_printdd("GF1 [0x%lx] init - val = 0x%x, rev = 0x%x\n", gus->gf1.port, val, rev); in snd_gus_check_version()
395 …snd_printk(KERN_ERR "unknown GF1 revision number at 0x%lx - 0x%x (0x%x)\n", gus->gf1.port, rev, va… in snd_gus_check_version()