Home | History | Annotate | Download | only in WinQuake

Lines Matching refs:dma

48 static	int dma;

79 Con_Printf("dma=%d\n", dma);
82 Con_Printf("dma position:%i\n", BLASTER_GetDMAPos ());
284 // use a high dma channel if specified
285 if (high_dma && dsp_version >= 4) // 8 bit snd can never use 16 bit dma
286 dma = high_dma;
288 dma = low_dma;
290 Con_Printf ("Using DMA channel %i\n", dma);
292 if (dma > 3)
307 dos_outportb(disable_reg, dma|4); // disable channel
311 +(1<<4) // auto-init dma
313 +(dma&3); // channel #
318 dos_outportb(page_reg[dma], realaddr >> 16);
320 if (dma > 3)
323 dos_outportb(addr_reg[dma], (realaddr>>1) & 0xff);
324 dos_outportb(addr_reg[dma], (realaddr>>9) & 0xff);
327 dos_outportb(count_reg[dma], ((dma_size>>1)-1) & 0xff);
328 dos_outportb(count_reg[dma], ((dma_size>>1)-1) >> 8);
333 dos_outportb(addr_reg[dma], realaddr & 0xff);
334 dos_outportb(addr_reg[dma], (realaddr>>8) & 0xff);
337 dos_outportb(count_reg[dma], (dma_size-1) & 0xff);
338 dos_outportb(count_reg[dma], (dma_size-1) >> 8);
342 dos_outportb(disable_reg, dma&~4);
389 // we need at least v2 for auto-init dma
444 Con_Printf("Couldn't allocate sound dma buffer");
476 inside the recirculating dma buffer, so the mixing code will know
492 // load the current dma count register
493 if (dma < 4)
496 count = dos_inportb(dma*2+1);
497 count += dos_inportb(dma*2+1) << 8;
505 count = dos_inportb(0xc0+(dma-4)*4+2);
506 count += dos_inportb(0xc0+(dma-4)*4+2) << 8;
512 // Con_Printf("DMA pos = 0x%x\n", count);
544 dos_outportb(disable_reg, dma|4); // disable dma channel
599 inside the recirculating dma buffer, so the mixing code will know
647 Send sound to device if buffer isn't really the dma buffer