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