mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 11:46:46 +07:00
ce816fa88c
If the renamed symbol is defined lib/iomap.c implements ioport_map and ioport_unmap and currently (nearly) all platforms define the port accessor functions outb/inb and friend unconditionally. So HAS_IOPORT_MAP is the better name for this. Consequently NO_IOPORT is renamed to NO_IOPORT_MAP. The motivation for this change is to reintroduce a symbol HAS_IOPORT that signals if outb/int et al are available. I will address that at least one merge window later though to keep surprises to a minimum and catch new introductions of (HAS|NO)_IOPORT. The changes in this commit were done using: $ git grep -l -E '(NO|HAS)_IOPORT' | xargs perl -p -i -e 's/\b((?:CONFIG_)?(?:NO|HAS)_IOPORT)\b/$1_MAP/' Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
44 lines
939 B
C
44 lines
939 B
C
/*
|
|
* include/asm-sh/machvec.h
|
|
*
|
|
* Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
|
|
*
|
|
* May be copied or modified under the terms of the GNU General Public
|
|
* License. See linux/COPYING for more information.
|
|
*/
|
|
|
|
#ifndef _ASM_SH_MACHVEC_H
|
|
#define _ASM_SH_MACHVEC_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/time.h>
|
|
#include <generated/machtypes.h>
|
|
|
|
struct sh_machine_vector {
|
|
void (*mv_setup)(char **cmdline_p);
|
|
const char *mv_name;
|
|
|
|
int (*mv_irq_demux)(int irq);
|
|
void (*mv_init_irq)(void);
|
|
|
|
#ifdef CONFIG_HAS_IOPORT_MAP
|
|
void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
|
|
void (*mv_ioport_unmap)(void __iomem *);
|
|
#endif
|
|
|
|
int (*mv_clk_init)(void);
|
|
int (*mv_mode_pins)(void);
|
|
|
|
void (*mv_mem_init)(void);
|
|
void (*mv_mem_reserve)(void);
|
|
};
|
|
|
|
extern struct sh_machine_vector sh_mv;
|
|
|
|
#define get_system_type() sh_mv.mv_name
|
|
|
|
#define __initmv \
|
|
__used __section(.machvec.init)
|
|
|
|
#endif /* _ASM_SH_MACHVEC_H */
|