*BSD News Article 51997


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!inf2hro!odie.physik2.uni-rostock.de!uphya001
From: uphya001@odie.physik2.uni-rostock.de (Lars Koeller)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD equivalent for Linux ioperm() ???
Date: 24 Sep 1995 18:41:31 GMT
Organization: University of Rostock, Germany
Lines: 25
Message-ID: <4448or$fps@taiwan.informatik.uni-rostock.de>
References: <43muf2$jv1@crcnis3.unl.edu> <43o8a9$g8s@reason.cdrom.com>
NNTP-Posting-Host: odie.physik2.uni-rostock.de

In article <43o8a9$g8s@reason.cdrom.com>, "Jordan K. Hubbard" <jkh@FreeBSD.org> writes:
|> Open /dev/iop and you can then execute inb and outb insns directly.
|> -- 
|> 						Jordan
|> 

      Oh yes, this is more a dream than a fact in 2.0.5! I try to compile a
   lib with some  inb/outb code for  a specific  card which runs  well with
   1.1.5.1 but the first thing is the missing  pio.h file  after I've found
   the inb/outb macros  in    machine/cpufunc.h cc generates some    mystic
   errors: 

cc -Wall -g -c trprog.c
/usr/include/machine/cpufunc.h: In function `inbc':
/usr/include/machine/cpufunc.h:125: inconsistent operand constraints in an `asm'
/usr/include/machine/cpufunc.h: In function `outbc':
/usr/include/machine/cpufunc.h:132: inconsistent operand constraints in an `asm'
*** Error code 1


   What is wrong with this include file?

   Lars