From owner-freebsd-hackers Sun Dec 14 10:59:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA28657 for hackers-outgoing; Sun, 14 Dec 1997 10:59:22 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id KAA28646 for ; Sun, 14 Dec 1997 10:59:16 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xhJFt-0006zk-00; Sun, 14 Dec 1997 11:59:09 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.8/8.8.3) with ESMTP id MAA04338; Sun, 14 Dec 1997 12:00:17 -0700 (MST) Message-Id: <199712141900.MAA04338@harmony.village.org> To: gjp@erols.net (Gary Palmer) Subject: Re: Beginning SPARC port Cc: itojun@itojun.org, hackers@freebsd.org In-reply-to: Your message of "Sun, 14 Dec 1997 00:06:53 EST." <199712140506.AAA17194@mutara.noc.erols.net> References: <199712140506.AAA17194@mutara.noc.erols.net> <199712140433.XAA17136@mutara.noc.erols.net> <16085.882074445@coconut.itojun.org> Date: Sun, 14 Dec 1997 12:00:17 -0700 From: Warner Losh Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199712140506.AAA17194@mutara.noc.erols.net> Gary Palmer writes: : What I am trying to say is that while it may not be the Politically : Correct(TM) solution, it is not totally i386 bound either. Being : #defines, its a bit more flexible than you were making out. For a long time Linux has used outb/inb (and maybe still does) for accessing I/O space. On the Linux/MIPS ports, these functions are basically #define outb(port,value) *((char *) (base + port)) = value On the MIPS machines that Linux is being ported to, the I/O space is mapped at various locations depending on the machine type and sometimes on the device being mapped (on ISA bus, on EISA bus or on motherboard). Warner