]> err.no Git - linux-2.6/blob - drivers/media/dvb/siano/sms-cards.c
V4L/DVB (8312): sms1xxx: add firmware filenames to board properties for stellar and...
[linux-2.6] / drivers / media / dvb / siano / sms-cards.c
1 /*
2  *  Card-specific functions for the Siano SMS1xxx USB dongle
3  *
4  *  Copyright (c) 2008 Michael Krufky <mkrufky@linuxtv.org>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License version 3 as
8  *  published by the Free Software Foundation;
9  *
10  *  Software distributed under the License is distributed on an "AS IS"
11  *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
12  *
13  *  See the GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #include "sms-cards.h"
21
22 struct usb_device_id smsusb_id_table[] = {
23 #ifdef CONFIG_DVB_SIANO_SMS1XXX_SMS_IDS
24         { USB_DEVICE(0x187f, 0x0010),
25                 .driver_info = SMS1XXX_BOARD_SIANO_STELLAR },
26         { USB_DEVICE(0x187f, 0x0100),
27                 .driver_info = SMS1XXX_BOARD_SIANO_STELLAR },
28         { USB_DEVICE(0x187f, 0x0200),
29                 .driver_info = SMS1XXX_BOARD_SIANO_NOVA_A },
30         { USB_DEVICE(0x187f, 0x0201),
31                 .driver_info = SMS1XXX_BOARD_SIANO_NOVA_B },
32         { USB_DEVICE(0x187f, 0x0300),
33                 .driver_info = SMS1XXX_BOARD_SIANO_VEGA },
34 #endif
35         { }             /* Terminating entry */
36 };
37 MODULE_DEVICE_TABLE(usb, smsusb_id_table);
38
39 static struct sms_board sms_boards[] = {
40         [SMS_BOARD_UNKNOWN] = {
41                 .name   = "Unknown board",
42         },
43         [SMS1XXX_BOARD_SIANO_STELLAR] = {
44                 .name   = "Siano Stellar Digital Receiver",
45                 .type   = SMS_STELLAR,
46                 .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-stellar-dvbt-01.fw",
47         },
48         [SMS1XXX_BOARD_SIANO_NOVA_A] = {
49                 .name   = "Siano Nova A Digital Receiver",
50                 .type   = SMS_NOVA_A0,
51                 .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-a-dvbt-01.fw",
52         },
53         [SMS1XXX_BOARD_SIANO_NOVA_B] = {
54                 .name   = "Siano Nova B Digital Receiver",
55                 .type   = SMS_NOVA_B0,
56                 .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-b-dvbt-01.fw",
57         },
58         [SMS1XXX_BOARD_SIANO_VEGA] = {
59                 .name   = "Siano Vega Digital Receiver",
60                 .type   = SMS_VEGA,
61         },
62 };
63
64 struct sms_board *sms_get_board(int id)
65 {
66         BUG_ON(id >= ARRAY_SIZE(sms_boards));
67
68         return &sms_boards[id];
69 }
70