From 2a57ba6633507b856ef61e57165dba2df7e09280 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 12 Sep 1996 04:54:19 +0000 Subject: [PATCH] Correct a comment, and add timer priming macros. --- sys/arch/mvme68k/dev/pccreg.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/mvme68k/dev/pccreg.h b/sys/arch/mvme68k/dev/pccreg.h index c7a8c1841019..0a5b4627f912 100644 --- a/sys/arch/mvme68k/dev/pccreg.h +++ b/sys/arch/mvme68k/dev/pccreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: pccreg.h,v 1.4 1996/05/08 05:55:08 thorpej Exp $ */ +/* $NetBSD: pccreg.h,v 1.5 1996/09/12 04:54:19 thorpej Exp $ */ /* * @@ -97,8 +97,7 @@ struct pcc { extern struct pcc *sys_pcc; /* - * we lock off our interrupt vector at 0x40. if this is changed - * we'll need to change vector.s + * we lock off our interrupt vector at 0x40. */ #define PCC_VECBASE 0x40 @@ -144,6 +143,9 @@ extern struct pcc *sys_pcc; #define PCC_TIMERSTOP 0x1 /* stop clock, but don't clear it */ #define PCC_TIMERSTART 0x3 /* start timer */ +#define pcc_timer_hz2lim(hz) (65536 - (160000/(hz))) +#define pcc_timer_us2lim(us) (65536 - (160000/(1000000/(us)))) + /* * serial control */