Here is a patch for the findchip utility that makes two
of the same changes that have already been made to nsc-ircc.c .
The current findchip program, with the bug, reports that
my PC87338 (actually a PC97338) is in "legacy mode" with
control ports at 0x2f8 whereas in fact it is in "PnP mode"
with control ports at 0x3e8. The patch below corrects this.
I haven't reviewed the findchip code very carefully,
but this patch should be in the realm of the "obviously
correct".
It would be nice if the findchip utility could report its
version number.
Thomas Hood
------------- (in irda-utils-0.9.13) ----------------------------------------
--- nsc.c_ORIG Wed Nov 22 14:54:35 2000
+++ nsc.c Sun Jun 10 23:57:42 2001
@@ -67,7 +67,7 @@
static nsc_chip_t chips[] = {
{ "PC87108", { 0x150, 0x398, 0xea }, 0x05, 0x10, 0xf0, nsc_probe_108 },
- { "PC87338", { 0x398, 0x15c, 0x2e }, 0x08, 0xb0, 0xf0, nsc_probe_338 },
+ { "PC87338", { 0x398, 0x15c, 0x2e }, 0x08, 0xb0, 0xf8, nsc_probe_338 },
{ NULL }
};
@@ -194,7 +194,7 @@
outb(CFG_PNP0, cfg_base);
reg = inb(cfg_base+1);
- pnp = (reg >> 4) & 0x01;
+ pnp = (reg >> 3) & 0x01;
if (pnp) {
DEBUG("Chip is in PnP mode\n");
outb(0x46, cfg_base);
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda