aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>2000-07-28 03:48:46 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>2000-07-28 03:48:46 +0000
commitfc581b6bf6a26eec0ce6c203c6273f681bc88dbd (patch)
tree8822dc814c517b846d752b65849a7fa4fb29d3fd /sys
parenteba53b965a87dfd5e86aab625cc24932dd057e58 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/atkbdc/psm.c2
-rw-r--r--sys/isa/psm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c
index b3433c9ec44b..5b7e54f54a24 100644
--- a/sys/dev/atkbdc/psm.c
+++ b/sys/dev/atkbdc/psm.c
@@ -293,7 +293,7 @@ static struct {
{ MOUSE_MODEL_GENERIC,
0xc0, MOUSE_PS2_PACKETSIZE, NULL, },
};
-#define GENERIC_MOUSE_ENTRY 7
+#define GENERIC_MOUSE_ENTRY ((sizeof(vendortype) / sizeof(*vendortype)) - 1)
/* device driver declarateion */
static device_method_t psm_methods[] = {
diff --git a/sys/isa/psm.c b/sys/isa/psm.c
index b3433c9ec44b..5b7e54f54a24 100644
--- a/sys/isa/psm.c
+++ b/sys/isa/psm.c
@@ -293,7 +293,7 @@ static struct {
{ MOUSE_MODEL_GENERIC,
0xc0, MOUSE_PS2_PACKETSIZE, NULL, },
};
-#define GENERIC_MOUSE_ENTRY 7
+#define GENERIC_MOUSE_ENTRY ((sizeof(vendortype) / sizeof(*vendortype)) - 1)
/* device driver declarateion */
static device_method_t psm_methods[] = {