From owner-freebsd-multimedia Mon Jul 21 11:04:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA29639 for multimedia-outgoing; Mon, 21 Jul 1997 11:04:53 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA29624; Mon, 21 Jul 1997 11:04:40 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id TAA21422; Mon, 21 Jul 1997 19:01:59 +0200 From: Luigi Rizzo Message-Id: <199707211701.TAA21422@labinfo.iet.unipi.it> Subject: Re: auto dma? To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Mon, 21 Jul 1997 19:01:59 +0200 (MET DST) Cc: hasty@rah.star-gate.com, hackers@FreeBSD.ORG, multimedia@FreeBSD.ORG In-Reply-To: <199707211744.DAA24577@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jul 22, 97 03:14:25 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Amancio Hasty stands accused of saying: > > > > luigi@labinfo.iet.unipi.it said: > > > I am looking at Mike's idea of using DMA_AUTOMODE and a circular > > > buffer, but unfortunately there are no support routines to read the ... > > Does anyone know how to read the current number of bytes transferred in > > in a dma transfer? the intel data sheet for the i82371 (also known as PIIX), a PCI chipset which implements a number of standard isa devices including timer and dma controller, is available at the intel site (www.intel.com). Although it probably is not exactly the same as the original 8237, it myght still give some ideas on what to do. The main problem with old peripherals is that they often did not allow a safe reading of 16-bit registers such as counters, which can be incremented while you read the two pieces. I don't know if this affected the original 8237, but sure was a problem with some old PC timer. Apart from this, I'd look in the PIIX data sheet. Finally, if someone is familiar with Linux or NetBSD kernel (specifically for the isa routines) let me know. Cheers Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________