linux/drivers/mtd/parsers/parser_imagetag.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * BCM63XX CFE image tag parser
 *
 * Copyright © 2006-2008  Florian Fainelli <[email protected]>
 *			  Mike Albon <[email protected]>
 * Copyright © 2009-2010  Daniel Dickinson <[email protected]>
 * Copyright © 2011-2013  Jonas Gorski <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/bcm963xx_tag.h>
#include <linux/crc32.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/of.h>

/* Ensure strings read from flash structs are null terminated */
#define STR_NULL_TERMINATE(x)

static int bcm963xx_read_imagetag(struct mtd_info *master, const char *name,
	loff_t tag_offset, struct bcm_tag *buf)
{}

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

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

static struct mtd_part_parser bcm963xx_imagetag_parser =;
module_mtd_part_parser();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();