Subject: com_pcmcia.c and Lasat CREDIT288 faxmodem
To: None <>
From: Krister Walfridsson <>
List: tech-kern
Date: 12/22/1998 22:58:30
NetBSD cannot handle Lasat CREDIT288 faxmodem (PR port-i386/5439) Since
I have the fortune of owning such a card I thought I should try to
determine why it doesn't work...

The modem is found during boot:

   com1 at pcmcia0 function 0 port 0x330-0x337: serial device
   com1: ns8250 or ns16450, no fifo

but accessing it doesn't work (it doesn't accept any input)

During attach, the modem gives us the normal port ranges for com1-com4,
but cfe->num_iospace == 3 in the loop in com_pcmcia_attach(), so the card
is ignored. When the attach retries, it is given the port range 0x330-0x337
which the card doesn't seem to like.

I don't know anything about com and/or pcmcia so I don't know what's wrong
etc. But the patch below lets me use the modem.


--- com_pcmcia.c.bak    Sun Dec 20 13:17:04 1998
+++ com_pcmcia.c        Tue Dec 22 20:58:25 1998
@@ -239,7 +239,7 @@
                         * entry, which we want to avoid on the first pass and use
                         * exclusively on the second pass. 
-                       if (cfe->iomask != 3) {
+                       {
                                if (!pcmcia_io_alloc(pa->pf, cfe->iospace[0].start,