#include <linux/devcoredump.h>
#include <linux/dma-mapping.h>
#include <linux/firmware.h>
#include <linux/pci.h>
#include <linux/pxa2xx_ssp.h>
#include "core.h"
#include "messages.h"
#include "registers.h"
static bool catpt_dma_filter(struct dma_chan *chan, void *param)
{ … }
#define CATPT_DMA_DEVID …
#define CATPT_DMA_DSP_ADDR_MASK …
struct dma_chan *catpt_dma_request_config_chan(struct catpt_dev *cdev)
{ … }
static int catpt_dma_memcpy(struct catpt_dev *cdev, struct dma_chan *chan,
dma_addr_t dst_addr, dma_addr_t src_addr,
size_t size)
{ … }
int catpt_dma_memcpy_todsp(struct catpt_dev *cdev, struct dma_chan *chan,
dma_addr_t dst_addr, dma_addr_t src_addr,
size_t size)
{ … }
int catpt_dma_memcpy_fromdsp(struct catpt_dev *cdev, struct dma_chan *chan,
dma_addr_t dst_addr, dma_addr_t src_addr,
size_t size)
{ … }
int catpt_dmac_probe(struct catpt_dev *cdev)
{ … }
void catpt_dmac_remove(struct catpt_dev *cdev)
{ … }
static void catpt_dsp_set_srampge(struct catpt_dev *cdev, struct resource *sram,
unsigned long mask, unsigned long new)
{ … }
void catpt_dsp_update_srampge(struct catpt_dev *cdev, struct resource *sram,
unsigned long mask)
{ … }
int catpt_dsp_stall(struct catpt_dev *cdev, bool stall)
{ … }
static int catpt_dsp_reset(struct catpt_dev *cdev, bool reset)
{ … }
void lpt_dsp_pll_shutdown(struct catpt_dev *cdev, bool enable)
{ … }
void wpt_dsp_pll_shutdown(struct catpt_dev *cdev, bool enable)
{ … }
static int catpt_dsp_select_lpclock(struct catpt_dev *cdev, bool lp, bool waiti)
{ … }
int catpt_dsp_update_lpclock(struct catpt_dev *cdev)
{ … }
static void catpt_dsp_set_regs_defaults(struct catpt_dev *cdev)
{ … }
int catpt_dsp_power_down(struct catpt_dev *cdev)
{ … }
int catpt_dsp_power_up(struct catpt_dev *cdev)
{ … }
#define CATPT_DUMP_MAGIC …
#define CATPT_DUMP_SECTION_ID_FILE …
#define CATPT_DUMP_SECTION_ID_IRAM …
#define CATPT_DUMP_SECTION_ID_DRAM …
#define CATPT_DUMP_SECTION_ID_REGS …
#define CATPT_DUMP_HASH_SIZE …
struct catpt_dump_section_hdr { … };
int catpt_coredump(struct catpt_dev *cdev)
{ … }