The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/wscons/wsmousevar.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $NetBSD: wsmousevar.h,v 1.5 2001/10/13 15:56:16 augustss Exp $ */
    2 
    3 /*
    4  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
    5  *
    6  * Redistribution and use in source and binary forms, with or without
    7  * modification, are permitted provided that the following conditions
    8  * are met:
    9  * 1. Redistributions of source code must retain the above copyright
   10  *    notice, this list of conditions and the following disclaimer.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  * 3. All advertising materials mentioning features or use of this software
   15  *    must display the following acknowledgement:
   16  *      This product includes software developed by Christopher G. Demetriou
   17  *      for the NetBSD Project.
   18  * 4. The name of the author may not be used to endorse or promote products
   19  *    derived from this software without specific prior written permission
   20  *
   21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   26  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   30  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   31  */
   32 
   33 /*
   34  * WSMOUSE interfaces.
   35  */
   36 
   37 /*
   38  * Mouse access functions (must be provided by all mice).
   39  *
   40  * There is a "void *" cookie provided by the mouse driver associated
   41  * with these functions, which is passed to them when they are invoked.
   42  */
   43 struct wsmouse_accessops {
   44         int     (*enable)(void *);
   45         int     (*ioctl)(void *v, u_long cmd, caddr_t data, int flag,
   46                     struct proc *p);
   47         void    (*disable)(void *);
   48 };
   49 
   50 /*
   51  * Attachment information provided by wsmousedev devices when attaching
   52  * wsmouse units.
   53  */
   54 struct wsmousedev_attach_args {
   55         const struct wsmouse_accessops *accessops;      /* access ops */
   56         void    *accesscookie;                          /* access cookie */
   57 };
   58 
   59 #include "locators.h"
   60 
   61 #define wsmousedevcf_mux        cf_loc[WSMOUSEDEVCF_MUX]
   62 
   63 /*
   64  * Autoconfiguration helper functions.
   65  */
   66 int     wsmousedevprint(void *, const char *);
   67 
   68 /*
   69  * Callbacks from the mouse driver to the wsmouse interface driver.
   70  */
   71 #define WSMOUSE_INPUT_DELTA             0
   72 #define WSMOUSE_INPUT_ABSOLUTE_X        (1<<0)
   73 #define WSMOUSE_INPUT_ABSOLUTE_Y        (1<<1)
   74 #define WSMOUSE_INPUT_ABSOLUTE_Z        (1<<2)
   75 void    wsmouse_input(struct device *kbddev, u_int btns,
   76                       int x, int y, int z, u_int flags);

Cache object: 87393bd2ce7dfc1e365b912f05e80a49


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.