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/i386/isa/qcamreg.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 /*
    2  * Connectix QuickCam parallel-port camera video capture driver.
    3  * Copyright (c) 1996, Paul Traina.
    4  *
    5  * This driver is based in part on work
    6  * Copyright (c) 1996, Thomas Davis.
    7  *
    8  * QuickCam(TM) is a registered trademark of Connectix Inc.
    9  * Use this driver at your own risk, it is not warranted by
   10  * Connectix or the authors.
   11  *
   12  * Redistribution and use in source and binary forms, with or without
   13  * modification, are permitted provided that the following conditions
   14  * are met:
   15  * 1. Redistributions of source code must retain the above copyright
   16  *    notice, this list of conditions and the following disclaimer
   17  *    in this position and unchanged.
   18  * 2. Redistributions in binary form must reproduce the above copyright
   19  *    notice, this list of conditions and the following disclaimer in the
   20  *    documentation and/or other materials provided with the distribution.
   21  * 3. The name of the author may not be used to endorse or promote products
   22  *    derived from this software withough specific prior written permission
   23  *
   24  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   25  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   26  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   27  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   29  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   30  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   31  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   32  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   33  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   34  *
   35  * The following information is hardware dependant.  It should not be used
   36  * by user applications, see machine/qcam.h for the applications interface.
   37  */
   38 
   39 #ifndef _QCAMREG_H
   40 #define _QCAMREG_H
   41 
   42 /*
   43  * Camera autodetection parameters
   44  */
   45 #define QC_PROBELIMIT           30              /* number of times to probe */
   46 #define QC_PROBECNTLOW          5               /* minimum transitions */
   47 #define QC_PROBECNTHI           25              /* maximum transitions */
   48 
   49 /*
   50  * QuickCam camera commands
   51  */
   52 #define QC_BRIGHTNESS           0x0b
   53 #define QC_CONTRAST             0x19
   54 #define QC_WHITEBALANCE         0x1f
   55 #define QC_XFERMODE             0x07
   56 #define QC_XSIZE                0x13
   57 #define QC_YSIZE                0x11
   58 #define QC_YORG                 0x0d
   59 #define QC_XORG                 0x0f
   60 
   61 /*
   62  * XFERmode register flags
   63  */
   64 #define QC_XFER_BIDIR           0x01            /* bidirectional transfer */
   65 #define QC_XFER_6BPP            0x02            /* 6 bits per pixel */
   66 #define QC_XFER_WIDE            0x00            /* wide angle */
   67 #define QC_XFER_NARROW          0x04            /* narrow */
   68 #define QC_XFER_TIGHT           0x08            /* very narrow */
   69 
   70 /*
   71  * QuickCam default values (don't depend on these staying the same)
   72  */
   73 #define QC_DEF_XSIZE            160
   74 #define QC_DEF_YSIZE            120
   75 #define QC_DEF_XORG             7
   76 #define QC_DEF_YORG             1
   77 #define QC_DEF_BPP              6
   78 #define QC_DEF_CONTRAST         180
   79 #define QC_DEF_BRIGHTNESS       180
   80 #define QC_DEF_WHITEBALANCE     150
   81 #define QC_DEF_ZOOM             QC_ZOOM_100
   82 
   83 /*
   84  * QuickCam parallel port handshake constants
   85  */
   86 #define QC_CTL_HIGHNIB          0x06
   87 #define QC_CTL_LOWNIB           0x0e
   88 #define QC_CTL_HIGHWORD         0x26
   89 #define QC_CTL_LOWWORD          0x2f
   90 
   91 #endif  /* _QCAMREG_H */

Cache object: 593e82cf20a6eb33cd78e17c22e042f1


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