linux/drivers/media/pci/saa7164/saa7164-fw.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Driver for the NXP SAA7164 PCIe bridge
 *
 *  Copyright (c) 2010-2015 Steven Toth <[email protected]>
 */

#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)
{}

/* TODO: move dlflags into dev-> and change to write/readl/b */
/* TODO: Excessive levels of debug */
static int saa7164_downloadimage(struct saa7164_dev *dev, u8 *src, u32 srcsize,
				 u32 dlflags, u8 __iomem *dst, u32 dstsize)
{}

/* TODO: Excessive debug */
/* Load the firmware. Optionally it can be in ROM or newer versions
 * can be on disk, saving the expense of the ROM hardware. */
int saa7164_downloadfirmware(struct saa7164_dev *dev)
{}