Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "B. James Phillippe" <bryan@terran.org>
To: Martin Ostermann <ost@comnets.rwth-aachen.de>
Cc: Brendan Miller <brmiller@netgate.net>,
	RedHat AXP list <axp-list@redhat.com>
Subject: Re: Newbie to port-IO programming on Alpha
Date: Sun, 14 Mar 1999 14:42:31 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.05.9903141429050.9866-100000@earth.terran.org> (raw)
In-Reply-To: <43n21gteuw.fsf@comnets.rwth-aachen.de>

On 14 Mar 1999, Martin Ostermann wrote:

> On Sun, 14 Mar 1999 01:15:00 -0800 (PST), "B. James Phillippe" <bryan@terran.org> said:
> > IO functions are defined in <asm/io.h>.
> 
> Well, those define the kernel io functions. They will only work on the
> architecture on which you compile your stuff, if they compile at all.

The kernel IO functions are the only IO functions, unless you write your
own architecture-dependent version for every CPU you plan to support in
your code.  There are no IO definitions in the standard library, and it
doesn't make sense for there to be any; IO is inherently
architecture-dependent.  And what do you mean "if they compile at all"?

> Rather use the glibc include file, maybe <sys/io.h>? Try a 
> 'find /usr/include -name io.h -print' to find them, Or a
> 'grep outb /usr/include/{*,*/*}'

All <sys/io.h> does is #include <asm/io.h>; there is no such thing as a
non architecture-dependant IO definition.  If you only care about
compiling on systems after glibc, <sys/io.h> is the header to use.  But
there is no <sys/io.h> for libc5, so YMMV.

-bp
--
B. James Phillippe		. bryan@terran.org
Software Engineer, WGT Inc.	. http://www.terran.org/~bryan


  reply	other threads:[~1999-03-14 22:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-14  3:36 Newbie to port-IO programming on Alpha Brendan Miller
1999-03-14  9:15 ` B. James Phillippe
1999-03-14 12:50   ` Martin Ostermann
1999-03-14 22:42     ` B. James Phillippe [this message]
1999-03-15  5:11       ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller
1999-03-15 13:44         ` Christopher C Chimelis
1999-03-16 18:07         ` Philip Blundell
     [not found]         ` <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org>
1999-03-29  6:37           ` Brendan Miller
     [not found]             ` <E10RZUl-0007TN-00@fountain.nexus.co.uk>
1999-03-29 16:50               ` Brendan Miller
1999-03-29 17:10                 ` Phil Blundell
1999-03-30  3:11                   ` Brendan Miller
1999-03-30  8:58                     ` Phil Blundell
1999-04-06  5:19                       ` QuickCam supported on Alpha?2 Brendan Miller
1999-04-06  9:03                         ` Phil Blundell
1999-03-15  9:35       ` Newbie to port-IO programming on Alpha Martin Ostermann
1999-03-15 17:18         ` B. James Phillippe
1999-03-16 13:21           ` Maciej W. Rozycki
1999-03-16 17:25             ` B. James Phillippe
1999-03-16 18:07           ` Philip Blundell
1999-03-14  9:53 ` Bart Warmerdam
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox