Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109352529
D32228.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
969 B
Referenced Files
None
Subscribers
None
D32228.diff
View Options
diff --git a/sys/dev/uart/uart_bus_pci.c b/sys/dev/uart/uart_bus_pci.c
--- a/sys/dev/uart/uart_bus_pci.c
+++ b/sys/dev/uart/uart_bus_pci.c
@@ -39,6 +39,7 @@
#include <machine/resource.h>
#include <dev/pci/pcivar.h>
+#include <dev/pci/pcireg.h>
#include <dev/uart/uart.h>
#include <dev/uart/uart_bus.h>
@@ -218,6 +219,12 @@
{
struct uart_softc *sc;
const struct pci_id *id;
+ struct pci_id cid = {
+ .regshft = 0,
+ .rclk = 0,
+ .rid = 0x10 | PCI_NO_MSI,
+ .desc = "Generic SimpleComm PCI device",
+ };
int result;
sc = device_get_softc(dev);
@@ -227,6 +234,14 @@
sc->sc_class = &uart_ns8250_class;
goto match;
}
+ if (pci_get_class(dev) == PCIC_SIMPLECOMM &&
+ pci_get_subclass(dev) == PCIS_SIMPLECOMM_UART &&
+ pci_get_progif(dev) < PCIP_SIMPLECOMM_UART_16550A) {
+ /* XXX rclk what to do */
+ id = &cid;
+ sc->sc_class = &uart_ns8250_class;
+ goto match;
+ }
/* Add checks for non-ns8250 IDs here. */
return (ENXIO);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 10:47 PM (19 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16462423
Default Alt Text
D32228.diff (969 B)
Attached To
Mode
D32228: uart: Match simple comm
Attached
Detach File
Event Timeline
Log In to Comment