Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 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[] = { |
Michael Krufky | 14a638cd | 2008-06-28 23:53:51 -0300 | [diff] [blame] | 23 | #ifdef CONFIG_DVB_SIANO_SMS1XXX_SMS_IDS |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 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 }, |
Michael Krufky | 14a638cd | 2008-06-28 23:53:51 -0300 | [diff] [blame] | 34 | #endif |
Michael Krufky | 44f71c3 | 2008-06-28 23:55:36 -0300 | [diff] [blame] | 35 | { USB_DEVICE(0x2040, 0x1700), |
| 36 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT }, |
| 37 | { USB_DEVICE(0x2040, 0x1800), |
| 38 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A }, |
| 39 | { USB_DEVICE(0x2040, 0x1801), |
| 40 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B }, |
| 41 | { USB_DEVICE(0x2040, 0x5500), |
| 42 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, |
| 43 | { USB_DEVICE(0x2040, 0x5580), |
| 44 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, |
| 45 | { USB_DEVICE(0x2040, 0x5590), |
| 46 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 47 | { } /* Terminating entry */ |
| 48 | }; |
| 49 | MODULE_DEVICE_TABLE(usb, smsusb_id_table); |
| 50 | |
| 51 | static struct sms_board sms_boards[] = { |
| 52 | [SMS_BOARD_UNKNOWN] = { |
| 53 | .name = "Unknown board", |
| 54 | }, |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 55 | [SMS1XXX_BOARD_SIANO_STELLAR] = { |
Michael Krufky | cf1cfe1 | 2008-06-28 16:45:36 -0300 | [diff] [blame] | 56 | .name = "Siano Stellar Digital Receiver", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 57 | .type = SMS_STELLAR, |
Michael Krufky | a745f0a | 2008-07-01 04:47:10 -0300 | [diff] [blame] | 58 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-stellar-dvbt-01.fw", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 59 | }, |
| 60 | [SMS1XXX_BOARD_SIANO_NOVA_A] = { |
Michael Krufky | cf1cfe1 | 2008-06-28 16:45:36 -0300 | [diff] [blame] | 61 | .name = "Siano Nova A Digital Receiver", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 62 | .type = SMS_NOVA_A0, |
Michael Krufky | a745f0a | 2008-07-01 04:47:10 -0300 | [diff] [blame] | 63 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-a-dvbt-01.fw", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 64 | }, |
| 65 | [SMS1XXX_BOARD_SIANO_NOVA_B] = { |
Michael Krufky | cf1cfe1 | 2008-06-28 16:45:36 -0300 | [diff] [blame] | 66 | .name = "Siano Nova B Digital Receiver", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 67 | .type = SMS_NOVA_B0, |
Michael Krufky | a745f0a | 2008-07-01 04:47:10 -0300 | [diff] [blame] | 68 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-b-dvbt-01.fw", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 69 | }, |
| 70 | [SMS1XXX_BOARD_SIANO_VEGA] = { |
Michael Krufky | cf1cfe1 | 2008-06-28 16:45:36 -0300 | [diff] [blame] | 71 | .name = "Siano Vega Digital Receiver", |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 72 | .type = SMS_VEGA, |
| 73 | }, |
Michael Krufky | 44f71c3 | 2008-06-28 23:55:36 -0300 | [diff] [blame] | 74 | [SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT] = { |
| 75 | .name = "Hauppauge Catamount", |
| 76 | .type = SMS_STELLAR, |
| 77 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-stellar-dvbt-01.fw", |
| 78 | }, |
| 79 | [SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A] = { |
| 80 | .name = "Hauppauge Okemo-A", |
| 81 | .type = SMS_NOVA_A0, |
| 82 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-a-dvbt-01.fw", |
| 83 | }, |
| 84 | [SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B] = { |
| 85 | .name = "Hauppauge Okemo-B", |
| 86 | .type = SMS_NOVA_B0, |
| 87 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-b-dvbt-01.fw", |
| 88 | }, |
| 89 | [SMS1XXX_BOARD_HAUPPAUGE_WINDHAM] = { |
| 90 | .name = "Hauppauge WinTV-Nova-T-MiniStick", |
| 91 | .type = SMS_NOVA_B0, |
| 92 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-hcw-55xxx-dvbt-01.fw", |
| 93 | }, |
Michael Krufky | 1c11d54 | 2008-06-18 22:09:55 -0300 | [diff] [blame] | 94 | }; |
| 95 | |
| 96 | struct sms_board *sms_get_board(int id) |
| 97 | { |
| 98 | BUG_ON(id >= ARRAY_SIZE(sms_boards)); |
| 99 | |
| 100 | return &sms_boards[id]; |
| 101 | } |
| 102 | |