PERFORCE change 29804 for review

Juli Mallett jmallett at FreeBSD.org
Sat Apr 26 11:55:49 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29804

Change 29804 by jmallett at 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 */


More information about the p4-projects mailing list