aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/mm/ioremap.c
AgeCommit message (Expand)Author
2019-11-11parisc: remove __ioremapChristoph Hellwig
2019-10-14parisc: Fix vmap memory leak in ioremap()/iounmap()Helge Deller
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman
2010-08-12parisc: fix wrong page aligned size calculation in ioremapping codeFlorian Zumbiehl
2007-02-17Merge branch 'parisc' from /home/kyle/repos/parisc-2.6.gitKyle McMartin
2006-12-08[PATCH] Generic ioremap_page_range: parisc conversionHaavard Skinnemoen
2006-12-08[PARISC] more sparse fixesMatthew Wilcox
2006-10-04[PARISC] Fix iounmap compile warningMatthew Wilcox
2006-04-21[PARISC] EISA regions must be mapped NO_CACHEHelge Deller
2006-03-30[PARISC] Move ioremap EXPORT_SYMBOL from parisc_ksyms.cKyle McMartin
2006-03-30[PARISC] Fixup CONFIG_EISA a bitHelge Deller
2006-03-30[PARISC] Remove obsolete CONFIG_DEBUG_IOREMAPHelge Deller
2006-03-30[PARISC] Temporary FIXME for ioremapping EISA regionsHelge Deller
2006-03-30[PARISC] Enable ioremap functionality unconditionallyHelge Deller
2006-03-30[PARISC] Add CONFIG_HPPA_IOREMAP to conditionally enable ioremapHelge Deller
2006-01-10[PARISC] Fix and cleanup ioremap.c to work with 4level-fixup.hKyle McMartin
2005-10-29[PATCH] mm: init_mm without ptlockHugh Dickins
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds
t: bold } /* Literal.Number.Integer.Long */ }
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Defines for the SRAM driver
 */
#ifndef __SRAM_H
#define __SRAM_H

struct sram_partition {
	void __iomem *base;

	struct gen_pool *pool;
	struct bin_attribute battr;
	struct mutex lock;
	struct list_head list;
};

struct sram_dev {
	struct device *dev;
	void __iomem *virt_base;

	struct gen_pool *pool;
	struct clk *clk;

	struct sram_partition *partition;
	u32 partitions;
};

struct sram_reserve {
	struct list_head list;
	u32 start;
	u32 size;
	bool export;
	bool pool;
	bool protect_exec;
	const char *label;
};

#ifdef CONFIG_SRAM_EXEC
int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block,
			    struct sram_partition *part);
int sram_add_protect_exec(struct sram_partition *part);
#else
static inline int sram_check_protect_exec(struct sram_dev *sram,
					  struct sram_reserve *block,
					  struct sram_partition *part)
{
	return -ENODEV;
}

static inline int sram_add_protect_exec(struct sram_partition *part)
{
	return -ENODEV;
}
#endif /* CONFIG_SRAM_EXEC */
#endif /* __SRAM_H */