From owner-freebsd-hackers Thu Nov 7 23:58:17 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 70DA437B401 for ; Thu, 7 Nov 2002 23:58:15 -0800 (PST) Received: from euclyde.cwglobal.ch (euclyde.cwglobal.ch [144.85.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93B8F43E42 for ; Thu, 7 Nov 2002 23:58:14 -0800 (PST) (envelope-from jmab@euclyde.cwglobal.ch) Received: from euclyde.cwglobal.ch (localhost.cwglobal.ch [127.0.0.1]) by euclyde.cwglobal.ch (8.12.6/8.12.6) with ESMTP id gA87ulHX031157; Fri, 8 Nov 2002 08:56:47 +0100 (CET) Received: (from jmab@localhost) by euclyde.cwglobal.ch (8.12.6/8.12.6/Submit) id gA87ukZ4031156; Fri, 8 Nov 2002 08:56:46 +0100 (CET) Date: Fri, 8 Nov 2002 08:56:46 +0100 From: Julien Mabillard To: Julian Elischer Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: sio i/o Message-ID: <20021108075645.GA31110@euclyde.cwglobal.ch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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 actually, i will code that as a pseudo device to manage a small box over serial line that manages some external devices. and i was also curious to know how to do it in userland, but i know i/o feels better in kernel :-) On Thu, Nov 07, 2002 at 10:23:16AM -0800, Julian Elischer wrote: > > > On Thu, 7 Nov 2002, 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 > > > > it depends if he wants to do it in or out of the kernel.. > He doesn't specify.. > :-/ > > > > > -- > > > > 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 > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- -------------------------------------------------------------------- Key fingerprint = D34A 577C 869B 28A2 3886 4298 50CB DC18 31A4 ACAD -------------------------------------------------------------------- email: jmab@gve.ch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message