#include <linux/firmware.h>
#include <linux/slab.h>
#include "saa7164.h"
#define SAA7164_REV2_FIRMWARE …
#define SAA7164_REV2_FIRMWARE_SIZE …
#define SAA7164_REV3_FIRMWARE …
#define SAA7164_REV3_FIRMWARE_SIZE …
struct fw_header { … };
static int saa7164_dl_wait_ack(struct saa7164_dev *dev, u32 reg)
{ … }
static int saa7164_dl_wait_clr(struct saa7164_dev *dev, u32 reg)
{ … }
static int saa7164_downloadimage(struct saa7164_dev *dev, u8 *src, u32 srcsize,
u32 dlflags, u8 __iomem *dst, u32 dstsize)
{ … }
int saa7164_downloadfirmware(struct saa7164_dev *dev)
{ … }