Commit | Line | Data |
---|---|---|
1c11d546 MK |
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 | { USB_DEVICE(0x187f, 0x0010), | |
24 | .driver_info = SMS1XXX_BOARD_SIANO_STELLAR }, | |
25 | { USB_DEVICE(0x187f, 0x0100), | |
26 | .driver_info = SMS1XXX_BOARD_SIANO_STELLAR }, | |
27 | { USB_DEVICE(0x187f, 0x0200), | |
28 | .driver_info = SMS1XXX_BOARD_SIANO_NOVA_A }, | |
29 | { USB_DEVICE(0x187f, 0x0201), | |
30 | .driver_info = SMS1XXX_BOARD_SIANO_NOVA_B }, | |
31 | { USB_DEVICE(0x187f, 0x0300), | |
32 | .driver_info = SMS1XXX_BOARD_SIANO_VEGA }, | |
33 | { } /* Terminating entry */ | |
34 | }; | |
35 | MODULE_DEVICE_TABLE(usb, smsusb_id_table); | |
36 | ||
37 | static struct sms_board sms_boards[] = { | |
38 | [SMS_BOARD_UNKNOWN] = { | |
39 | .name = "Unknown board", | |
40 | }, | |
1c11d546 | 41 | [SMS1XXX_BOARD_SIANO_STELLAR] = { |
cf1cfe1b | 42 | .name = "Siano Stellar Digital Receiver", |
1c11d546 MK |
43 | .type = SMS_STELLAR, |
44 | }, | |
45 | [SMS1XXX_BOARD_SIANO_NOVA_A] = { | |
cf1cfe1b | 46 | .name = "Siano Nova A Digital Receiver", |
1c11d546 MK |
47 | .type = SMS_NOVA_A0, |
48 | }, | |
49 | [SMS1XXX_BOARD_SIANO_NOVA_B] = { | |
cf1cfe1b | 50 | .name = "Siano Nova B Digital Receiver", |
1c11d546 MK |
51 | .type = SMS_NOVA_B0, |
52 | }, | |
53 | [SMS1XXX_BOARD_SIANO_VEGA] = { | |
cf1cfe1b | 54 | .name = "Siano Vega Digital Receiver", |
1c11d546 MK |
55 | .type = SMS_VEGA, |
56 | }, | |
57 | }; | |
58 | ||
59 | struct sms_board *sms_get_board(int id) | |
60 | { | |
61 | BUG_ON(id >= ARRAY_SIZE(sms_boards)); | |
62 | ||
63 | return &sms_boards[id]; | |
64 | } | |
65 |