linux/drivers/nvmem/u-boot-env.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2022 Rafał Miłecki <[email protected]>
 */

#include <linux/crc32.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/nvmem-consumer.h>
#include <linux/nvmem-provider.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

enum u_boot_env_format {};

struct u_boot_env {};

struct u_boot_env_image_single {} __packed;

struct u_boot_env_image_redundant {} __packed;

struct u_boot_env_image_broadcom {} __packed;

static int u_boot_env_read(void *context, unsigned int offset, void *val,
			   size_t bytes)
{}

static int u_boot_env_read_post_process_ethaddr(void *context, const char *id, int index,
						unsigned int offset, void *buf, size_t bytes)
{}

static int u_boot_env_add_cells(struct u_boot_env *priv, uint8_t *buf,
				size_t data_offset, size_t data_len)
{}

static int u_boot_env_parse(struct u_boot_env *priv)
{}

static int u_boot_env_probe(struct platform_device *pdev)
{}

static const struct of_device_id u_boot_env_of_match_table[] =;

static struct platform_driver u_boot_env_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_DEVICE_TABLE(of, u_boot_env_of_match_table);