Prepare for timecounter support on amiga.

This commit is contained in:
joerg 2007-12-28 20:49:49 +00:00
parent 153e6ec350
commit 08acf5f65c
2 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbd.c,v 1.49 2007/03/04 05:59:23 christos Exp $ */
/* $NetBSD: kbd.c,v 1.50 2007/12/28 20:49:49 joerg Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.49 2007/03/04 05:59:23 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.50 2007/12/28 20:49:49 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -724,7 +724,7 @@ kbdstuffchar(u_char c)
}
fe->id = KEY_CODE(c);
fe->value = KEY_UP(c) ? VKEY_UP : VKEY_DOWN;
fe->time = time;
getmicrotime(&fe->time);
k->k_events.ev_put = put;
EV_WAKEUP(&k->k_events);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ms.c,v 1.33 2007/10/17 19:53:17 garbled Exp $ */
/* $NetBSD: ms.c,v 1.34 2007/12/28 20:49:49 joerg Exp $ */
/*
* based on:
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.33 2007/10/17 19:53:17 garbled Exp $");
__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.34 2007/12/28 20:49:49 joerg Exp $");
/*
* Mouse driver.
@ -355,7 +355,7 @@ msintr(void *arg)
d = to_one[d - 1]; /* from 1..7 to {1,2,4} */
fe->id = to_id[d - 1]; /* from {1,2,4} to ID */
fe->value = mb & d ? VKEY_DOWN : VKEY_UP;
fe->time = time;
getmicrotime(&fe->time);
fe++;
if (put >= EV_QSIZE) {
@ -374,7 +374,7 @@ msintr(void *arg)
fe->id = LOC_X_DELTA;
fe->value = ms->ms_dx;
fe->time = time;
getmicrotime(&fe->time);
fe++;
if (put >= EV_QSIZE) {
@ -393,7 +393,7 @@ msintr(void *arg)
fe->id = LOC_Y_DELTA;
fe->value = ms->ms_dy;
fe->time = time;
getmicrotime(&fe->time);
fe++;
if (put >= EV_QSIZE) {