18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Abilis Systems Single DVB-T Receiver
48c2ecf20Sopenharmony_ci * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci#define MAX_FW_PKT_SIZE	64
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciextern int dual_tuner;
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_cistruct as10x_raw_fw_pkt {
118c2ecf20Sopenharmony_ci	unsigned char address[4];
128c2ecf20Sopenharmony_ci	unsigned char data[MAX_FW_PKT_SIZE - 6];
138c2ecf20Sopenharmony_ci} __packed;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistruct as10x_fw_pkt_t {
168c2ecf20Sopenharmony_ci	union {
178c2ecf20Sopenharmony_ci		unsigned char request[2];
188c2ecf20Sopenharmony_ci		unsigned char length[2];
198c2ecf20Sopenharmony_ci	} __packed u;
208c2ecf20Sopenharmony_ci	struct as10x_raw_fw_pkt raw;
218c2ecf20Sopenharmony_ci} __packed;
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#ifdef __KERNEL__
248c2ecf20Sopenharmony_ciint as102_fw_upload(struct as10x_bus_adapter_t *bus_adap);
258c2ecf20Sopenharmony_ci#endif
26