PERFORCE change 96228 for review
Marcel Moolenaar
marcel at FreeBSD.org
Thu Apr 27 18:06:46 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=96228
Change 96228 by marcel at marcel_nfs on 2006/04/27 18:05:56
Sync with NetBSD: Add AMC-chip based 8-port UART.
Affected files ...
.. //depot/projects/uart/dev/puc/pucdata.c#44 edit
Differences ...
==== //depot/projects/uart/dev/puc/pucdata.c#44 (text+ko) ====
@@ -46,6 +46,7 @@
#include <dev/puc/puc_bus.h>
#include <dev/puc/puc_cfg.h>
+static puc_config_f puc_config_amc;
static puc_config_f puc_config_cronyx;
static puc_config_f puc_config_diva;
static puc_config_f puc_config_icbook;
@@ -164,6 +165,13 @@
PUC_PORT_2P, 0x20, 4, 0,
},
+ { 0x10e8, 0x818e, 0xffff, 0,
+ "Applied Micro Circuits 8 Port UART",
+ DEFAULT_RCLK,
+ PUC_PORT_8S, 0x14, -1, -1,
+ .config_function = puc_config_amc
+ },
+
{ 0x11fe, 0x8010, 0xffff, 0,
"Comtrol RocketPort 550/8 RJ11 part A",
DEFAULT_RCLK * 4,
@@ -778,6 +786,23 @@
};
static int
+puc_config_amc(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
+ intptr_t *res)
+{
+ switch (cmd) {
+ case PUC_CFG_GET_OFS:
+ *res = 8 * (port & 1);
+ return (0);
+ case PUC_CFG_GET_RID:
+ *res = 0x14 + (port >> 1) * 4;
+ return (0);
+ default:
+ break;
+ }
+ return (ENXIO);
+}
+
+static int
puc_config_cronyx(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port,
intptr_t *res)
{
More information about the p4-projects
mailing list