mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Loading the cypress firmware is not dvb specific and should be common functionality. Move the source to media/common and make it a standalone module. As a result we can remove the dependency on dvb-usb in go7007, which has nothing to do with dvb. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
29 lines
586 B
C
29 lines
586 B
C
/*
|
|
* Copyright (C) 2004-6 Patrick Boettcher ([email protected])
|
|
* 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 CYPRESS_FIRMWARE_H
|
|
#define CYPRESS_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;
|
|
};
|
|
|
|
int cypress_load_firmware(struct usb_device *, const struct firmware *, int);
|
|
|
|
#endif
|