2012-08-01 18:38:46 -06:00
|
|
|
/* cypress_firmware.h is part of the DVB USB library.
|
2012-06-11 20:35:09 -06:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2012-08-01 18:38:46 -06:00
|
|
|
#ifndef CYPRESS_FIRMWARE_H
|
|
|
|
#define CYPRESS_FIRMWARE_H
|
2012-06-11 20:35:09 -06:00
|
|
|
|
|
|
|
#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
|