Lines Matching refs:gf1
90 if (gus->gf1.res_port2 == NULL) in snd_gus_free()
95 release_and_free_resource(gus->gf1.res_port1); in snd_gus_free()
96 release_and_free_resource(gus->gf1.res_port2); in snd_gus_free()
97 if (gus->gf1.irq >= 0) in snd_gus_free()
98 free_irq(gus->gf1.irq, (void *) gus); in snd_gus_free()
99 if (gus->gf1.dma1 >= 0) { in snd_gus_free()
100 disable_dma(gus->gf1.dma1); in snd_gus_free()
101 free_dma(gus->gf1.dma1); in snd_gus_free()
103 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free()
104 disable_dma(gus->gf1.dma2); in snd_gus_free()
105 free_dma(gus->gf1.dma2); in snd_gus_free()
144 gus->gf1.irq = -1; in snd_gus_create()
145 gus->gf1.dma1 = -1; in snd_gus_create()
146 gus->gf1.dma2 = -1; in snd_gus_create()
148 gus->gf1.port = port; in snd_gus_create()
150 gus->gf1.reg_page = GUSP(gus, GF1PAGE); in snd_gus_create()
151 gus->gf1.reg_regsel = GUSP(gus, GF1REGSEL); in snd_gus_create()
152 gus->gf1.reg_data8 = GUSP(gus, GF1DATAHIGH); in snd_gus_create()
153 gus->gf1.reg_data16 = GUSP(gus, GF1DATALOW); in snd_gus_create()
154 gus->gf1.reg_irqstat = GUSP(gus, IRQSTAT); in snd_gus_create()
155 gus->gf1.reg_dram = GUSP(gus, DRAM); in snd_gus_create()
156 gus->gf1.reg_timerctrl = GUSP(gus, TIMERCNTRL); in snd_gus_create()
157 gus->gf1.reg_timerdata = GUSP(gus, TIMERDATA); in snd_gus_create()
159 gus->gf1.res_port1 = request_region(port, 16, "GUS GF1 (Adlib/SB)"); in snd_gus_create()
160 if (!gus->gf1.res_port1) { in snd_gus_create()
165 gus->gf1.res_port2 = request_region(port + 0x100, 12, "GUS GF1 (Synth)"); in snd_gus_create()
166 if (!gus->gf1.res_port2) { in snd_gus_create()
176 gus->gf1.irq = irq; in snd_gus_create()
183 gus->gf1.dma1 = dma1; in snd_gus_create()
190 gus->gf1.dma2 = dma2; in snd_gus_create()
192 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create()
206 gus->gf1.effect = effect ? 1 : 0; in snd_gus_create()
207 gus->gf1.active_voices = voices; in snd_gus_create()
208 gus->gf1.pcm_channels = pcm_channels; in snd_gus_create()
209 gus->gf1.volume_ramp = 25; in snd_gus_create()
210 gus->gf1.smooth_pan = 1; in snd_gus_create()
232 snd_printk(KERN_ERR "plain GF1 card at 0x%lx without onboard DRAM?\n", gus->gf1.port); in snd_gus_detect_memory()
245 gus->gf1.memory = idx << 18; in snd_gus_detect_memory()
247 gus->gf1.memory = 256 * 1024; in snd_gus_detect_memory()
249 for (l = 0, local = gus->gf1.memory; l < 4; l++, local -= 256 * 1024) { in snd_gus_detect_memory()
250 gus->gf1.mem_alloc.banks_8[l].address = in snd_gus_detect_memory()
251 gus->gf1.mem_alloc.banks_8[l].size = 0; in snd_gus_detect_memory()
252 gus->gf1.mem_alloc.banks_16[l].address = l << 18; in snd_gus_detect_memory()
253 gus->gf1.mem_alloc.banks_16[l].size = local > 0 ? 256 * 1024 : 0; in snd_gus_detect_memory()
255 gus->gf1.mem_alloc.banks_8[0].size = gus->gf1.memory; in snd_gus_detect_memory()
281 dma1 = gus->gf1.dma1; in snd_gus_init_dma_irq()
284 dma2 = gus->gf1.dma2; in snd_gus_init_dma_irq()
293 irq = gus->gf1.irq; in snd_gus_init_dma_irq()
360 snd_printdd("GF1 [0x%lx] init - val = 0x%x, rev = 0x%x\n", gus->gf1.port, val, rev); in snd_gus_check_version()
385 …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()