#include <linux/devcoredump.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/utsname.h>
#include "coredump.h"
static bool coredump_memdump;
module_param(coredump_memdump, bool, 0644);
MODULE_PARM_DESC(…) …;
static const struct mt7996_mem_region mt7996_mem_regions[] = …;
const struct mt7996_mem_region*
mt7996_coredump_get_mem_layout(struct mt7996_dev *dev, u32 *num)
{ … }
static int mt7996_coredump_get_mem_size(struct mt7996_dev *dev)
{ … }
struct mt7996_crash_data *mt7996_coredump_new(struct mt7996_dev *dev)
{ … }
static void
mt7996_coredump_fw_state(struct mt7996_dev *dev, struct mt7996_coredump *dump,
bool *exception)
{ … }
static void
mt7996_coredump_fw_stack(struct mt7996_dev *dev, struct mt7996_coredump *dump,
bool exception)
{ … }
static struct mt7996_coredump *mt7996_coredump_build(struct mt7996_dev *dev)
{ … }
int mt7996_coredump_submit(struct mt7996_dev *dev)
{ … }
int mt7996_coredump_register(struct mt7996_dev *dev)
{ … }
void mt7996_coredump_unregister(struct mt7996_dev *dev)
{ … }