mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
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:
parent
5452db4885
commit
ae05c598e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102151
@ -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 */
|
||||
/* PC-98 has only one keyboard I/F */
|
||||
kbdc_softc[0].port = port;
|
||||
kbdc_softc[0].lock = FALSE;
|
||||
return (KBDC)&kbdc_softc[0];
|
||||
}
|
||||
|
||||
/* set/reset polling lock */
|
||||
|
@ -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 */
|
||||
/* PC-98 has only one keyboard I/F */
|
||||
kbdc_softc[0].port = port;
|
||||
kbdc_softc[0].lock = FALSE;
|
||||
return (KBDC)&kbdc_softc[0];
|
||||
}
|
||||
|
||||
/* set/reset polling lock */
|
||||
|
Loading…
Reference in New Issue
Block a user