*BSD News Article 55038


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!usenet.eel.ufl.edu!col.hp.com!sdd.hp.com!swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!uwm.edu!spool.mu.edu!agate!reason.cdrom.com!usenet
From: "Jordan K. Hubbard" <jkh@FreeBSD.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Question: How to inportb() and  outportb() ....?
Date: Fri, 10 Nov 1995 18:38:15 -0800
Organization: Walnut Creek CDROM
Lines: 8
Message-ID: <30A40C97.15FB7483@FreeBSD.org>
References: <48016i$42a@bob.ludd.luth.se>
NNTP-Posting-Host: time.cdrom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b2 (X11; I; FreeBSD 2.1-STABLE i386)
To: Peter Brevik <peterb@ludd.luth.se>

Just open /dev/io, then you'll have permission to do these operations.

I think we do expect you to use gcc's asm() statement to invoke the
inb/outb insns directly (see X server sources for examples) and I'm not
sure if there are C callable wrappers, but I could be wrong.  Not a
feature I use very much.. :-)
-- 
						Jordan