Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!EU.net!Austria.EU.net!01-newsfeed.univie.ac.at!swidir.switch.ch!news.rccn.net!morgana.mat.uc.pt!usenet From: Filipe Araujo <filipius@mercurio.uc.pt> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: DMA Date: Mon, 18 Nov 1996 16:41:32 +0100 Organization: Lab. Redes de Alta Velocidade - DEE - FCTUC Lines: 35 Message-ID: <329083AC.7048@mercurio.uc.pt> References: <328C8861.48A3@mercurio.uc.pt> <56mjnr$b4a@uriah.heep.sax.de> NNTP-Posting-Host: obelix.dei.uc.pt Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.02Gold (Win95; I) To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> J Wunsch wrote: > What DMA? ISA motherboard DMA? See the isa_dma_* functions in > sys/i386/isa/isa.c. > To tell the truth I'm not sure. I'm developping a device-driver for a PCI network adapter and I believe it does busmaster DMA. > Busmaster DMA is more tricky. I don't think there's a description > available yet... Perhaps you should bug the developers to write one, > and volunteer to contribute man pages for the PCI DMA handling. :) > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) I believe I must follow these steps: - allocate contiguous memory under 16 MB; - give the physical addresses (and sizes) to the adapter; - lock the corresponding pages in central memory (how?); The adapter is now able to perform DMA. Is this correct? Thank you very much. Filipe Machado de Araujo Departamento de Engenharia de Informatica Faculdade de Ciencias e Tecnologia Universidade de Coimbra Portugal