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

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

#include <linux/crc32.h>
#include <linux/etherdevice.h>
#include <linux/export.h>
#include <linux/if_ether.h>
#include <linux/nvmem-consumer.h>
#include <linux/nvmem-provider.h>
#include <linux/of.h>
#include <linux/slab.h>

#include "u-boot-env.h"

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_post_process_ethaddr(void *context, const char *id, int index,
						unsigned int offset, void *buf, size_t bytes)
{}

static int u_boot_env_parse_cells(struct device *dev, struct nvmem_device *nvmem, uint8_t *buf,
				  size_t data_offset, size_t data_len)
{}

int u_boot_env_parse(struct device *dev, struct nvmem_device *nvmem,
		     enum u_boot_env_format format)
{}
EXPORT_SYMBOL_GPL();

static int u_boot_env_add_cells(struct nvmem_layout *layout)
{}

static int u_boot_env_probe(struct nvmem_layout *layout)
{}

static void u_boot_env_remove(struct nvmem_layout *layout)
{}

static const struct of_device_id u_boot_env_of_match_table[] =;

static struct nvmem_layout_driver u_boot_env_layout =;
module_nvmem_layout_driver();

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