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/bktr/bktr_card.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 /* $FreeBSD: releng/8.4/sys/dev/bktr/bktr_card.h 152375 2005-11-13 13:26:37Z netchild $ */
    2 
    3 /*
    4  * This is part of the Driver for Video Capture Cards (Frame grabbers)
    5  * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
    6  * chipset.
    7  * Copyright Roger Hardiman and Amancio Hasty.
    8  *
    9  * bktr_card : This deals with identifying TV cards.
   10  *               trying to find the card make and model of card.
   11  *               trying to find the type of tuner fitted.
   12  *               reading the configuration EEPROM.
   13  *               locating i2c devices.
   14  *
   15  */
   16 
   17 /*-
   18  * 1. Redistributions of source code must retain the
   19  * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman
   20  * All rights reserved.
   21  *
   22  * Redistribution and use in source and binary forms, with or without
   23  * modification, are permitted provided that the following conditions
   24  * are met:
   25  * 1. Redistributions of source code must retain the above copyright
   26  *    notice, this list of conditions and the following disclaimer.
   27  * 2. Redistributions in binary form must reproduce the above copyright
   28  *    notice, this list of conditions and the following disclaimer in the
   29  *    documentation and/or other materials provided with the distribution.
   30  * 3. All advertising materials mentioning features or use of this software
   31  *    must display the following acknowledgement:
   32  *      This product includes software developed by Amancio Hasty and
   33  *      Roger Hardiman
   34  * 4. The name of the author may not be used to endorse or promote products
   35  *    derived from this software without specific prior written permission.
   36  *
   37  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   38  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   39  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   40  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
   41  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   42  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   43  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   44  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   45  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
   46  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   47  * POSSIBILITY OF SUCH DAMAGE.
   48  */
   49 
   50 /*
   51  * If probeCard() fails to detect the correct card on boot you can
   52  * override it by setting adding the following option to your kernel config
   53  *  options BKTR_OVERRIDE_CARD  <card type>
   54  *  eg options BKTR_OVERRIDE CARD=1
   55  *
   56  * or using the sysclt  hw.bt848.card
   57  *  eg sysctl hw.bt848.card=1
   58  *
   59  * where <card type> is one of the following card defines.
   60  */
   61  
   62 #define CARD_UNKNOWN            0
   63 #define CARD_MIRO               1
   64 #define CARD_HAUPPAUGE          2
   65 #define CARD_STB                3
   66 #define CARD_INTEL              4   /* Also for VideoLogic Captivator PCI */
   67 #define CARD_IMS_TURBO          5
   68 #define CARD_AVER_MEDIA         6
   69 #define CARD_OSPREY             7
   70 #define CARD_NEC_PK             8
   71 #define CARD_IO_BCTV2           9
   72 #define CARD_FLYVIDEO           10
   73 #define CARD_ZOLTRIX            11
   74 #define CARD_KISS               12
   75 #define CARD_VIDEO_HIGHWAY_XTREME       13
   76 #define CARD_ASKEY_DYNALINK_MAGIC_TVIEW 14
   77 #define CARD_LEADTEK            15
   78 #define CARD_TERRATVPLUS        16
   79 #define CARD_IO_BCTV3           17
   80 #define CARD_AOPEN_VA1000       18
   81 #define CARD_PINNACLE_PCTV_RAVE 19
   82 #define CARD_PIXELVIEW_PLAYTV_PAK       20
   83 #define CARD_TERRATVALUE        21
   84 #define CARD_PIXELVIEW_PLAYTV_PRO_REV_4C        22
   85 #define Bt848_MAX_CARD          23
   86  
   87 #define CARD_IO_GV              CARD_IO_BCTV2
   88 
   89 int     signCard( bktr_ptr_t bktr, int offset, int count, u_char* sig );
   90 void    probeCard( bktr_ptr_t bktr, int verbose, int unit);
   91 
   92 int     writeEEProm( bktr_ptr_t bktr, int offset, int count, u_char *data );
   93 int     readEEProm( bktr_ptr_t bktr, int offset, int count, u_char *data );
   94 

Cache object: b8c187401b97852e3e27b4226991779b


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