Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24 lines
535 B
C
24 lines
535 B
C
#ifndef _SH_MM_IORMEMAP_H
|
|
#define _SH_MM_IORMEMAP_H 1
|
|
|
|
#ifdef CONFIG_IOREMAP_FIXED
|
|
void __iomem *ioremap_fixed(phys_addr_t, unsigned long, pgprot_t);
|
|
int iounmap_fixed(void __iomem *);
|
|
void ioremap_fixed_init(void);
|
|
#else
|
|
static inline void __iomem *
|
|
ioremap_fixed(phys_addr_t phys_addr, unsigned long size, pgprot_t prot)
|
|
{
|
|
BUG();
|
|
return NULL;
|
|
}
|
|
static inline void ioremap_fixed_init(void)
|
|
{
|
|
}
|
|
static inline int iounmap_fixed(void __iomem *addr)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif /* CONFIG_IOREMAP_FIXED */
|
|
#endif /* _SH_MM_IORMEMAP_H */
|