PERFORCE change 29799 for review
Juli Mallett
jmallett at FreeBSD.org
Sat Apr 26 10:34:07 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29799
Change 29799 by jmallett at 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.
*/
More information about the p4-projects
mailing list