#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/firmware.h>
#include <linux/pci_ids.h>
#include <linux/iopoll.h>
#include "falcon.h"
#include "drm.h"
enum falcon_memory { … };
static void falcon_writel(struct falcon *falcon, u32 value, u32 offset)
{ … }
int falcon_wait_idle(struct falcon *falcon)
{ … }
static int falcon_dma_wait_idle(struct falcon *falcon)
{ … }
static int falcon_copy_chunk(struct falcon *falcon,
phys_addr_t base,
unsigned long offset,
enum falcon_memory target)
{ … }
static void falcon_copy_firmware_image(struct falcon *falcon,
const struct firmware *firmware)
{ … }
static int falcon_parse_firmware_image(struct falcon *falcon)
{ … }
int falcon_read_firmware(struct falcon *falcon, const char *name)
{ … }
int falcon_load_firmware(struct falcon *falcon)
{ … }
int falcon_init(struct falcon *falcon)
{ … }
void falcon_exit(struct falcon *falcon)
{ … }
int falcon_boot(struct falcon *falcon)
{ … }
void falcon_execute_method(struct falcon *falcon, u32 method, u32 data)
{ … }