162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Abilis Systems Single DVB-T Receiver
462306a36Sopenharmony_ci * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
562306a36Sopenharmony_ci * Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci#ifndef _AS102_USB_DRV_H_
862306a36Sopenharmony_ci#define _AS102_USB_DRV_H_
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#define AS102_USB_DEVICE_TX_CTRL_CMD	0xF1
1162306a36Sopenharmony_ci#define AS102_USB_DEVICE_RX_CTRL_CMD	0xF2
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci/* define these values to match the supported devices */
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci/* Abilis system: "TITAN" */
1662306a36Sopenharmony_ci#define AS102_REFERENCE_DESIGN		"Abilis Systems DVB-Titan"
1762306a36Sopenharmony_ci#define AS102_USB_DEVICE_VENDOR_ID	0x1BA6
1862306a36Sopenharmony_ci#define AS102_USB_DEVICE_PID_0001	0x0001
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci/* PCTV Systems: PCTV picoStick (74e) */
2162306a36Sopenharmony_ci#define AS102_PCTV_74E			"PCTV Systems picoStick (74e)"
2262306a36Sopenharmony_ci#define PCTV_74E_USB_VID		0x2013
2362306a36Sopenharmony_ci#define PCTV_74E_USB_PID		0x0246
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci/* Elgato: EyeTV DTT Deluxe */
2662306a36Sopenharmony_ci#define AS102_ELGATO_EYETV_DTT_NAME	"Elgato EyeTV DTT Deluxe"
2762306a36Sopenharmony_ci#define ELGATO_EYETV_DTT_USB_VID	0x0fd9
2862306a36Sopenharmony_ci#define ELGATO_EYETV_DTT_USB_PID	0x002c
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci/* nBox: nBox DVB-T Dongle */
3162306a36Sopenharmony_ci#define AS102_NBOX_DVBT_DONGLE_NAME	"nBox DVB-T Dongle"
3262306a36Sopenharmony_ci#define NBOX_DVBT_DONGLE_USB_VID	0x0b89
3362306a36Sopenharmony_ci#define NBOX_DVBT_DONGLE_USB_PID	0x0007
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci/* Sky Italia: Digital Key (green led) */
3662306a36Sopenharmony_ci#define AS102_SKY_IT_DIGITAL_KEY_NAME	"Sky IT Digital Key (green led)"
3762306a36Sopenharmony_ci#define SKY_IT_DIGITAL_KEY_USB_VID	0x2137
3862306a36Sopenharmony_ci#define SKY_IT_DIGITAL_KEY_USB_PID	0x0001
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_civoid as102_urb_stream_irq(struct urb *urb);
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_cistruct as10x_usb_token_cmd_t {
4362306a36Sopenharmony_ci	/* token cmd */
4462306a36Sopenharmony_ci	struct as10x_cmd_t c;
4562306a36Sopenharmony_ci	/* token response */
4662306a36Sopenharmony_ci	struct as10x_cmd_t r;
4762306a36Sopenharmony_ci};
4862306a36Sopenharmony_ci#endif
49