1*53524e44Schristos /* $NetBSD: tpcalibvar.h,v 1.4 2007/03/04 06:02:51 christos Exp $ */ 2f53a32e6Stsarna 3f53a32e6Stsarna /* 4f53a32e6Stsarna * Copyright (c) 1999 Shin Takemura All rights reserved. 5f53a32e6Stsarna * Copyright (c) 1999 PocketBSD Project. All rights reserved. 6f53a32e6Stsarna * 7f53a32e6Stsarna * Redistribution and use in source and binary forms, with or without 8f53a32e6Stsarna * modification, are permitted provided that the following conditions 9f53a32e6Stsarna * are met: 10f53a32e6Stsarna * 1. Redistributions of source code must retain the above copyright 11f53a32e6Stsarna * notice, this list of conditions and the following disclaimer. 12f53a32e6Stsarna * 2. Redistributions in binary form must reproduce the above copyright 13f53a32e6Stsarna * notice, this list of conditions and the following disclaimer in the 14f53a32e6Stsarna * documentation and/or other materials provided with the distribution. 15f53a32e6Stsarna * 1656a1ab04Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17f53a32e6Stsarna * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18f53a32e6Stsarna * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1956a1ab04Speter * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20f53a32e6Stsarna * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21f53a32e6Stsarna * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22f53a32e6Stsarna * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23f53a32e6Stsarna * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24f53a32e6Stsarna * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25f53a32e6Stsarna * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26f53a32e6Stsarna * SUCH DAMAGE. 27f53a32e6Stsarna * 28f53a32e6Stsarna */ 29f53a32e6Stsarna 30f53a32e6Stsarna struct tpcalib_softc { 31f53a32e6Stsarna int sc_minx, sc_miny; 32f53a32e6Stsarna int sc_maxx, sc_maxy; 33f53a32e6Stsarna int sc_ax, sc_bx, sc_cx; 34f53a32e6Stsarna int sc_ay, sc_by, sc_cy; 35f53a32e6Stsarna 36f53a32e6Stsarna struct wsmouse_calibcoords sc_saved; 37f53a32e6Stsarna }; 38f53a32e6Stsarna 39f53a32e6Stsarna int tpcalib_init(struct tpcalib_softc *); 40f53a32e6Stsarna void tpcalib_reset(struct tpcalib_softc *); 41f53a32e6Stsarna void tpcalib_trans(struct tpcalib_softc *, int, int, int *, int *); 42*53524e44Schristos int tpcalib_ioctl(struct tpcalib_softc *, u_long, void *, int, 4395e1ffb1Schristos struct lwp *); 44