LCDproc development and user support list

Text archives Help

[Lcdproc] some drivers will only compile on i386

Chronological Thread 
  • From: gfk AT (Guillaume Filion)
  • Subject: [Lcdproc] some drivers will only compile on i386
  • Date: Sat Mar 2 14:29:01 2002

At 22:49 -0500 01/03/02, Guillaume Filion wrote:
>But ioperm is not defined either, and I can't find a substitute... Any idea=

According to
On Mon, Apr 09, 2001 at 01:21:36AM +0200, Manuel Estrada Sainz wrote:
> On Sat, Apr 07, 2001 at 04:16:03AM -0600, Ivan E. Moore II wrote:
> > Package: jslaunch
> > Severity: serious
> >
> > the package is set to i386 only when it builds fine on alpha.
> jslaunch cannot be built on m68k, nor any other system that does not
> support 'inb' or 'ioperm' system calls due to lack of the IO ports
> 'feature'. So Architecture should not be any, at least m68k and powerpc
> should be excluded.

That's because those archs have no use for them, and you can safely
ignore them on those archs for the most part. IOW:

#if defined(i386) || defined(alpha)


/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
bcollins AT
bcollins AT
bcollins AT

So I guess I'll just put something like this:
static inline int port_access (unsigned short int port) {
#if define (HAVE_IOPERM)
return ioperm(port, 1, 255);
#else if define (HAVE_I386_SET_IOPERM)
[stuff using i386_set_ioperm]
#else if define (HAVE__DEV_IO)
if (port_access_handle =3D fopen("/dev/io", "rw")) !=3D NULL) return 0;
return 0;

And hope that it will work... Any comments or ideas?

Guillaume Filion
Logidac Tech., Beaumont, Qu=E9bec, Canada -
PGP Key and more: (this will redirect)
PGP Fingerprint: 14A6 720A F7BA 6C87 2331 33FD 467E 9198 3DED D5CA

Archive powered by MHonArc 2.6.18.

Top of page