18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * DVB USB Linux driver for AME DTV-5100 USB2.0 DVB-T
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2008  Antoine Jacquet <royale@zerezo.com>
68c2ecf20Sopenharmony_ci * http://royale.zerezo.com/dtv5100/
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef _DVB_USB_DTV5100_H_
108c2ecf20Sopenharmony_ci#define _DVB_USB_DTV5100_H_
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define DVB_USB_LOG_PREFIX "dtv5100"
138c2ecf20Sopenharmony_ci#include "dvb-usb.h"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define DTV5100_USB_TIMEOUT 500
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define DTV5100_DEMOD_ADDR	0x00
188c2ecf20Sopenharmony_ci#define DTV5100_DEMOD_WRITE	0xc0
198c2ecf20Sopenharmony_ci#define DTV5100_DEMOD_READ	0xc1
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define DTV5100_TUNER_ADDR	0xc4
228c2ecf20Sopenharmony_ci#define DTV5100_TUNER_WRITE	0xc7
238c2ecf20Sopenharmony_ci#define DTV5100_TUNER_READ	0xc8
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define DRIVER_AUTHOR "Antoine Jacquet, http://royale.zerezo.com/"
268c2ecf20Sopenharmony_ci#define DRIVER_DESC "AME DTV-5100 USB2.0 DVB-T"
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_cistatic struct {
298c2ecf20Sopenharmony_ci	u8 request;
308c2ecf20Sopenharmony_ci	u8 value;
318c2ecf20Sopenharmony_ci	u16 index;
328c2ecf20Sopenharmony_ci} dtv5100_init[] = {
338c2ecf20Sopenharmony_ci	{ 0x000000c5, 0x00000000, 0x00000001 },
348c2ecf20Sopenharmony_ci	{ 0x000000c5, 0x00000001, 0x00000001 },
358c2ecf20Sopenharmony_ci	{ }		/* Terminating entry */
368c2ecf20Sopenharmony_ci};
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#endif
39