lkc is gone, long live wskbd.
This commit is contained in:
parent
47dabcfc3f
commit
e392e575c1
|
@ -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 <dev/cons.h>
|
||||
|
||||
#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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue