> [Stu]
> > If you didn't explicitly mean the subsystem and subvendor slots
> > to be PCI_ANY_ID, then you should use lspci -v to find out
> > what values those are and use them.
> [me]
> Well spotted. I cut-and-pasted large bits of it from lines above
> and fiddled till it worked. I had a vague suspicion that PCI_ANY_ID
> was probably a bit on the generous side but I lost motivation once
> it started working ;)
> 
> 00:0a.0 Serial controller: Decision Computer International Co. PCCOM8 (rev 02) 
>(prog-if 02 [16550])
>         Subsystem: Unknown device 0008:0200
>                               ^^^^^^^^^^^^
> I'd assume it's these IDs that I'd use? Will test it later.

Revised patch against serial-5.01 attached. I even tested it. It worked too :)

--Craig
diff -urN serial-5.01/serial.c serial-5.01.craig/serial.c
--- serial-5.01/serial.c        Thu Jul 27 02:43:57 2000
+++ serial-5.01.craig/serial.c  Fri Aug 11 09:29:48 2000
@@ -4559,6 +4559,10 @@
                SPCI_FL_BASE0, 1, 520833,
                64, 3, NULL, 0x300 },
 #endif
+       {       PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM8,
+               PCI_SUBVENDOR_ID_DCI, PCI_SUBDEVICE_ID_DCI_PCCOM8,
+               SPCI_FL_BASE3, 8, 115200,
+               8 },
        /* Generic serial board */
        {       0, 0,
                0, 0,
@@ -5081,7 +5085,7 @@
 /*
  * The serial driver boot-time initialization code!
  */
-static int __init rs_init(void)
+int __init rs_init(void)
 {
        int i;
        struct serial_state * state;
diff -urN serial-5.01/serial_compat.h serial-5.01.craig/serial_compat.h
--- serial-5.01/serial_compat.h Thu Jul 27 02:30:51 2000
+++ serial-5.01.craig/serial_compat.h   Fri Aug 11 09:31:58 2000
@@ -265,6 +265,12 @@
 #define PCI_SUBDEVICE_ID_CONNECT_TECH_BH041101V1       0x000B
 #endif
 
+#ifndef PCI_SUBVENDOR_ID_DCI
+#define PCI_SUBVENDOR_ID_DCI           0x0008
+#define PCI_SUBDEVICE_ID_DCI_PCCOM8    0x0200
+#define PCI_DEVICE_ID_DCI_PCCOM8       0x0002
+#endif
+
 #ifndef PCI_SUBVENDOR_ID_KEYSPAN
 #define PCI_SUBVENDOR_ID_KEYSPAN                       0x11a9
 #define PCI_SUBDEVICE_ID_KEYSPAN_SX2                   0x5334

Reply via email to