Date: Thu, 27 Apr 2006 18:06:38 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96228 for review Message-ID: <200604271806.k3RI6cIB092646@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96228 Change 96228 by marcel@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604271806.k3RI6cIB092646>