linux/drivers/mtd/parsers/redboot.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Parse RedBoot-style Flash Image System (FIS) tables and
 * produce a Linux partition array to match.
 *
 * Copyright © 2001      Red Hat UK Limited
 * Copyright © 2001-2010 David Woodhouse <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <linux/of.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/module.h>

struct fis_image_desc {};

struct fis_list {};

static int directory =;
module_param(directory, int, 0);

static inline int redboot_checksum(struct fis_image_desc *img)
{}

static void parse_redboot_of(struct mtd_info *master)
{}

static int parse_redboot_partitions(struct mtd_info *master,
				    const struct mtd_partition **pparts,
				    struct mtd_part_parser_data *data)
{}

static const struct of_device_id mtd_parser_redboot_of_match_table[] =;
MODULE_DEVICE_TABLE(of, mtd_parser_redboot_of_match_table);

static struct mtd_part_parser redboot_parser =;
module_mtd_part_parser();

/* mtd parsers will request the module by parser name */
MODULE_ALIAS();
MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();