summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/dvb-usb-v2/dvb_usb_firmware.h
blob: 358d9d0b1899a8a745259241addd4e0b681f29bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* dvb_usb_firmware.c is part of the DVB USB library.
 *
 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@desy.de)
 * see dvb-usb-init.c for copyright information.
 *
 * This file contains functions for downloading the firmware to Cypress FX 1
 * and 2 based devices.
 *
 */

#ifndef DVB_USB_FIRMWARE_H
#define DVB_USB_FIRMWARE_H

#define CYPRESS_AN2135  0
#define CYPRESS_AN2235  1
#define CYPRESS_FX2     2

/* commonly used firmware download types and function */
struct hexline {
	u8 len;
	u32 addr;
	u8 type;
	u8 data[255];
	u8 chk;
};
extern int usbv2_cypress_load_firmware(struct usb_device *,
		const struct firmware *, int);
extern int dvb_usbv2_get_hexline(const struct firmware *,
		struct hexline *, int *);

#endif