diff --git a/sys/arch/vax/vax/conf.c b/sys/arch/vax/vax/conf.c index d775478c9e9c..78214c4863cc 100644 --- a/sys/arch/vax/vax/conf.c +++ b/sys/arch/vax/vax/conf.c @@ -1,4 +1,4 @@ -/* $NetBSD: conf.c,v 1.48 2000/07/26 11:50:16 ragge Exp $ */ +/* $NetBSD: conf.c,v 1.49 2000/12/02 17:07:27 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -155,11 +155,15 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); */ #include -#include "lkc.h" -#if NLKC -#define smgcngetc lkccngetc +#include "wskbd.h" +#if NWSKBD > 0 +#define smgcngetc wskbd_cngetc #else -#define smgcngetc nullcngetc +static int +smgcngetc(dev_t dev) +{ + return 0; +} #endif #define smgcnputc wsdisplay_cnputc @@ -598,3 +602,14 @@ iszerodev(dev) return (major(dev) == 3 && minor(dev) == 12); } + +int +getmajor(void *ptr) +{ + int i; + + for (i = 0; i < nchrdev; i++) + if (cdevsw[i].d_open == ptr) + return i; + panic("getmajor"); +}