1786baecfSMauro Carvalho Chehab /* DVB USB compliant linux driver for 2786baecfSMauro Carvalho Chehab * 3786baecfSMauro Carvalho Chehab * DM04/QQBOX DVB-S USB BOX LME2510C + SHARP:BS2F7HZ7395 4786baecfSMauro Carvalho Chehab * LME2510C + LG TDQY-P001F 5786baecfSMauro Carvalho Chehab * LME2510 + LG TDQY-P001F 6786baecfSMauro Carvalho Chehab * 7786baecfSMauro Carvalho Chehab * MVB7395 (LME2510C+SHARP:BS2F7HZ7395) 8786baecfSMauro Carvalho Chehab * SHARP:BS2F7HZ7395 = (STV0288+Sharp IX2505V) 9786baecfSMauro Carvalho Chehab * 10786baecfSMauro Carvalho Chehab * MVB001F (LME2510+LGTDQT-P001F) 11786baecfSMauro Carvalho Chehab * LG TDQY - P001F =(TDA8263 + TDA10086H) 12786baecfSMauro Carvalho Chehab * 13786baecfSMauro Carvalho Chehab * MVB0001F (LME2510C+LGTDQT-P001F) 14786baecfSMauro Carvalho Chehab * 15786baecfSMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify it 16786baecfSMauro Carvalho Chehab * under the terms of the GNU General Public License as published by the Free 17786baecfSMauro Carvalho Chehab * Software Foundation, version 2. 18786baecfSMauro Carvalho Chehab * * 19670d7adbSMauro Carvalho Chehab * see Documentation/media/dvb-drivers/dvb-usb.rst for more information 20786baecfSMauro Carvalho Chehab */ 21786baecfSMauro Carvalho Chehab #ifndef _DVB_USB_LME2510_H_ 22786baecfSMauro Carvalho Chehab #define _DVB_USB_LME2510_H_ 23786baecfSMauro Carvalho Chehab 24786baecfSMauro Carvalho Chehab /* Streamer & PID 25786baecfSMauro Carvalho Chehab * 26786baecfSMauro Carvalho Chehab * Note: These commands do not actually stop the streaming 27786baecfSMauro Carvalho Chehab * but form some kind of packet filtering/stream count 28786baecfSMauro Carvalho Chehab * or tuning related functions. 29786baecfSMauro Carvalho Chehab * 06 XX 30786baecfSMauro Carvalho Chehab * offset 1 = 00 Enable Streaming 31786baecfSMauro Carvalho Chehab * 32786baecfSMauro Carvalho Chehab * 33786baecfSMauro Carvalho Chehab * PID 34786baecfSMauro Carvalho Chehab * 03 XX XX ----> reg number ---> setting....20 XX 35786baecfSMauro Carvalho Chehab * offset 1 = length 36786baecfSMauro Carvalho Chehab * offset 2 = start of data 37786baecfSMauro Carvalho Chehab * end byte -1 = 20 38786baecfSMauro Carvalho Chehab * end byte = clear pid always a0, other wise 9c, 9a ?? 39786baecfSMauro Carvalho Chehab * 40786baecfSMauro Carvalho Chehab */ 41786baecfSMauro Carvalho Chehab #define LME_ST_ON_W {0x06, 0x00} 42786baecfSMauro Carvalho Chehab #define LME_CLEAR_PID {0x03, 0x02, 0x20, 0xa0} 43786baecfSMauro Carvalho Chehab #define LME_ZERO_PID {0x03, 0x06, 0x00, 0x00, 0x01, 0x00, 0x20, 0x9c} 44786baecfSMauro Carvalho Chehab #define LME_ALL_PIDS {0x03, 0x06, 0x00, 0xff, 0x01, 0x1f, 0x20, 0x81} 45786baecfSMauro Carvalho Chehab 46786baecfSMauro Carvalho Chehab /* LNB Voltage 47786baecfSMauro Carvalho Chehab * 07 XX XX 48786baecfSMauro Carvalho Chehab * offset 1 = 01 49786baecfSMauro Carvalho Chehab * offset 2 = 00=Voltage low 01=Voltage high 50786baecfSMauro Carvalho Chehab * 51786baecfSMauro Carvalho Chehab * LNB Power 52786baecfSMauro Carvalho Chehab * 03 01 XX 53786baecfSMauro Carvalho Chehab * offset 2 = 00=ON 01=OFF 54786baecfSMauro Carvalho Chehab */ 55786baecfSMauro Carvalho Chehab 56786baecfSMauro Carvalho Chehab #define LME_VOLTAGE_L {0x07, 0x01, 0x00} 57786baecfSMauro Carvalho Chehab #define LME_VOLTAGE_H {0x07, 0x01, 0x01} 58786baecfSMauro Carvalho Chehab #define LNB_ON {0x3a, 0x01, 0x00} 59786baecfSMauro Carvalho Chehab #define LNB_OFF {0x3a, 0x01, 0x01} 60786baecfSMauro Carvalho Chehab 61786baecfSMauro Carvalho Chehab /* Initial stv0288 settings for 7395 Frontend */ 62786baecfSMauro Carvalho Chehab static u8 s7395_inittab[] = { 63786baecfSMauro Carvalho Chehab 0x01, 0x15, 64786baecfSMauro Carvalho Chehab 0x02, 0x20, 65786baecfSMauro Carvalho Chehab 0x03, 0xa0, 66786baecfSMauro Carvalho Chehab 0x04, 0xa0, 67786baecfSMauro Carvalho Chehab 0x05, 0x12, 68786baecfSMauro Carvalho Chehab 0x06, 0x00, 69786baecfSMauro Carvalho Chehab 0x09, 0x00, 70786baecfSMauro Carvalho Chehab 0x0a, 0x04, 71786baecfSMauro Carvalho Chehab 0x0b, 0x00, 72786baecfSMauro Carvalho Chehab 0x0c, 0x00, 73786baecfSMauro Carvalho Chehab 0x0d, 0x00, 74786baecfSMauro Carvalho Chehab 0x0e, 0xc1, 75786baecfSMauro Carvalho Chehab 0x0f, 0x54, 76786baecfSMauro Carvalho Chehab 0x11, 0x7a, 77786baecfSMauro Carvalho Chehab 0x12, 0x03, 78786baecfSMauro Carvalho Chehab 0x13, 0x48, 79786baecfSMauro Carvalho Chehab 0x14, 0x84, 80786baecfSMauro Carvalho Chehab 0x15, 0xc5, 81786baecfSMauro Carvalho Chehab 0x16, 0xb8, 82786baecfSMauro Carvalho Chehab 0x17, 0x9c, 83786baecfSMauro Carvalho Chehab 0x18, 0x00, 84786baecfSMauro Carvalho Chehab 0x19, 0xa6, 85786baecfSMauro Carvalho Chehab 0x1a, 0x88, 86786baecfSMauro Carvalho Chehab 0x1b, 0x8f, 87786baecfSMauro Carvalho Chehab 0x1c, 0xf0, 88786baecfSMauro Carvalho Chehab 0x20, 0x0b, 89786baecfSMauro Carvalho Chehab 0x21, 0x54, 90786baecfSMauro Carvalho Chehab 0x22, 0xff, 91786baecfSMauro Carvalho Chehab 0x23, 0x01, 92786baecfSMauro Carvalho Chehab 0x28, 0x46, 93786baecfSMauro Carvalho Chehab 0x29, 0x66, 94786baecfSMauro Carvalho Chehab 0x2a, 0x90, 95786baecfSMauro Carvalho Chehab 0x2b, 0xfa, 96786baecfSMauro Carvalho Chehab 0x2c, 0xd9, 97786baecfSMauro Carvalho Chehab 0x30, 0x0, 98786baecfSMauro Carvalho Chehab 0x31, 0x1e, 99786baecfSMauro Carvalho Chehab 0x32, 0x14, 100786baecfSMauro Carvalho Chehab 0x33, 0x0f, 101786baecfSMauro Carvalho Chehab 0x34, 0x09, 102786baecfSMauro Carvalho Chehab 0x35, 0x0c, 103786baecfSMauro Carvalho Chehab 0x36, 0x05, 104786baecfSMauro Carvalho Chehab 0x37, 0x2f, 105786baecfSMauro Carvalho Chehab 0x38, 0x16, 106786baecfSMauro Carvalho Chehab 0x39, 0xbd, 107786baecfSMauro Carvalho Chehab 0x3a, 0x0, 108786baecfSMauro Carvalho Chehab 0x3b, 0x13, 109786baecfSMauro Carvalho Chehab 0x3c, 0x11, 110786baecfSMauro Carvalho Chehab 0x3d, 0x30, 111786baecfSMauro Carvalho Chehab 0x40, 0x63, 112786baecfSMauro Carvalho Chehab 0x41, 0x04, 113786baecfSMauro Carvalho Chehab 0x42, 0x20, 114786baecfSMauro Carvalho Chehab 0x43, 0x00, 115786baecfSMauro Carvalho Chehab 0x44, 0x00, 116786baecfSMauro Carvalho Chehab 0x45, 0x00, 117786baecfSMauro Carvalho Chehab 0x46, 0x00, 118786baecfSMauro Carvalho Chehab 0x47, 0x00, 119786baecfSMauro Carvalho Chehab 0x4a, 0x00, 120786baecfSMauro Carvalho Chehab 0x50, 0x10, 121786baecfSMauro Carvalho Chehab 0x51, 0x36, 122786baecfSMauro Carvalho Chehab 0x52, 0x21, 123786baecfSMauro Carvalho Chehab 0x53, 0x94, 124786baecfSMauro Carvalho Chehab 0x54, 0xb2, 125786baecfSMauro Carvalho Chehab 0x55, 0x29, 126786baecfSMauro Carvalho Chehab 0x56, 0x64, 127786baecfSMauro Carvalho Chehab 0x57, 0x2b, 128786baecfSMauro Carvalho Chehab 0x58, 0x54, 129786baecfSMauro Carvalho Chehab 0x59, 0x86, 130786baecfSMauro Carvalho Chehab 0x5a, 0x00, 131786baecfSMauro Carvalho Chehab 0x5b, 0x9b, 132786baecfSMauro Carvalho Chehab 0x5c, 0x08, 133786baecfSMauro Carvalho Chehab 0x5d, 0x7f, 134786baecfSMauro Carvalho Chehab 0x5e, 0xff, 135786baecfSMauro Carvalho Chehab 0x5f, 0x8d, 136786baecfSMauro Carvalho Chehab 0x70, 0x0, 137786baecfSMauro Carvalho Chehab 0x71, 0x0, 138786baecfSMauro Carvalho Chehab 0x72, 0x0, 139786baecfSMauro Carvalho Chehab 0x74, 0x0, 140786baecfSMauro Carvalho Chehab 0x75, 0x0, 141786baecfSMauro Carvalho Chehab 0x76, 0x0, 142786baecfSMauro Carvalho Chehab 0x81, 0x0, 143786baecfSMauro Carvalho Chehab 0x82, 0x3f, 144786baecfSMauro Carvalho Chehab 0x83, 0x3f, 145786baecfSMauro Carvalho Chehab 0x84, 0x0, 146786baecfSMauro Carvalho Chehab 0x85, 0x0, 147786baecfSMauro Carvalho Chehab 0x88, 0x0, 148786baecfSMauro Carvalho Chehab 0x89, 0x0, 149786baecfSMauro Carvalho Chehab 0x8a, 0x0, 150786baecfSMauro Carvalho Chehab 0x8b, 0x0, 151786baecfSMauro Carvalho Chehab 0x8c, 0x0, 152786baecfSMauro Carvalho Chehab 0x90, 0x0, 153786baecfSMauro Carvalho Chehab 0x91, 0x0, 154786baecfSMauro Carvalho Chehab 0x92, 0x0, 155786baecfSMauro Carvalho Chehab 0x93, 0x0, 156786baecfSMauro Carvalho Chehab 0x94, 0x1c, 157786baecfSMauro Carvalho Chehab 0x97, 0x0, 158786baecfSMauro Carvalho Chehab 0xa0, 0x48, 159786baecfSMauro Carvalho Chehab 0xa1, 0x0, 160786baecfSMauro Carvalho Chehab 0xb0, 0xb8, 161786baecfSMauro Carvalho Chehab 0xb1, 0x3a, 162786baecfSMauro Carvalho Chehab 0xb2, 0x10, 163786baecfSMauro Carvalho Chehab 0xb3, 0x82, 164786baecfSMauro Carvalho Chehab 0xb4, 0x80, 165786baecfSMauro Carvalho Chehab 0xb5, 0x82, 166786baecfSMauro Carvalho Chehab 0xb6, 0x82, 167786baecfSMauro Carvalho Chehab 0xb7, 0x82, 168786baecfSMauro Carvalho Chehab 0xb8, 0x20, 169786baecfSMauro Carvalho Chehab 0xb9, 0x0, 170786baecfSMauro Carvalho Chehab 0xf0, 0x0, 171786baecfSMauro Carvalho Chehab 0xf1, 0x0, 172786baecfSMauro Carvalho Chehab 0xf2, 0xc0, 173786baecfSMauro Carvalho Chehab 0xff, 0xff, 174786baecfSMauro Carvalho Chehab }; 175786baecfSMauro Carvalho Chehab #endif 176