blob: c4c9ab0232e32af1cd8841accb344007bdc98250 [file] [log] [blame]
Michael Krufky1c11d542008-06-18 22:09:55 -03001/*
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
22struct usb_device_id smsusb_id_table[] = {
Michael Krufky14a638cd2008-06-28 23:53:51 -030023#ifdef CONFIG_DVB_SIANO_SMS1XXX_SMS_IDS
Michael Krufky1c11d542008-06-18 22:09:55 -030024 { 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 },
Michael Krufky14a638cd2008-06-28 23:53:51 -030034#endif
Michael Krufky1c11d542008-06-18 22:09:55 -030035 { } /* Terminating entry */
36};
37MODULE_DEVICE_TABLE(usb, smsusb_id_table);
38
39static struct sms_board sms_boards[] = {
40 [SMS_BOARD_UNKNOWN] = {
41 .name = "Unknown board",
42 },
Michael Krufky1c11d542008-06-18 22:09:55 -030043 [SMS1XXX_BOARD_SIANO_STELLAR] = {
Michael Krufkycf1cfe12008-06-28 16:45:36 -030044 .name = "Siano Stellar Digital Receiver",
Michael Krufky1c11d542008-06-18 22:09:55 -030045 .type = SMS_STELLAR,
46 },
47 [SMS1XXX_BOARD_SIANO_NOVA_A] = {
Michael Krufkycf1cfe12008-06-28 16:45:36 -030048 .name = "Siano Nova A Digital Receiver",
Michael Krufky1c11d542008-06-18 22:09:55 -030049 .type = SMS_NOVA_A0,
50 },
51 [SMS1XXX_BOARD_SIANO_NOVA_B] = {
Michael Krufkycf1cfe12008-06-28 16:45:36 -030052 .name = "Siano Nova B Digital Receiver",
Michael Krufky1c11d542008-06-18 22:09:55 -030053 .type = SMS_NOVA_B0,
54 },
55 [SMS1XXX_BOARD_SIANO_VEGA] = {
Michael Krufkycf1cfe12008-06-28 16:45:36 -030056 .name = "Siano Vega Digital Receiver",
Michael Krufky1c11d542008-06-18 22:09:55 -030057 .type = SMS_VEGA,
58 },
59};
60
61struct sms_board *sms_get_board(int id)
62{
63 BUG_ON(id >= ARRAY_SIZE(sms_boards));
64
65 return &sms_boards[id];
66}
67