From owner-freebsd-hackers Thu Nov 7 7:51:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B38A837B401 for ; Thu, 7 Nov 2002 07:51:39 -0800 (PST) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4678B43E3B for ; Thu, 7 Nov 2002 07:51:39 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 10752 invoked from network); 7 Nov 2002 15:51:39 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 7 Nov 2002 15:51:39 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gA7FpTn5056333; Thu, 7 Nov 2002 10:51:29 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20021107150542.A28917@infradead.org> Date: Thu, 07 Nov 2002 10:51:31 -0500 (EST) From: John Baldwin To: Christoph Hellwig Subject: Re: sio i/o Cc: freebsd-hackers@FreeBSD.ORG, Julien Mabillard Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 07-Nov-2002 Christoph Hellwig wrote: > On Thu, Nov 07, 2002 at 09:33:29AM -0500, John Baldwin wrote: >> >> On 07-Nov-2002 Julien Mabillard wrote: >> > hi, >> > can anyone tell me where inb(), outb() are defined >> > in the sources (FreeBSD RELENG_4_7 or CURRENT)? >> > on linux systems this is defined in >> >> For FreeBSD should be using bus_space_read_1() and bus_space_write_1() >> instead. However, you can find inb() and outb() in >> on i386 and compatibility macros for some other >> arch's in > > Umm, ispurely a userland header on linux, so he's probably > referring to the userland versions of those that are provided by the > linux ports with PC-like hardware.. Doing I/O from userland generally isn't supported. A header with is a kernel header though, not a userland one. :) For i386-only, if you do the right calls to obtain permission to do I/O, the functions in machine/cpufunc.h should work however. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message