1 1.1 jakllsch /* $NetBSD: cxdtv_boards.h,v 1.1 2011/07/11 00:46:04 jakllsch Exp $ */ 2 1.1 jakllsch 3 1.1 jakllsch /* 4 1.1 jakllsch * Copyright (c) 2008 Jonathan A. Kollasch 5 1.1 jakllsch * Copyright (c) 2008 Jared D. McNeill <jmcneill (at) invisible.ca> 6 1.1 jakllsch * All rights reserved. 7 1.1 jakllsch * 8 1.1 jakllsch * Redistribution and use in source and binary forms, with or without 9 1.1 jakllsch * modification, are permitted provided that the following conditions 10 1.1 jakllsch * are met: 11 1.1 jakllsch * 1. Redistributions of source code must retain the above copyright 12 1.1 jakllsch * notice, this list of conditions and the following disclaimer. 13 1.1 jakllsch * 2. Redistributions in binary form must reproduce the above copyright 14 1.1 jakllsch * notice, this list of conditions and the following disclaimer in the 15 1.1 jakllsch * documentation and/or other materials provided with the distribution. 16 1.1 jakllsch * 17 1.1 jakllsch * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 1.1 jakllsch * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 1.1 jakllsch * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20 1.1 jakllsch * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 21 1.1 jakllsch * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 1.1 jakllsch * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 1.1 jakllsch * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24 1.1 jakllsch * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 1.1 jakllsch * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 1.1 jakllsch * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27 1.1 jakllsch * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 1.1 jakllsch */ 29 1.1 jakllsch 30 1.1 jakllsch #ifndef _DEV_PCI_CXDTV_BOARDS_H 31 1.1 jakllsch #define _DEV_PCI_CXDTV_BOARDS_H 32 1.1 jakllsch 33 1.1 jakllsch typedef enum cxdtv_tuner_type { 34 1.1 jakllsch CXDTV_TUNER_PLL, 35 1.1 jakllsch } cxdtv_tuner_type_t; 36 1.1 jakllsch 37 1.1 jakllsch typedef enum cxdtv_demod_type { 38 1.1 jakllsch CXDTV_DEMOD_NXT2004, 39 1.1 jakllsch CXDTV_DEMOD_LG3303, 40 1.1 jakllsch } cxdtv_demod_type_t; 41 1.1 jakllsch 42 1.1 jakllsch struct cxdtv_board { 43 1.1 jakllsch const char *cb_name; 44 1.1 jakllsch pci_vendor_id_t cb_vendor; 45 1.1 jakllsch pci_product_id_t cb_product; 46 1.1 jakllsch cxdtv_tuner_type_t cb_tuner; 47 1.1 jakllsch cxdtv_demod_type_t cb_demod; 48 1.1 jakllsch }; 49 1.1 jakllsch 50 1.1 jakllsch const struct cxdtv_board *cxdtv_board_lookup(pci_vendor_id_t, 51 1.1 jakllsch pci_product_id_t); 52 1.1 jakllsch 53 1.1 jakllsch #endif /* !_DEV_PCI_CXDTV_BOARDS_H */ 54