Date: Sat, 26 Apr 2003 10:34:04 -0700 (PDT) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 29799 for review Message-ID: <200304261734.h3QHY40C045604@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29799 Change 29799 by jmallett@jmallett_dalek on 2003/04/26 10:33:50 Look like a real early console. Affected files ... .. //depot/projects/mips/sys/dev/arcbios/arcbios.c#5 edit Differences ... ==== //depot/projects/mips/sys/dev/arcbios/arcbios.c#5 (text+ko) ==== @@ -36,11 +36,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/cdefs.h> - #include <sys/param.h> - #include <sys/systm.h> +#include <sys/linker_set.h> #include <sys/cons.h> #include <sys/conf.h> @@ -63,23 +61,8 @@ void arcbios_fetch_system_identifier(struct arcbios_component *, struct arcbios_treewalk_context *); -#define CDEV_MAJOR 97 - -struct consdev arcbios_cn = { - NULL /* Probe */, - NULL /* Init */, - NULL /* Term */, - arcbios_cngetc /* getc */, - NULL /* checkc */, - arcbios_cnputc /* putc */, - NULL /* dbctl */, - NULL /* tty */, - NODEV /* cn_dev */, - CN_NORMAL /* priority */ -}; +CONS_DRIVER(arcbios, NULL, NULL, NULL, arcbios_cngetc, NULL, arcbios_cnputc, NULL); -extern const struct cdevsw arcbios_cdevsw; - /* * arcbios_init: * @@ -106,11 +89,6 @@ /* Initialize our pointer to the firmware vector. */ ARCBIOS = ARCBIOS_SPB->FirmwareVector; - arcbios_cn.cn_dev = makedev(CDEV_MAJOR, 0); - - /* Initialize the bootstrap console. */ - cn_tab = &arcbios_cn; - /* * Fetch the system ID. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304261734.h3QHY40C045604>