*BSD News Article 55071


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.hawaii.edu!ames!purdue!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!uwm.edu!homer.alpha.net!solaris.cc.vt.edu!news.mathworks.com!news.kei.com!simtel!news00.sunet.se!sunic!news99.sunet.se!news.luth.se!eru.mt.luth.se!omega.ludd.luth.se!not-for-mail
From: peterb@ludd.luth.se (Peter Brevik)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Question: How to inportb() and  outportb() ....?
Date: 10 Nov 1995 18:12:50 +0100
Organization: Lulea University Computer Society - Ludd
Lines: 20
Message-ID: <48016i$42a@bob.ludd.luth.se>
NNTP-Posting-Host: bob.ludd.luth.se
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Summary: IO ports HOW?
Keywords: io,inb,outb,inport,outport,port
X-Newsreader: TIN [version 1.2 PL2]


    Hi!

I have a tuner card in my computer, which is connected via an ISA-16
bus. The card is controlled through inportb() and outportb() calls when
I use MSD-DOS, BUT, how do I access these functions in FreeBSD ..?

I succeded to get it work in Linux through ioperm(), and two assembler
macros. I hope that FreeBSD isn't too much harder..?

Extra info: card is a Tuner + Teletext chip + Audio control, wich is
controlled through a I2C(philips one)-bus. The I2C bus is controlled
through the ISA-16 bus, using one port.

    Please email answers -> peterb@ludd.luth.se

     Thanks on forehand :)

        /Peter