| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 1 | /* DVB USB compliant linux driver for | 
 | 2 |  * | 
 | 3 |  * DM04/QQBOX DVB-S USB BOX	LME2510C + SHARP:BS2F7HZ7395 | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 4 |  *				LME2510C + LG TDQY-P001F | 
 | 5 |  *				LME2510 + LG TDQY-P001F | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 6 |  * | 
 | 7 |  * MVB7395 (LME2510C+SHARP:BS2F7HZ7395) | 
 | 8 |  * SHARP:BS2F7HZ7395 = (STV0288+Sharp IX2505V) | 
 | 9 |  * | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 10 |  * MVB001F (LME2510+LGTDQT-P001F) | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 11 |  * LG TDQY - P001F =(TDA8263 + TDA10086H) | 
 | 12 |  * | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 13 |  * MVB0001F (LME2510C+LGTDQT-P001F) | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 14 |  * | 
 | 15 |  * This program is free software; you can redistribute it and/or modify it | 
 | 16 |  * under the terms of the GNU General Public License as published by the Free | 
 | 17 |  * Software Foundation,  version 2. | 
 | 18 |  * * | 
 | 19 |  * see Documentation/dvb/README.dvb-usb for more information | 
 | 20 |  */ | 
 | 21 | #ifndef _DVB_USB_LME2510_H_ | 
 | 22 | #define _DVB_USB_LME2510_H_ | 
 | 23 |  | 
 | 24 | /* Streamer &  PID | 
 | 25 |  * | 
 | 26 |  * Note:	These commands do not actually stop the streaming | 
 | 27 |  *		but form some kind of packet filtering/stream count | 
 | 28 |  *		or tuning related functions. | 
 | 29 |  *  06 XX | 
 | 30 |  *  offset 1 = 00 Enable Streaming | 
 | 31 |  * | 
 | 32 |  * | 
 | 33 |  *  PID | 
 | 34 |  *  03 XX XX  ----> reg number ---> setting....20 XX | 
 | 35 |  *  offset 1 = length | 
 | 36 |  *  offset 2 = start of data | 
 | 37 |  *  end byte -1 = 20 | 
 | 38 |  *  end byte = clear pid always a0, other wise 9c, 9a ?? | 
 | 39 |  * | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 40 | */ | 
 | 41 | #define LME_ST_ON_W	{0x06, 0x00} | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 42 | #define LME_CLEAR_PID   {0x03, 0x02, 0x20, 0xa0} | 
| Malcolm Priestley | eb02d85 | 2011-04-02 18:59:29 -0300 | [diff] [blame] | 43 | #define LME_ZERO_PID	{0x03, 0x06, 0x00, 0x00, 0x01, 0x00, 0x20, 0x9c} | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 44 |  | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 45 | /*  LNB Voltage | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 46 |  *  07 XX XX | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 47 |  *  offset 1 = 01 | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 48 |  *  offset 2 = 00=Voltage low 01=Voltage high | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 49 |  * | 
 | 50 |  *  LNB Power | 
 | 51 |  *  03 01 XX | 
 | 52 |  *  offset 2 = 00=ON 01=OFF | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 53 |  */ | 
 | 54 |  | 
 | 55 | #define LME_VOLTAGE_L	{0x07, 0x01, 0x00} | 
 | 56 | #define LME_VOLTAGE_H	{0x07, 0x01, 0x01} | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 57 | #define LNB_ON		{0x3a, 0x01, 0x00} | 
 | 58 | #define LNB_OFF		{0x3a, 0x01, 0x01} | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 59 |  | 
 | 60 | /* Initial stv0288 settings for 7395 Frontend */ | 
 | 61 | static u8 s7395_inittab[] = { | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 62 | 	0x01, 0x15, | 
 | 63 | 	0x02, 0x20, | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 64 | 	0x03, 0xa0, | 
 | 65 | 	0x04, 0xa0, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 66 | 	0x05, 0x12, | 
| Malcolm Priestley | ab599a6 | 2010-10-16 16:44:43 -0300 | [diff] [blame] | 67 | 	0x06, 0x00, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 68 | 	0x09, 0x00, | 
 | 69 | 	0x0a, 0x04, | 
 | 70 | 	0x0b, 0x00, | 
 | 71 | 	0x0c, 0x00, | 
 | 72 | 	0x0d, 0x00, | 
 | 73 | 	0x0e, 0xc1, | 
 | 74 | 	0x0f, 0x54, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 75 | 	0x11, 0x7a, | 
 | 76 | 	0x12, 0x03, | 
 | 77 | 	0x13, 0x48, | 
 | 78 | 	0x14, 0x84, | 
 | 79 | 	0x15, 0xc5, | 
 | 80 | 	0x16, 0xb8, | 
 | 81 | 	0x17, 0x9c, | 
 | 82 | 	0x18, 0x00, | 
 | 83 | 	0x19, 0xa6, | 
 | 84 | 	0x1a, 0x88, | 
 | 85 | 	0x1b, 0x8f, | 
 | 86 | 	0x1c, 0xf0, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 87 | 	0x20, 0x0b, | 
 | 88 | 	0x21, 0x54, | 
 | 89 | 	0x22, 0xff, | 
 | 90 | 	0x23, 0x01, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 91 | 	0x28, 0x46, | 
 | 92 | 	0x29, 0x66, | 
 | 93 | 	0x2a, 0x90, | 
 | 94 | 	0x2b, 0xfa, | 
 | 95 | 	0x2c, 0xd9, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 96 | 	0x30, 0x0, | 
 | 97 | 	0x31, 0x1e, | 
 | 98 | 	0x32, 0x14, | 
 | 99 | 	0x33, 0x0f, | 
 | 100 | 	0x34, 0x09, | 
 | 101 | 	0x35, 0x0c, | 
 | 102 | 	0x36, 0x05, | 
 | 103 | 	0x37, 0x2f, | 
 | 104 | 	0x38, 0x16, | 
 | 105 | 	0x39, 0xbd, | 
 | 106 | 	0x3a, 0x0, | 
 | 107 | 	0x3b, 0x13, | 
 | 108 | 	0x3c, 0x11, | 
 | 109 | 	0x3d, 0x30, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 110 | 	0x40, 0x63, | 
 | 111 | 	0x41, 0x04, | 
| Malcolm Priestley | 910c41c | 2011-04-02 10:47:50 -0300 | [diff] [blame] | 112 | 	0x42, 0x20, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 113 | 	0x43, 0x00, | 
 | 114 | 	0x44, 0x00, | 
 | 115 | 	0x45, 0x00, | 
 | 116 | 	0x46, 0x00, | 
 | 117 | 	0x47, 0x00, | 
 | 118 | 	0x4a, 0x00, | 
| Malcolm Priestley | 910c41c | 2011-04-02 10:47:50 -0300 | [diff] [blame] | 119 | 	0x50, 0x10, | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 120 | 	0x51, 0x36, | 
 | 121 | 	0x52, 0x21, | 
 | 122 | 	0x53, 0x94, | 
 | 123 | 	0x54, 0xb2, | 
 | 124 | 	0x55, 0x29, | 
 | 125 | 	0x56, 0x64, | 
 | 126 | 	0x57, 0x2b, | 
 | 127 | 	0x58, 0x54, | 
 | 128 | 	0x59, 0x86, | 
 | 129 | 	0x5a, 0x00, | 
 | 130 | 	0x5b, 0x9b, | 
 | 131 | 	0x5c, 0x08, | 
 | 132 | 	0x5d, 0x7f, | 
 | 133 | 	0x5e, 0xff, | 
 | 134 | 	0x5f, 0x8d, | 
 | 135 | 	0x70, 0x0, | 
 | 136 | 	0x71, 0x0, | 
 | 137 | 	0x72, 0x0, | 
 | 138 | 	0x74, 0x0, | 
 | 139 | 	0x75, 0x0, | 
 | 140 | 	0x76, 0x0, | 
 | 141 | 	0x81, 0x0, | 
 | 142 | 	0x82, 0x3f, | 
 | 143 | 	0x83, 0x3f, | 
 | 144 | 	0x84, 0x0, | 
 | 145 | 	0x85, 0x0, | 
 | 146 | 	0x88, 0x0, | 
 | 147 | 	0x89, 0x0, | 
 | 148 | 	0x8a, 0x0, | 
 | 149 | 	0x8b, 0x0, | 
 | 150 | 	0x8c, 0x0, | 
 | 151 | 	0x90, 0x0, | 
 | 152 | 	0x91, 0x0, | 
 | 153 | 	0x92, 0x0, | 
 | 154 | 	0x93, 0x0, | 
 | 155 | 	0x94, 0x1c, | 
 | 156 | 	0x97, 0x0, | 
 | 157 | 	0xa0, 0x48, | 
 | 158 | 	0xa1, 0x0, | 
 | 159 | 	0xb0, 0xb8, | 
 | 160 | 	0xb1, 0x3a, | 
 | 161 | 	0xb2, 0x10, | 
 | 162 | 	0xb3, 0x82, | 
 | 163 | 	0xb4, 0x80, | 
 | 164 | 	0xb5, 0x82, | 
 | 165 | 	0xb6, 0x82, | 
 | 166 | 	0xb7, 0x82, | 
 | 167 | 	0xb8, 0x20, | 
 | 168 | 	0xb9, 0x0, | 
 | 169 | 	0xf0, 0x0, | 
 | 170 | 	0xf1, 0x0, | 
 | 171 | 	0xf2, 0xc0, | 
 | 172 | 	0xff, 0xff, | 
 | 173 | }; | 
| Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame] | 174 | #endif |