From owner-p4-projects@FreeBSD.ORG Sat Apr 26 10:34:06 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 21EE237B404; Sat, 26 Apr 2003 10:34:06 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B170D37B401 for ; Sat, 26 Apr 2003 10:34:05 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5968843F3F for ; Sat, 26 Apr 2003 10:34:05 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3QHY50U045612 for ; Sat, 26 Apr 2003 10:34:05 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3QHY40C045604 for perforce@freebsd.org; Sat, 26 Apr 2003 10:34:04 -0700 (PDT) Date: Sat, 26 Apr 2003 10:34:04 -0700 (PDT) Message-Id: <200304261734.h3QHY40C045604@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 29799 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 17:34:07 -0000 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 - #include - #include +#include #include #include @@ -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. */