LCDproc development and user support list

Text archives Help


[Lcdproc] some drivers will only compile on i386


Chronological Thread 
  • From: gfk AT logidac.com (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
http://lists.debian.org/debian-devel/2001/debian-devel-200104/msg00632.html
:
-----
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)
ioperm(...);
#endif


Ben

--
-----------=3D=3D=3D=3D=3D=3D=3D-=3D-=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=
=3D=3D=3D-----------=3D=3D=3D=3D=3D------------=3D-=3D------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
`
bcollins AT debian.org
--
bcollins AT openldap.org
--
bcollins AT linux.com
'
`---=3D=3D=3D=3D=3D=3D=3D=3D=3D------=3D=3D=3D=3D=3D=3D=3D-------------=3D=
-=3D-----=3D-=3D=3D=3D-=3D=3D=3D=3D=3D=3D-------=3D--=3D---'
-----

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;
#else
return 0;
#endif
}

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

GFK's
--
Guillaume Filion
Logidac Tech., Beaumont, Qu=E9bec, Canada - http://logidac.com/
PGP Key and more: http://guillaume.filion.org/ (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