From owner-freebsd-questions Mon Feb 5 9:52: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from d9168.upc-d.chello.nl (d9168.upc-d.chello.nl [213.46.9.168]) by hub.freebsd.org (Postfix) with ESMTP id 10DFE37B6A3 for ; Mon, 5 Feb 2001 09:51:39 -0800 (PST) Received: by d9168.upc-d.chello.nl (Postfix, from userid 1001) id E63A7EF; Mon, 5 Feb 2001 18:51:38 +0100 (CET) Date: Mon, 5 Feb 2001 18:51:38 +0100 From: Edwin Groothuis To: Marcus Ramos Cc: freebsd-questions@freebsd.org Subject: Re: Linux header files in FreeBSD Message-ID: <20010205185138.M62745@d9168.upc-d.chello.nl> Mail-Followup-To: Edwin Groothuis , Marcus Ramos , freebsd-questions@freebsd.org References: <3A7EE6BD.10677E6E@ansp.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A7EE6BD.10677E6E@ansp.br>; from marcus@ansp.br on Mon, Feb 05, 2001 at 03:45:33PM -0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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