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/usb/ugraphire_rdesc.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: ugraphire_rdesc.h,v 1.3 2004/01/04 08:35:52 jdolecek Exp $     */
    2 /*
    3  * Copyright (c) 2000 Nick Hibma <n_hibma@freebsd.org>
    4  * 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  *
   15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   18  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   19  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   21  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   23  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   25  * SUCH DAMAGE.
   26  */
   27 
   28 static const uByte uhid_graphire_report_descr[] = {
   29     0x05, 0x0d,                    /*  USAGE_PAGE (Digitizers)          */
   30     0x09, 0x01,                    /*  USAGE (Digitizer)                */
   31     0xa1, 0x01,                    /*  COLLECTION (Application)         */
   32     0x85, 0x02,                    /*    REPORT_ID (2)                  */
   33     0x05, 0x0d,                    /*    USAGE_PAGE (Digitizers)        */
   34     0x09, 0x01,                    /*    USAGE (Digitizer)              */
   35     0xa1, 0x00,                    /*    COLLECTION (Physical)          */
   36     0x15, 0x00,                    /*      LOGICAL_MINIMUM (0)          */
   37     0x25, 0x01,                    /*      LOGICAL_MAXIMUM (1)          */
   38     0x09, 0x33,                    /*      USAGE (Touch)                */
   39     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   40     0x75, 0x01,                    /*      REPORT_SIZE (1)              */
   41     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   42     0x09, 0x44,                    /*      USAGE (Barrel Switch)        */
   43     0x95, 0x02,                    /*      REPORT_COUNT (2)             */
   44     0x75, 0x01,                    /*      REPORT_SIZE (1)              */
   45     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   46     0x09, 0x00,                    /*      USAGE (Undefined)            */
   47     0x95, 0x02,                    /*      REPORT_COUNT (2)             */
   48     0x75, 0x01,                    /*      REPORT_SIZE (1)              */
   49     0x81, 0x03,                    /*      INPUT (Cnst,Var,Abs)         */
   50     0x09, 0x3c,                    /*      USAGE (Invert)               */
   51     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   52     0x75, 0x01,                    /*      REPORT_SIZE (1)              */
   53     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   54     0x09, 0x38,                    /*      USAGE (Transducer Index)     */
   55     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   56     0x75, 0x01,                    /*      REPORT_SIZE (1)              */
   57     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   58     0x09, 0x32,                    /*      USAGE (In Range)             */
   59     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   60     0x75, 0x01,                    /*      REPORT_SIZE (1)              */
   61     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   62     0x05, 0x01,                    /*      USAGE_PAGE (Generic Desktop) */
   63     0x09, 0x30,                    /*      USAGE (X)                    */
   64     0x15, 0x00,                    /*      LOGICAL_MINIMUM (0)          */
   65     0x26, 0xde, 0x27,              /*      LOGICAL_MAXIMUM (10206)      */
   66     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   67     0x75, 0x10,                    /*      REPORT_SIZE (16)             */
   68     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   69     0x09, 0x31,                    /*      USAGE (Y)                    */
   70     0x26, 0xfe, 0x1c,              /*      LOGICAL_MAXIMUM (7422)       */
   71     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   72     0x75, 0x10,                    /*      REPORT_SIZE (16)             */
   73     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   74     0x05, 0x0d,                    /*      USAGE_PAGE (Digitizers)      */
   75     0x09, 0x30,                    /*      USAGE (Tip Pressure)         */
   76     0x26, 0xff, 0x01,              /*      LOGICAL_MAXIMUM (511)        */
   77     0x95, 0x01,                    /*      REPORT_COUNT (1)             */
   78     0x75, 0x10,                    /*      REPORT_SIZE (16)             */
   79     0x81, 0x02,                    /*      INPUT (Data,Var,Abs)         */
   80     0xc0,                          /*    END_COLLECTION                 */
   81     0x05, 0x0d,                    /*    USAGE_PAGE (Digitizers)        */
   82     0x09, 0x00,                    /*    USAGE (Undefined)              */
   83     0x85, 0x02,                    /*    REPORT_ID (2)                  */
   84     0x95, 0x01,                    /*    REPORT_COUNT (1)               */
   85     0xb1, 0x02,                    /*    FEATURE (Data,Var,Abs)         */
   86     0x09, 0x00,                    /*    USAGE (Undefined)              */
   87     0x85, 0x03,                    /*    REPORT_ID (3)                  */
   88     0x95, 0x01,                    /*    REPORT_COUNT (1)               */
   89     0xb1, 0x02,                    /*    FEATURE (Data,Var,Abs)         */
   90     0xc0,                          /*  END_COLLECTION                   */
   91 };
   92 
   93 static const uByte uhid_graphire3_4x5_report_descr[] = {
   94     0x05, 0x01,                    /* USAGE_PAGE (Generic Desktop)      */
   95     0x09, 0x02,                    /* USAGE (Mouse)                     */
   96     0xa1, 0x01,                    /* COLLECTION (Application)          */
   97     0x85, 0x01,                    /*   REPORT_ID (1)                   */
   98     0x09, 0x01,                    /*   USAGE (Pointer)                 */
   99     0xa1, 0x00,                    /*   COLLECTION (Physical)           */
  100     0x05, 0x09,                    /*     USAGE_PAGE (Button)           */
  101     0x19, 0x01,                    /*     USAGE_MINIMUM (Button 1)      */
  102     0x29, 0x03,                    /*     USAGE_MAXIMUM (Button 3)      */
  103     0x15, 0x00,                    /*     LOGICAL_MINIMUM (0)           */
  104     0x25, 0x01,                    /*     LOGICAL_MAXIMUM (1)           */
  105     0x95, 0x03,                    /*     REPORT_COUNT (3)              */
  106     0x75, 0x01,                    /*     REPORT_SIZE (1)               */
  107     0x81, 0x02,                    /*     INPUT (Data,Var,Abs)          */
  108     0x95, 0x01,                    /*     REPORT_COUNT (1)              */
  109     0x75, 0x05,                    /*     REPORT_SIZE (5)               */
  110     0x81, 0x01,                    /*     INPUT (Cnst,Ary,Abs)          */
  111     0x05, 0x01,                    /*     USAGE_PAGE (Generic Desktop)  */
  112     0x09, 0x30,                    /*     USAGE (X)                     */
  113     0x09, 0x31,                    /*     USAGE (Y)                     */
  114     0x09, 0x38,                    /*     USAGE (Wheel)                 */
  115     0x15, 0x81,                    /*     LOGICAL_MINIMUM (-127)        */
  116     0x25, 0x7f,                    /*     LOGICAL_MAXIMUM (127)         */
  117     0x75, 0x08,                    /*     REPORT_SIZE (8)               */
  118     0x95, 0x03,                    /*     REPORT_COUNT (3)              */
  119     0x81, 0x06,                    /*     INPUT (Data,Var,Rel)          */
  120     0xc0,                          /*   END_COLLECTION                  */
  121     0xc0,                          /* END_COLLECTION                    */
  122     0x05, 0x0d,                    /* USAGE_PAGE (Digitizers)           */
  123     0x09, 0x01,                    /* USAGE (Pointer)                   */
  124     0xa1, 0x01,                    /* COLLECTION (Applicaption)         */
  125     0x85, 0x02,                    /*   REPORT_ID (2)                   */
  126     0x05, 0x0d,                    /*   USAGE_PAGE (Digitizers)         */
  127     0x09, 0x01,                    /*   USAGE (Digitizer)               */
  128     0xa1, 0x00,                    /*   COLLECTION (Physical)           */
  129     0x09, 0x33,                    /*     USAGE (Touch)                 */
  130     0x09, 0x44,                    /*     USAGE (Barrel Switch)         */
  131     0x09, 0x44,                    /*     USAGE (Barrel Switch)         */
  132     0x15, 0x00,                    /*     LOGICAL_MINIMUM (0)           */
  133     0x25, 0x01,                    /*     LOGICAL_MAXIMUM (1)           */
  134     0x75, 0x01,                    /*     REPORT_SIZE (1)               */
  135     0x95, 0x03,                    /*     REPORT_COUNT (3)              */
  136     0x81, 0x02,                    /*     INPUT (Data,Var,Abs)          */
  137     0x75, 0x01,                    /*     REPORT_SIZE (1)               */
  138     0x95, 0x02,                    /*     REPORT_COUNT (2)              */
  139     0x81, 0x01,                    /*     INPUT (Cnst,Ary,Abs)          */
  140     0x09, 0x3c,                    /*     USAGE (Invert)                */
  141     0x09, 0x38,                    /*     USAGE (Transducer Index)      */
  142     0x09, 0x32,                    /*     USAGE (In Range)              */
  143     0x75, 0x01,                    /*     REPORT_SIZE (1)               */
  144     0x95, 0x03,                    /*     REPORT_COUNT (3)              */
  145     0x81, 0x02,                    /*     INPUT (Data,Var,Abs)          */
  146     0x05, 0x01,                    /*     USAGE_PAGE (Generic Desktop)  */
  147     0x09, 0x30,                    /*     USAGE (X)                     */
  148     0x15, 0x00,                    /*     LOGICAL_MINIMUM (0)           */
  149     0x26, 0xde, 0x27,              /*     LOGICAL_MAXIMUM (10206)       */
  150     0x75, 0x10,                    /*     REPORT_SIZE (16)              */
  151     0x95, 0x01,                    /*     REPORT_COUNT (1)              */
  152     0x81, 0x02,                    /*     INPUT (Data,Var,Abs)          */
  153     0x09, 0x31,                    /*     USAGE (Y)                     */
  154     0x26, 0xfe, 0x1c,              /*     LOGICAL_MAXIMUM (7422)        */
  155     0x75, 0x10,                    /*     REPORT_SIZE (16)              */
  156     0x95, 0x01,                    /*     REPORT_COUNT (1)              */
  157     0x81, 0x02,                    /*     INPUT (Data,Var,Abs)          */
  158     0x05, 0x0d,                    /*     USAGE_PAGE (Digitizers)       */
  159     0x09, 0x30,                    /*     USAGE (Tip Pressure)          */
  160     0x26, 0xff, 0x01,              /*     LOGICAL_MAXIMUM (511)         */
  161     0x75, 0x10,                    /*     REPORT_SIZE (16)              */
  162     0x95, 0x01,                    /*     REPORT_COUNT (1)              */
  163     0x81, 0x02,                    /*     INPUT (Data,Var,Abs)          */
  164     0xc0,                          /*   END_COLLECTION                  */
  165     0x05, 0x0d,                    /*   USAGE_PAGE (Digitizers)         */
  166     0x09, 0x00,                    /*   USAGE (Undefined)               */
  167     0x85, 0x02,                    /*   REPORT_ID (2)                   */
  168     0x95, 0x01,                    /*   REPORT_COUNT (1)                */
  169     0xb1, 0x02,                    /*   FEATURE (Data,Var,Abs)          */
  170     0x09, 0x00,                    /*   USAGE (Undefined)               */
  171     0x85, 0x03,                    /*   REPORT_ID (3)                   */
  172     0x95, 0x01,                    /*   REPORT_COUNT (1)                */
  173     0xb1, 0x02,                    /*   FEATURE (Data,Var,Abs)          */
  174     0xc0                           /* END_COLLECTION                    */
  175 };

Cache object: 89ae11d3de20215a4d1d0138ef567fb7


[ 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.