Home | History | Annotate | Line # | Download | only in pckbport
pmsvar.h revision 1.5.8.1
      1  1.5.8.1      matt /*	pmsvar.h,v 1.5 2007/07/09 21:01:19 ad Exp	*/
      2      1.1  christos 
      3      1.1  christos /*-
      4      1.1  christos  * Copyright (c) 2004 Kentaro Kurahone.
      5      1.1  christos  * Copyright (c) 2004 Ales Krenek.
      6      1.1  christos  * Copyright (c) 1994 Charles M. Hannum.
      7      1.1  christos  * Copyright (c) 1992, 1993 Erik Forsberg.
      8      1.1  christos  * All rights reserved.
      9      1.1  christos  *
     10      1.1  christos  * Redistribution and use in source and binary forms, with or without
     11      1.1  christos  * modification, are permitted provided that the following conditions
     12      1.1  christos  * are met:
     13      1.1  christos  * 1. Redistributions of source code must retain the above copyright
     14      1.1  christos  *    notice, this list of conditions and the following disclaimer.
     15      1.1  christos  *
     16      1.1  christos  * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
     17      1.1  christos  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     18      1.1  christos  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
     19      1.1  christos  * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     20      1.1  christos  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     21      1.1  christos  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
     22      1.1  christos  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
     23      1.1  christos  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
     24      1.1  christos  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     25      1.1  christos  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26      1.1  christos  */
     27      1.1  christos 
     28      1.1  christos #ifndef _DEV_PCKBCPORT_PMSVAR_H_
     29      1.1  christos #define _DEV_PCKBCPORT_PMSVAR_H_
     30      1.1  christos 
     31      1.1  christos enum pms_type {
     32      1.1  christos 	PMS_UNKNOWN,
     33      1.1  christos 	PMS_STANDARD,
     34      1.1  christos 	PMS_SCROLL3,
     35      1.1  christos 	PMS_SCROLL5,
     36      1.1  christos 	PMS_SYNAPTICS
     37      1.1  christos };
     38      1.1  christos 
     39      1.1  christos struct pms_protocol {
     40      1.1  christos 	int rates[3];
     41      1.1  christos 	int response;
     42      1.1  christos 	const char *name;
     43      1.3     perry };
     44      1.1  christos 
     45      1.1  christos struct pms_softc {		/* driver status information */
     46  1.5.8.1      matt 	device_t sc_dev;
     47      1.1  christos 
     48      1.1  christos 	pckbport_tag_t sc_kbctag;
     49      1.1  christos 	int sc_kbcslot;
     50      1.1  christos 
     51      1.1  christos 	int sc_enabled;		/* input enabled? */
     52      1.1  christos #ifndef PMS_DISABLE_POWERHOOK
     53      1.1  christos 	void *sc_powerhook;	/* cookie from power hook */
     54      1.1  christos 	int sc_suspended;	/* suspended? */
     55      1.1  christos #endif /* !PMS_DISABLE_POWERHOOK */
     56      1.1  christos 	int inputstate;		/* number of bytes received for this packet */
     57      1.1  christos 	u_int buttons;		/* mouse button status */
     58      1.1  christos 	enum pms_type protocol;
     59      1.1  christos 	unsigned char packet[6];
     60      1.1  christos 	struct timeval last, current;
     61      1.1  christos 
     62  1.5.8.1      matt 	device_t sc_wsmousedev;
     63      1.5        ad 	struct lwp *sc_event_thread;
     64      1.1  christos 
     65      1.2       scw #ifdef PMS_SYNAPTICS_TOUCHPAD
     66      1.1  christos 	union {
     67      1.1  christos 		struct synaptics_softc synaptics;
     68      1.1  christos 	} u;
     69      1.2       scw #endif
     70      1.1  christos };
     71      1.1  christos 
     72      1.1  christos #endif
     73