#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/genalloc.h>
#include <linux/io.h>
#include <linux/list_sort.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/mfd/syscon.h>
#include <soc/at91/atmel-secumod.h>
#include "sram.h"
#define SRAM_GRANULARITY …
static ssize_t sram_read(struct file *filp, struct kobject *kobj,
struct bin_attribute *attr,
char *buf, loff_t pos, size_t count)
{ … }
static ssize_t sram_write(struct file *filp, struct kobject *kobj,
struct bin_attribute *attr,
char *buf, loff_t pos, size_t count)
{ … }
static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block,
phys_addr_t start, struct sram_partition *part)
{ … }
static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block,
phys_addr_t start, struct sram_partition *part)
{ … }
static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block,
phys_addr_t start)
{ … }
static void sram_free_partitions(struct sram_dev *sram)
{ … }
static int sram_reserve_cmp(void *priv, const struct list_head *a,
const struct list_head *b)
{ … }
static int sram_reserve_regions(struct sram_dev *sram, struct resource *res)
{ … }
static int atmel_securam_wait(void)
{ … }
static const struct sram_config atmel_securam_config = …;
static const struct sram_config tegra_sysram_config = …;
static const struct of_device_id sram_dt_ids[] = …;
static int sram_probe(struct platform_device *pdev)
{ … }
static void sram_remove(struct platform_device *pdev)
{ … }
static struct platform_driver sram_driver = …;
static int __init sram_init(void)
{ … }
postcore_initcall(sram_init);