*BSD News Article 80661


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!newsfeed.internetmci.com!feed1.news.erols.com!uunet!news-in2.uu.net!EU.net!main.Germany.EU.net!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: need help accessing device i/o memory from device driver
Date: 11 Oct 1996 08:45:03 GMT
Organization: Private BSD site, Dresden
Lines: 21
Message-ID: <53l1ef$4ia@uriah.heep.sax.de>
References: <325b02fd.1625642@news.ma.ultranet.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

moncrg@ultranet.com (Gregory D. Moncreaff) wrote:

> I'm working on a device driver for a serial board under Freebsd.  I
> did a hack and slash on a similar driver that used the same serial
> chips as the board I'm working with.  The only difference is that the
> new board has a dual-port ram and the old board/driver didn't.
> 
> What I don't understand is how you "wire" pages of, virtual I guess,
> memory to a physical location.

Is your memory located in the ``ISA hole'', or somewhere in the upper
memory?  The ISA hole is already mapped.  For the upper memory area,
you could perhaps adopt the algorithm used in the /dev/mem
implementation.

-- 
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. ;-)