Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2001 18:51:38 +0100
From:      Edwin Groothuis <mavetju@chello.nl>
To:        Marcus Ramos <marcus@ansp.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Linux header files in FreeBSD
Message-ID:  <20010205185138.M62745@d9168.upc-d.chello.nl>
In-Reply-To: <3A7EE6BD.10677E6E@ansp.br>; from marcus@ansp.br on Mon, Feb 05, 2001 at 03:45:33PM -0200
References:  <3A7EE6BD.10677E6E@ansp.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 05, 2001 at 03:45:33PM -0200, Marcus Ramos wrote:
> I am trying to port some code from Linux to FreeBSD (4.1 Release), but
> was not able to find the equivalent FreeBSD header files to the
> following original Linux:
> 
> /usr/include/linux/ioport.h
> /usr/include/linux/pci.h
> /usr/include/asm/io.h
> /usr/include/asm/irq.h

Welcome to the world of incompatibilities....

What I normally do in such a case is just uncommenting them and
seeing where it goes wrong, i.e. if it barks about PCI_something,
do a "find /usr/include -name *.h | xargs grep PCI_something" and
pray that I get a hit.

When you're porting on ioport- and pci-level, pray a lot :-/

Edwin

-- 
Edwin Groothuis   |           Interested in MUDs? Visit Fatal Dimensions:
mavetju@chello.nl |                     http://fataldimensions.nl.eu.org/
------------------+               telnet://fataldimensions.nl.eu.org:4000


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010205185138.M62745>