From owner-freebsd-hackers Thu Oct 8 07:37:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08404 for freebsd-hackers-outgoing; Thu, 8 Oct 1998 07:37:10 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA08390 for ; Thu, 8 Oct 1998 07:36:56 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA10560; Thu, 8 Oct 1998 13:36:19 +0100 From: Luigi Rizzo Message-Id: <199810081236.NAA10560@labinfo.iet.unipi.it> Subject: Re: DMA questions To: lile@stdio.com (Larry S. Lile) Date: Thu, 8 Oct 1998 13:36:19 +0100 (MET) Cc: hackers@FreeBSD.ORG In-Reply-To: from "Larry S. Lile" at Oct 8, 98 09:45:31 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I am working on a driver for Olicom token-ring cards and using the > Linux driver as a guideline but I am unsure about the dma commands > they are using. Any ideas on how to replicate this under FreeBSD? > > Also is > there any good reference for dma under FreeBSD I can't seem to find much? UTSL i am afraid... sys/i386/isa/isa.c is about all you have :( > > clear_dma_ff(dmachan); < This is what I am confused > > set_dma_count (dmachan, 0); < about... > > set_dma_mode (dmachan, 0xc0); < > > enable_dma (dmachan); < these seem to be directly mapped to actions you can do on the DMA registers. I think isa_dmastart() and friends do most if not all you need. You have to figure out if the above sets the dma in single or auto mode, that's all. A good reference on the various ISA peripheral is at www.intel.com as part of the PIIX controller data sheets (i82371 if i am not mistaken). This chip includes most ISA peripherals (serial, parallel, IDE, timer, DMA, interrupt controllers...). 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/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message