From owner-p4-projects@FreeBSD.ORG Sat Apr 26 11:55:48 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 29DAB37B404; Sat, 26 Apr 2003 11:55:48 -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 CF4D037B401 for ; Sat, 26 Apr 2003 11:55:47 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77E4443FAF for ; Sat, 26 Apr 2003 11:55:47 -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 h3QItl0U005200 for ; Sat, 26 Apr 2003 11:55:47 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3QItkQS005189 for perforce@freebsd.org; Sat, 26 Apr 2003 11:55:46 -0700 (PDT) Date: Sat, 26 Apr 2003 11:55:46 -0700 (PDT) Message-Id: <200304261855.h3QItkQS005189@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 29804 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 18:55:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=29804 Change 29804 by jmallett@jmallett_dalek on 2003/04/26 11:55:29 Function to attach a bootstrap console off of ARCS. Affected files ... .. //depot/projects/mips/sys/dev/arcbios/arcbios.c#7 edit .. //depot/projects/mips/sys/dev/arcbios/arcbiosvar.h#4 edit Differences ... ==== //depot/projects/mips/sys/dev/arcbios/arcbios.c#7 (text+ko) ==== @@ -57,8 +57,6 @@ char arcbios_system_identifier[64 + 1]; -struct consdev *cn_tab; - static cn_getc_t arcbios_cngetc; static cn_putc_t arcbios_cnputc; @@ -66,6 +64,7 @@ void arcbios_fetch_system_identifier(struct arcbios_component *, struct arcbios_treewalk_context *); +extern struct cdevsw arcbios_cdevsw; CONS_DRIVER(arcbios, NULL, NULL, NULL, arcbios_cngetc, NULL, arcbios_cnputc, NULL); /* @@ -238,6 +237,16 @@ * Bootstrap console routines. ****************************************************************************/ +void +arcbios_cnattach(void) +{ + arcbios_consdev.cn_pri = CN_NORMAL; + arcbios_consdev.cn_dev = makedev(MAJOR_AUTO, 0); + make_dev(&arcbios_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "arccons"); + cnadd(&arcbios_consdev); + return (0); +} + int arcbios_cngetc(struct consdev *cdev) { ==== //depot/projects/mips/sys/dev/arcbios/arcbiosvar.h#4 (text+ko) ==== @@ -62,4 +62,6 @@ void arcbios_component_id_copy(struct arcbios_component *, char *, size_t); +void arcbios_cnattach(void); + #endif /* _KERNEL */