Added bits to use the console code under sys/arch/sun2 and

sys/dev/sun.
This commit is contained in:
fredette 2002-03-22 00:28:08 +00:00
parent d2550b2ba7
commit 6db09399a0
4 changed files with 22 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2001/06/27 19:22:18 fredette Exp $
# $NetBSD: Makefile,v 1.2 2002/03/22 00:28:08 fredette Exp $
KDIR= /sys/arch/sun2/include
INCSDIR= /usr/include/sun2
@ -8,10 +8,10 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
cdefs.h cpu.h \
db_machdep.h disklabel.h dvma.h \
eeprom.h elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
fbio.h float.h frame.h \
idprom.h ieee.h ieeefp.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kcore.h \
kbd.h kbio.h kcore.h \
leds.h limits.h lock.h \
math.h mon.h \
param.h pcb.h pmap.h promlib.h \
@ -19,7 +19,7 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
reg.h \
setjmp.h signal.h stdarg.h \
trap.h types.h \
varargs.h vmparam.h \
varargs.h vmparam.h vuid_event.h \
z8530var.h
.include <bsd.kinc.mk>

View File

@ -0,0 +1,3 @@
/* $NetBSD: fbio.h,v 1.1 2002/03/22 00:28:09 fredette Exp $ */
#include <dev/sun/fbio.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: promlib.h,v 1.3 2001/10/01 01:46:56 fredette Exp $ */
/* $NetBSD: promlib.h,v 1.4 2002/03/22 00:28:09 fredette Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@ -79,4 +79,16 @@ char *prom_getbootargs __P((void));
int prom_sd_target __P((int));
#define callrom prom_abort
/*
* We also provide these, to keep #ifdef'ing down in common
* code. These should be revisited. The worst offender is
* our definition of CPU_ISSUN4, for the benefit of
* sys/dev/sun/fb.c.
*/
#define PROM_OBP_V2 2
#define PROM_OBP_V3 3
#define PROM_OPENFIRM 4
#define PROM_getpropint(a, b, c) (0)
#define CPU_ISSUN4 (1)
#endif /* _MACHINE_PROMLIB_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: z8530var.h,v 1.2 2001/06/27 19:01:14 fredette Exp $ */
/* $NetBSD: z8530var.h,v 1.3 2002/03/22 00:28:09 fredette Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -58,4 +58,4 @@
*/
#define zs_peripheral_type(promunit, node, channel) ((promunit) == 1 ? ((channel) == 0 ? ZS_PERIPHERAL_SUNKBD : ZS_PERIPHERAL_SUNMS) : ZS_PERIPHERAL_UNKNOWN)
#include <dev/sun/zsvar.h>
#include <sun2/dev/zsvar.h>