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