#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/slab.h>
#include <linux/rtnetlink.h>
#include "net_driver.h"
#include "efx.h"
#define to_efx_mtd_partition(mtd) …
static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase)
{ … }
static void efx_mtd_sync(struct mtd_info *mtd)
{ … }
static void efx_siena_mtd_remove_partition(struct efx_mtd_partition *part)
{ … }
int efx_siena_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
size_t n_parts, size_t sizeof_part)
{ … }
void efx_siena_mtd_remove(struct efx_nic *efx)
{ … }
void efx_siena_mtd_rename(struct efx_nic *efx)
{ … }