Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2003 11:55:46 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29804 for review
Message-ID:  <200304261855.h3QItkQS005189@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304261855.h3QItkQS005189>