#include <linux/vmalloc.h>
#include "iosm_ipc_chnl_cfg.h"
#include "iosm_ipc_coredump.h"
#include "iosm_ipc_devlink.h"
#include "iosm_ipc_flash.h"
static struct iosm_coredump_file_info list[IOSM_NOF_CD_REGION] = …;
static int ipc_devlink_get_param(struct devlink *dl, u32 id,
struct devlink_param_gset_ctx *ctx)
{ … }
static int ipc_devlink_set_param(struct devlink *dl, u32 id,
struct devlink_param_gset_ctx *ctx,
struct netlink_ext_ack *extack)
{ … }
static const struct devlink_param iosm_devlink_params[] = …;
static enum iosm_flash_comp_type
ipc_devlink_get_flash_comp_type(const char comp_str[], u32 len)
{ … }
static int ipc_devlink_flash_update(struct devlink *devlink,
struct devlink_flash_update_params *params,
struct netlink_ext_ack *extack)
{ … }
static const struct devlink_ops devlink_flash_ops = …;
int ipc_devlink_send_cmd(struct iosm_devlink *ipc_devlink, u16 cmd, u32 entry)
{ … }
static int ipc_devlink_coredump_snapshot(struct devlink *dl,
const struct devlink_region_ops *ops,
struct netlink_ext_ack *extack,
u8 **data)
{ … }
static int ipc_devlink_create_region(struct iosm_devlink *devlink)
{ … }
static void ipc_devlink_destroy_region(struct iosm_devlink *ipc_devlink)
{ … }
struct iosm_devlink *ipc_devlink_init(struct iosm_imem *ipc_imem)
{ … }
void ipc_devlink_deinit(struct iosm_devlink *ipc_devlink)
{ … }