diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2009-01-17 05:23:28 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2009-01-17 05:23:28 +0000 |
| commit | 77938e8d54f8f2676fd273ea2baaaf048fd2d521 (patch) | |
| tree | e145b9cac38954fe7ffcb015cc5c67650afe74fb /sys/arch/atari/dev | |
| parent | b5ead86432fd8a85a75c297cc09dc5e838660653 (diff) | |
Use firm_gettime() to retain compatibility with old firm_event. From amiga.
Diffstat (limited to 'sys/arch/atari/dev')
| -rw-r--r-- | sys/arch/atari/dev/kbd.c | 6 | ||||
| -rw-r--r-- | sys/arch/atari/dev/ms.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/atari/dev/kbd.c b/sys/arch/atari/dev/kbd.c index cfedf91810d..6d3d6600f05 100644 --- a/sys/arch/atari/dev/kbd.c +++ b/sys/arch/atari/dev/kbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: kbd.c,v 1.31 2008/01/08 18:04:16 joerg Exp $ */ +/* $NetBSD: kbd.c,v 1.32 2009/01/17 05:23:28 tsutsui Exp $ */ /* * Copyright (c) 1995 Leo Weppelman @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.31 2008/01/08 18:04:16 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.32 2009/01/17 05:23:28 tsutsui Exp $"); #include "mouse.h" #include "ite.h" @@ -535,7 +535,7 @@ void *junk1, *junk2; } fe->id = KBD_SCANCODE(code); fe->value = KBD_RELEASED(code) ? VKEY_UP : VKEY_DOWN; - getmicrotime(&fe->time); + firm_gettime(fe); k->k_events.ev_put = put; EV_WAKEUP(&k->k_events); splx(s); diff --git a/sys/arch/atari/dev/ms.c b/sys/arch/atari/dev/ms.c index 2a449f1528d..0007904e7c3 100644 --- a/sys/arch/atari/dev/ms.c +++ b/sys/arch/atari/dev/ms.c @@ -1,4 +1,4 @@ -/* $NetBSD: ms.c,v 1.20 2008/01/08 18:04:16 joerg Exp $ */ +/* $NetBSD: ms.c,v 1.21 2009/01/17 05:23:28 tsutsui Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -52,7 +52,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.20 2008/01/08 18:04:16 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.21 2009/01/17 05:23:28 tsutsui Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -214,7 +214,7 @@ int size, type; } fe->id = LOC_X_DELTA; fe->value = rel_ms->dx; - getmicrotime(&fe->time); + firm_gettime(fe); if (put >= EV_QSIZE) { put = 0; fe = &ms->ms_events.ev_q[0]; @@ -228,7 +228,7 @@ int size, type; } fe->id = LOC_Y_DELTA; fe->value = rel_ms->dy; - getmicrotime(&fe->time); + firm_gettime(fe); if (put >= EV_QSIZE) { put = 0; fe = &ms->ms_events.ev_q[0]; @@ -246,7 +246,7 @@ int size, type; fe2->id = MS_LEFT; else fe2->id = MS_MIDDLE; fe2->value = rel_ms->id & bmask ? VKEY_DOWN : VKEY_UP; - getmicrotime(&fe2->time); + firm_gettime(fe2); } } |
