diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-02-18 17:22:06 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-02-18 17:22:06 +0000 |
commit | c106f6eabfa21000499f9c7c8992a50037ab7c9c (patch) | |
tree | c8340cf85f35704c1b6877c0dea22933263f81e3 | |
parent | 1d6102f951dfb9adf94a3a8cad5f570a9038b044 (diff) |
provide pckbc_machdep_cnattach if necessary (like alpha, it does nothing)
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index a00794e8b53..0777a52ad40 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.35 2002/02/17 22:59:53 maja Exp $ */ +/* $OpenBSD: machdep.c,v 1.36 2002/02/18 17:22:05 jason Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -138,6 +138,12 @@ #include <sparc64/sparc64/cache.h> +#include "pckbc.h" +#include "pckbd.h" +#if (NPCKBC > 0) && (NPCKBD == 0) +#include <dev/ic/pckbcvar.h> +#endif + /* #include "fb.h" */ int bus_space_debug = 0; /* This may be used by macros elsewhere. */ @@ -231,6 +237,21 @@ int bus_stream_asi[] = { }; #endif +#if (NPCKBC > 0) && (NPCKBD == 0) +/* + * This is called by the pckbc driver if no pckbd is configured. + * On the i386, it is used to glue in the old, deprecated console + * code. On the sparc64, it does nothing. + */ +int +pckbc_machdep_cnattach(kbctag, kbcslot) + pckbc_tag_t kbctag; + pckbc_slot_t kbcslot; +{ + return (ENXIO); +} +#endif + /* * Machine-dependent startup code */ |