aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dvb_usb_firmware.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-11 22:35:09 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 06:56:30 -0400
commitb00a901801f671a48feac6048faeafe0979760e6 (patch)
tree0655904af67919cffe5d59a2852d1e6b68a86710 /drivers/media/dvb/dvb-usb/dvb_usb_firmware.h
parentef81e9ebbe57236683e6950d0ec82a20f2d350eb (diff)
[media] dvb_usb_v2: Cypress firmware download module
Firmware handling routines for various Cypress chips. Cypress AN2135 Cypress AN2235 Cypress FX2 These were split out from general DVB USB module by Patrick Boettcher. I did only small changes. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb_usb_firmware.h')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb_firmware.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb_firmware.h b/drivers/media/dvb/dvb-usb/dvb_usb_firmware.h
new file mode 100644
index 000000000000..358d9d0b1899
--- /dev/null
+++ b/drivers/media/dvb/dvb-usb/dvb_usb_firmware.h
@@ -0,0 +1,31 @@
1/* dvb_usb_firmware.c is part of the DVB USB library.
2 *
3 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@desy.de)
4 * see dvb-usb-init.c for copyright information.
5 *
6 * This file contains functions for downloading the firmware to Cypress FX 1
7 * and 2 based devices.
8 *
9 */
10
11#ifndef DVB_USB_FIRMWARE_H
12#define DVB_USB_FIRMWARE_H
13
14#define CYPRESS_AN2135 0
15#define CYPRESS_AN2235 1
16#define CYPRESS_FX2 2
17
18/* commonly used firmware download types and function */
19struct hexline {
20 u8 len;
21 u32 addr;
22 u8 type;
23 u8 data[255];
24 u8 chk;
25};
26extern int usbv2_cypress_load_firmware(struct usb_device *,
27 const struct firmware *, int);
28extern int dvb_usbv2_get_hexline(const struct firmware *,
29 struct hexline *, int *);
30
31#endif