summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-03-05 16:43:33 +0000
committerjhb <jhb@FreeBSD.org>2009-03-05 16:43:33 +0000
commitdc03a05b160cc359fc759fbe73605d6e1947badd (patch)
treee7d5c018be93b34152805448b57c24a0fff44551
parenta5f4a557440b665d9f45332d692d6b071433d401 (diff)
downloadFreeBSD-src-dc03a05b160cc359fc759fbe73605d6e1947badd.zip
FreeBSD-src-dc03a05b160cc359fc759fbe73605d6e1947badd.tar.gz
Add support for the single-port NetMos NM9835 serial adapter. The puc(4)
entry is a specific entry to override the generic NetMos entry so that puc(4) will leave this device alone and let uart(4) claim it. Submitted by: Navdeep Parhar nparhar @ gmail Reviewed by: marcel MFC after: 1 week
-rw-r--r--sys/dev/puc/pucdata.c12
-rw-r--r--sys/dev/uart/uart_bus_pci.c1
2 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/puc/pucdata.c b/sys/dev/puc/pucdata.c
index bf50d7d..4d42a04 100644
--- a/sys/dev/puc/pucdata.c
+++ b/sys/dev/puc/pucdata.c
@@ -761,6 +761,18 @@ const struct puc_cfg puc_pci_devices[] = {
PUC_PORT_2P, 0x10, 8, 0,
},
+ /*
+ * This is more specific than the generic NM9835 entry that follows, and
+ * is placed here to _prevent_ puc from claiming this single port card.
+ *
+ * uart(4) will claim this device.
+ */
+ { 0x9710, 0x9835, 0x1000, 1,
+ "NetMos NM9835 based 1-port serial",
+ DEFAULT_RCLK,
+ PUC_PORT_1S, 0x10, 4, 0,
+ },
+
{ 0x9710, 0x9835, 0xffff, 0,
"NetMos NM9835 Dual UART and 1284 Printer port",
DEFAULT_RCLK,
diff --git a/sys/dev/uart/uart_bus_pci.c b/sys/dev/uart/uart_bus_pci.c
index 4a40e48..7d6a8f3 100644
--- a/sys/dev/uart/uart_bus_pci.c
+++ b/sys/dev/uart/uart_bus_pci.c
@@ -110,6 +110,7 @@ static struct pci_id pci_ns8250_ids[] = {
{ 0x1415, 0x950b, 0xffff, 0, "Oxford Semiconductor OXCB950 Cardbus 16950 UART",
0x10, 16384000 },
{ 0x151f, 0x0000, 0xffff, 0, "TOPIC Semiconductor TP560 56k modem", 0x10 },
+{ 0x9710, 0x9835, 0x1000, 1, "NetMos NM9835 Serial Port", 0x10 },
{ 0xdeaf, 0x9051, 0xffff, 0, "Middle Digital PC Weasel Serial Port", 0x10 },
{ 0xffff, 0, 0xffff, 0, NULL, 0, 0}
};
OpenPOWER on IntegriCloud