de-count pckbd for pc98. This file is only compiled if NPCKBD was 1,

so the conditional compile should never have been used.
This commit is contained in:
Peter Wemm 2002-08-20 00:05:41 +00:00
parent 5452db4885
commit ae05c598e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102151
2 changed files with 10 additions and 18 deletions

View File

@ -28,7 +28,6 @@
* $FreeBSD$
*/
#include "pckbd.h"
#include "opt_kbd.h"
#include <sys/param.h>
@ -889,7 +888,7 @@ init_keyboard(KBDC kbdc, int *type, int flags)
/* local variables */
static struct kbdc_softc kbdc_softc[NPCKBD] = { { 0 }, };
static struct kbdc_softc kbdc_softc[1] = { { 0 }, };
/* associate a port number with a KBDC */
@ -899,13 +898,10 @@ kbdc_open(int port)
if (port <= 0)
port = IO_KBD;
if (NPCKBD) {
/* PC-98 has only one keyboard I/F */
kbdc_softc[0].port = port;
kbdc_softc[0].lock = FALSE;
return (KBDC)&kbdc_softc[0];
}
return NULL; /* You didn't include sc driver in your config file */
}
/* set/reset polling lock */

View File

@ -28,7 +28,6 @@
* $FreeBSD$
*/
#include "pckbd.h"
#include "opt_kbd.h"
#include <sys/param.h>
@ -889,7 +888,7 @@ init_keyboard(KBDC kbdc, int *type, int flags)
/* local variables */
static struct kbdc_softc kbdc_softc[NPCKBD] = { { 0 }, };
static struct kbdc_softc kbdc_softc[1] = { { 0 }, };
/* associate a port number with a KBDC */
@ -899,13 +898,10 @@ kbdc_open(int port)
if (port <= 0)
port = IO_KBD;
if (NPCKBD) {
/* PC-98 has only one keyboard I/F */
kbdc_softc[0].port = port;
kbdc_softc[0].lock = FALSE;
return (KBDC)&kbdc_softc[0];
}
return NULL; /* You didn't include sc driver in your config file */
}
/* set/reset polling lock */