1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Abilis Systems Single DVB-T Receiver
4  * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
5  */
6 #define MAX_FW_PKT_SIZE	64
7 
8 extern int dual_tuner;
9 
10 struct as10x_raw_fw_pkt {
11 	unsigned char address[4];
12 	unsigned char data[MAX_FW_PKT_SIZE - 6];
13 } __packed;
14 
15 struct as10x_fw_pkt_t {
16 	union {
17 		unsigned char request[2];
18 		unsigned char length[2];
19 	} __packed u;
20 	struct as10x_raw_fw_pkt raw;
21 } __packed;
22 
23 #ifdef __KERNEL__
24 int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap);
25 #endif
26