1*014b6d5aSchristos /* $NetBSD: alpsvar.h,v 1.1 2017/08/13 08:49:27 christos Exp $ */ 2*014b6d5aSchristos 3*014b6d5aSchristos /*- 4*014b6d5aSchristos * Copyright (c) 2017 Ryo ONODERA <ryo@tetera.org> 5*014b6d5aSchristos * Copyright (c) 2008 Jared D. McNeill <jmcneill@invisible.ca> 6*014b6d5aSchristos * All rights reserved. 7*014b6d5aSchristos * 8*014b6d5aSchristos * Redistribution and use in source and binary forms, with or without 9*014b6d5aSchristos * modification, are permitted provided that the following conditions 10*014b6d5aSchristos * are met: 11*014b6d5aSchristos * 1. Redistributions of source code must retain the above copyright 12*014b6d5aSchristos * notice, this list of conditions and the following disclaimer. 13*014b6d5aSchristos * 2. Redistributions in binary form must reproduce the above copyright 14*014b6d5aSchristos * notice, this list of conditions and the following disclaimer in the 15*014b6d5aSchristos * documentation and/or other materials provided with the distribution. 16*014b6d5aSchristos * 17*014b6d5aSchristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18*014b6d5aSchristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19*014b6d5aSchristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20*014b6d5aSchristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21*014b6d5aSchristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22*014b6d5aSchristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23*014b6d5aSchristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24*014b6d5aSchristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25*014b6d5aSchristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26*014b6d5aSchristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27*014b6d5aSchristos * POSSIBILITY OF SUCH DAMAGE. 28*014b6d5aSchristos */ 29*014b6d5aSchristos 30*014b6d5aSchristos #ifndef _DEV_PCKBCPORT_ALPSVAR_H 31*014b6d5aSchristos #define _DEV_PCKBCPORT_ALPSVAR_H 32*014b6d5aSchristos 33*014b6d5aSchristos #include <dev/pckbport/pmsreg.h> 34*014b6d5aSchristos 35*014b6d5aSchristos struct alps_softc { 36*014b6d5aSchristos uint32_t version; 37*014b6d5aSchristos 38*014b6d5aSchristos bool initializing; 39*014b6d5aSchristos uint32_t res_x, res_y; 40*014b6d5aSchristos uint16_t last_x1, last_y1, last_z1; 41*014b6d5aSchristos uint16_t last_x2, last_y2; 42*014b6d5aSchristos int nfingers; 43*014b6d5aSchristos int last_nfingers; 44*014b6d5aSchristos }; 45*014b6d5aSchristos 46*014b6d5aSchristos int pms_alps_probe_init(void *); 47*014b6d5aSchristos void pms_alps_enable(void *); 48*014b6d5aSchristos void pms_alps_resume(void *); 49*014b6d5aSchristos 50*014b6d5aSchristos #endif /* !_DEV_PCKBCPORT_ALPSVAR_H */ 51