From: Pavel@Janik.cz (Pavel Janík)
To: linux-kernel@vger.kernel.org
Subject: Re: PCI serial card with PCI 9052?
Date: Mon, 25 Nov 2002 21:47:37 +0100 [thread overview]
Message-ID: <m3hee55qc6.fsf@Janik.cz> (raw)
In-Reply-To: <20021125094828.GA6016@pazke.ipt> (Andrey Panin's message of "Mon, 25 Nov 2002 12:48:28 +0300")
From: Andrey Panin <pazke@orbita1.ru>
Date: Mon, 25 Nov 2002 12:48:28 +0300
Hi Andrey,
> patch looks good, but here is yet another thing to test.
I think that this will be additional thing to do. Right now, I have this:
--- linux-2.4.19/drivers/char/serial.c Sat Aug 3 02:39:43 2002
+++ serial.c Tue Nov 26 03:30:36 2002
@@ -139,8 +139,8 @@
#undef SERIAL_DEBUG_OPEN
#undef SERIAL_DEBUG_FLOW
#undef SERIAL_DEBUG_RS_WAIT_UNTIL_SENT
-#undef SERIAL_DEBUG_PCI
-#undef SERIAL_DEBUG_AUTOCONF
+#define SERIAL_DEBUG_PCI
+#define SERIAL_DEBUG_AUTOCONF
/* Sanity checks */
@@ -4181,7 +4181,7 @@
#ifdef SERIAL_DEBUG_PCI
printk(KERN_DEBUG " Subsystem ID %lx (intel 960)\n",
- (unsigned long) board->subdevice);
+ (unsigned long) dev->subsystem_device);
#endif
/* is firmware started? */
pci_read_config_dword(dev, 0x44, (void*) &oldval);
@@ -4340,6 +4340,7 @@
pbn_panacom2,
pbn_panacom4,
pbn_plx_romulus,
+ pbn_plx_9052,
pbn_oxsemi,
pbn_timedia,
pbn_intel_i960,
@@ -4425,6 +4426,8 @@
0x400, 7, pci_plx9050_fn },
{ SPCI_FL_BASE2, 4, 921600, /* pbn_plx_romulus */
0x20, 2, pci_plx9050_fn, 0x03 },
+ { SPCI_FL_BASE2, 2, 115200, /* pbn_plx_9052 */
+ 0x8 },
/* This board uses the size of PCI Base region 0 to
* signal now many ports are available */
{ SPCI_FL_BASE0 | SPCI_FL_REGION_SZ_CAP, 32, 115200 }, /* pbn_oxsemi */
@@ -4707,6 +4710,9 @@
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_ROMULUS,
0x10b5, 0x106a, 0, 0,
pbn_plx_romulus },
+ { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
+ 0xd841, 0x0200, 0, 0,
+ pbn_plx_9052 },
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSC100,
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
pbn_b1_4_115200 },
kernel boots with:
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
Testing ttyS0 (0x03f8, 0x0000)...
Testing ttyS1 (0x02f8, 0x0000)...
Testing ttyS2 (0x03e8, 0x0000)...
serial: ttyS2: simple autoconfig failed (ff, ff)
Testing ttyS3 (0x02e8, 0x0000)...
serial: ttyS3: simple autoconfig failed (ff, ff)
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Entered probe_serial_pci()
Setup PCI/PNP port: port fcf0, irq 9, type 0
Testing ttyS4 (0xfcf0, 0x0000)...
ttyS04 at port 0xfcf0 (irq = 9) is a 16550A
Setup PCI/PNP port: port fcf8, irq 9, type 0
Testing ttyS5 (0xfcf8, 0x0000)...
ttyS05 at port 0xfcf8 (irq = 9) is a 16550A
Leaving probe_serial_pci() (probe finished)
/proc/pci contains:
PCI devices found:
Bus 0, device 0, function 0:
Class 0000: PCI device 1106:0505 (rev 0).
Bus 0, device 15, function 0:
Class 0300: PCI device 5333:8811 (rev 0).
Non-prefetchable 32 bit memory at 0xfe000000 [0xfe7fffff].
Bus 0, device 18, function 0:
Class 0280: PCI device 10b5:9050 (rev 2).
IRQ 9.
Non-prefetchable 32 bit memory at 0xfedffc00 [0xfedffc7f].
I/O at 0xfc00 [0xfc7f].
I/O at 0xfcf0 [0xfcf7].
I/O at 0xfcf8 [0xfcff].
/proc/tty/driver/serial:
serinfo:1.0 driver:5.05c revision:2001-07-08
0: uart:16550A port:3F8 irq:4 baud:9600 tx:0 rx:0 RTS|DTR
1: uart:16550A port:2F8 irq:3 baud:9600 tx:0 rx:0
4: uart:16550A port:FCF0 irq:9 baud:9600 tx:40 rx:57 brk:2 oe:1 RTS|DTR|DSR
5: uart:16550A port:FCF8 irq:9 baud:9600 tx:5 rx:0 RTS|DTR
There are two ports on that PCI card, ttyS4 and ttyS5. I have serial
printer and serial mouse. Flags are dependant on the status of the
port. Empty port: RTS | DTR. Printer plugged: RTS | CTS | DTR | DSR.
Mouse plugged: RTS | DTR | DSR. So I think that the port is ready for
communication. But I do not see anything coming from it :-(
So the question now is: what should I do next? Trying to play with
setserial?
--
Pavel Janík
Avoid unnecessary branches.
-- The Elements of Programming Style (Kernighan & Plaugher)
next prev parent reply other threads:[~2002-11-25 21:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-19 22:09 PCI serial card with PCI 9052? Pavel Janík
2002-11-20 9:56 ` Andrey Panin
2002-11-24 11:27 ` Pavel Janík
2002-11-24 11:43 ` Russell King
2002-11-24 13:39 ` Gunther Mayer
2002-11-24 14:49 ` Pavel Janík
2002-11-25 9:48 ` Andrey Panin
2002-11-25 20:47 ` Pavel Janík [this message]
2002-11-27 11:34 ` Pavel Janík
2002-11-27 12:06 ` Andrey Panin
2002-11-27 12:21 ` Pavel Janík
2002-11-27 12:34 ` Andrey Panin
[not found] ` <20021201110202.E24114@flint.arm.linux.org.uk>
2002-12-10 7:07 ` Pavel Janík
2002-12-10 7:30 ` Andrey Panin
2002-12-10 8:10 ` Pavel Janík
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3hee55qc6.fsf@Janik.cz \
--to=pavel@janik.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.