From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4162a2ce338a7cbba8a6de1e266c485a.axp-list@archive.invalid> X-Archive-Original-Message-ID: <3.0.3.32.19971113153238.00881370@ellpspace.math.ualberta.ca> Date: Fri, 14 Nov 1997 00:15:37 +0100 (MET) From: Andreas Johansson Subject: Re: isapnp... In-Reply-To: <3.0.2.32.19971113160919.00c54d20@mail.vt.edu> On Thu, 13 Nov 1997, nm wrote: > maybe im an idiot here but i havnt been able to > get pnpdump of the isapnptools to work, heres > some info on how the compile of isapnptools here > went... Well, it's not you that's the idiot... > now when i run pnpdump here is what happens > > [root@penfold isapnptools-1.10.orig]# pnpdump > Unable to get io permission for WRITE_DATA: Bad address If you look in the code you see that this is error is received when a call to ioperm() on one single address fails. Now, here's my point: Why try to get access to one port and then do iopl(3), which gets you access to _ALL_ ports. ??? So, here's my fix to the problem (isapnptools-1.7, but you won't have any problem finding the same area in the newer code): ----------------------------- --- isapnp.y.orig Fri Oct 24 07:08:46 1997 +++ isapnp.y Fri Oct 24 07:09:35 1997 @@ -923,11 +923,14 @@ fprintf(stderr, "%s\nThis is free software, see the sources for details.\nThis software has NO WARRANTY, use at your OWN RISK\n\nUsage: %s configfile\n", rcsid, argv[0]); exit(1); } +#if 0 /* Why do ioperm and then iopl? This ioperm doesn't work on 2.1.x + kernels either. */ if(ioperm(ADDRESS_ADDR, 1, 1) < 0) { perror("Unable to get io permission for ADDRESS"); exit(1); } +#endif /* Have to get unrestricted access to io ports, as WRITE_DATA port > 0x3ff */ if(iopl(3) < 0) { ----------------------------- I'm not sure while ioperm fails though. Never cared to investigate with such a simple solution/workaround. > [root@penfold isapnptools-1.10.orig]# > > btw this is redhat4.2 on an axppci33 with 2.0.30 > the only isa card is a soundblaster 16 pnp > > any ideas > nick Good luck! -- <-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-> : E-mail: ajo@wopr.campus.luth.se : : S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN : : Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! : <-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-> -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com