Subject: Re: Issue with modem
To: None <port-i386@NetBSD.ORG, tech-net@NetBSD.ORG>
From: Kent Polk <kent@tiamat.goathill.org>
List: port-i386
Date: 01/24/2000 00:15:51
On 23 Jan 2000 15:55:00 -0600, Manuel Bouyer wrote:
>
>--IJpNTDwzlM2Ie8A6
>Content-Type: text/plain; charset=us-ascii
>
>On Sun, Jan 23, 2000 at 03:41:15PM +0000, Kent Polk wrote:
>> How about PCI 15550 modems? Does anyone have any documentation on how to
>> get one of these working with NetBSD?
>
>Could you try the attached patch ?

>+	    {	0x12b9,	0x1008,	0,	0	},
>+	    {	0xffff,	0xfffc,	0,	0	},
>+	    {
>+		{ PUC_PORT_TYPE_COM, 0x10, 0x00 },

Thanks. I was guessing:
            {   0x12b9, 0x1000, 0,      0       },
            {   0xffff, 0xffff, 0,      0       },
with the previous dmesg that I posted. Below are the results with
your suggestions.

Btw, yes, it was a typo - 15550 instead of 16550.  The Product
numbers were obtained from the board itself.  It is a RapidComm
V90 faxmodem which repudely works with DOS (i.e. not a winmodem).
I could find virtually no info on it at the USR site.  I asked for
info twice but never received a reply from USR.

Thanks Much!

------------------------------------------------------------
puc0 at pci0 dev 12 function 0: PCI configuration registers:
  Common header:
    0x00: 0x100812b9 0x02100001 0x07000201 0x00000000

    Vendor Name: US Robotics (3Com) (0x12b9)
    Device Name: 3CP5609 PCI 16550 Modem (0x1008)
    Command register: 0x0001
      I/O space accesses: on
      Memory space accesses: off
      Bus mastering: off
      Special cycles: off
      MWI transactions: off
      Palette snooping: off
      Parity error checking: off
      Address/data stepping: off
      System error (SERR): off
      Fast back-to-back transactions: off
    Status register: 0x0210
      66 MHz capable: off
      User Definable Features (UDF) support: off
      Fast back-to-back capable: off
      Data parity error detected: off
      DEVSEL timing: medium (0x1)
      Slave signaled Target Abort: off
      Master received Target Abort: off
      Master received Master Abort: off
      Asserted System Error (SERR): off
      Parity error detected: off
    Class Name: communications (0x07)
    Subclass Name: serial (0x00)
    Interface: 0x02
    Revision ID: 0x01
    BIST: 0x00
    Header Type: 0x00 (0x00)
    Latency Timer: 0x00
    Cache Line Size: 0x00

  Type 0 ("normal" device) header:
    0x10: 0x0000d401 0x00000000 0x00000000 0x00000000
    0x20: 0x00000000 0x00000000 0x00000000 0x00ab12b9
    0x30: 0x00000000 0x000000dc 0x00000000 0x0000010a

    Base address register at 0x10
      type: i/o
      base: 0x0000d400, size: 0x00000008
    Base address register at 0x14
      not implemented(?)
    Base address register at 0x18
      not implemented(?)
    Base address register at 0x1c
      not implemented(?)
    Base address register at 0x20
      not implemented(?)
    Base address register at 0x24
      not implemented(?)
    Cardbus CIS Pointer: 0x00000000
    Subsystem vendor ID: 0x12b9
    Subsystem ID: 0x00ab
    Expansion ROM Base Address: 0x00000000
    Reserved @ 0x34: 0x000000dc
    Reserved @ 0x38: 0x00000000
    Maximum Latency: 0x00
    Minimum Grant: 0x00
    Interrupt pin: 0x01 (pin A)
    Interrupt line: 0x0a

  Device-dependent header:
    0x40: 0x00000000 0x00000000 0x00000000 0x00000000
    0x50: 0x00000000 0x00000000 0x00000000 0x00000000
    0x60: 0x00000000 0x00000000 0x00000000 0x00000000
    0x70: 0x00000000 0x00000000 0x00000000 0x00000000
    0x80: 0x00000000 0x00000000 0x00000000 0x00000000
    0x90: 0x00000000 0x00000000 0x00000000 0x00000000
    0xa0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xc0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xd0: 0x00000000 0x00000000 0x00000000 0x6c020001
    0xe0: 0xa0004000 0x00000000 0x00000000 0x00000000
    0xf0: 0x00000000 0x00000000 0x00000000 0x00000000

    Don't know how to pretty-print device-dependent header.

US Robotics (3Com) 3CP5609 PCI 16550 Modem (serial communications,
interface 0x02, revision 0x01) at ? dev 12 function 0 (tag 0x80006000,
intrtag 0x80006000, intrswiz 0, intrpin 0x1, i/o on, mem off, no
quirks): USR Modem PCI  (com)

com3 at puc0 port 0: interrupting at irq 10
com3: ns16550a, working fifo

[...]

com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo