Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc Changed SCALE value from (1024*1024) to (1024*25...
details: https://anonhg.NetBSD.org/src/rev/70e6a3d1d6fc
branches: trunk
changeset: 540466:70e6a3d1d6fc
user: takemura <takemura%NetBSD.org@localhost>
date: Sun Dec 15 09:17:07 2002 +0000
description:
Changed SCALE value from (1024*1024) to (1024*256) to support large (1024<)
sample values.
diffstat:
sys/dev/hpc/tpcalib.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 59955d0a718b -r 70e6a3d1d6fc sys/dev/hpc/tpcalib.c
--- a/sys/dev/hpc/tpcalib.c Sun Dec 15 09:13:21 2002 +0000
+++ b/sys/dev/hpc/tpcalib.c Sun Dec 15 09:17:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tpcalib.c,v 1.4 2002/03/17 19:40:56 atatat Exp $ */
+/* $NetBSD: tpcalib.c,v 1.5 2002/12/15 09:17:07 takemura Exp $ */
/*
* Copyright (c) 1999 Shin Takemura All rights reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tpcalib.c,v 1.4 2002/03/17 19:40:56 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tpcalib.c,v 1.5 2002/12/15 09:17:07 takemura Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -49,7 +49,7 @@
extern int mra_Y_AX1_BX2_C(int *, int, int *, int, int *, int, int, int, int *,
int *, int *);
-#define SCALE (1024*1024)
+#define SCALE (1024*256)
int
tpcalib_init(struct tpcalib_softc *sc)
@@ -118,6 +118,9 @@
sc->sc_miny = d->miny;
sc->sc_maxy = d->maxy;
sc->sc_saved = *d;
+ DPRINTF(("tpcalib: x=%d~%d y=%d~%d\n",
+ sc->sc_minx, sc->sc_maxx,
+ sc->sc_miny, sc->sc_maxy));
DPRINTF(("tpcalib: Ax=%d Bx=%d Cx=%d\n",
sc->sc_ax, sc->sc_bx, sc->sc_cx));
DPRINTF(("tpcalib: Ay=%d By=%d Cy=%d\n",
Home |
Main Index |
Thread Index |
Old Index