mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00

The hpsim platform supports the HP IA64 simulator which was useful as a bring up platform. But it is fairly non-standard vs real IA64 system in that it for example doesn't support ACPI. It also comes with a whole bunch of simulator specific drivers. Remove it to simplify the IA64 port. Note that through a weird twist only them hpsim boot loader built the vmlinux.gz file, so the makefile targets for that are moved to the main ia64 Makefile now. Acked-by: Tom Vaden <tom.vaden@hpe.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lkml.kernel.org/r/20190813072514.23299-18-hch@lst.de Signed-off-by: Tony Luck <tony.luck@intel.com>
95 lines
2.6 KiB
C
95 lines
2.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Machine vector for IA-64.
|
|
*
|
|
* Copyright (C) 1999 Silicon Graphics, Inc.
|
|
* Copyright (C) Srinivasa Thirumalachar <sprasad@engr.sgi.com>
|
|
* Copyright (C) Vijay Chander <vijay@engr.sgi.com>
|
|
* Copyright (C) 1999-2001, 2003-2004 Hewlett-Packard Co.
|
|
* David Mosberger-Tang <davidm@hpl.hp.com>
|
|
*/
|
|
#ifndef _ASM_IA64_MACHVEC_H
|
|
#define _ASM_IA64_MACHVEC_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
|
|
typedef void ia64_mv_setup_t (char **);
|
|
typedef void ia64_mv_dma_init (void);
|
|
typedef const struct dma_map_ops *ia64_mv_dma_get_ops(struct device *);
|
|
|
|
static inline void
|
|
machvec_noop (void)
|
|
{
|
|
}
|
|
|
|
extern void machvec_setup (char **);
|
|
|
|
# if defined (CONFIG_IA64_DIG)
|
|
# include <asm/machvec_dig.h>
|
|
# elif defined(CONFIG_IA64_DIG_VTD)
|
|
# include <asm/machvec_dig_vtd.h>
|
|
# elif defined (CONFIG_IA64_HP_ZX1)
|
|
# include <asm/machvec_hpzx1.h>
|
|
# elif defined (CONFIG_IA64_HP_ZX1_SWIOTLB)
|
|
# include <asm/machvec_hpzx1_swiotlb.h>
|
|
# elif defined (CONFIG_IA64_SGI_UV)
|
|
# include <asm/machvec_uv.h>
|
|
# elif defined (CONFIG_IA64_GENERIC)
|
|
|
|
# ifdef MACHVEC_PLATFORM_HEADER
|
|
# include MACHVEC_PLATFORM_HEADER
|
|
# else
|
|
# define ia64_platform_name ia64_mv.name
|
|
# define platform_setup ia64_mv.setup
|
|
# define platform_dma_init ia64_mv.dma_init
|
|
# define platform_dma_get_ops ia64_mv.dma_get_ops
|
|
# endif
|
|
|
|
/* __attribute__((__aligned__(16))) is required to make size of the
|
|
* structure multiple of 16 bytes.
|
|
* This will fillup the holes created because of section 3.3.1 in
|
|
* Software Conventions guide.
|
|
*/
|
|
struct ia64_machine_vector {
|
|
const char *name;
|
|
ia64_mv_setup_t *setup;
|
|
ia64_mv_dma_init *dma_init;
|
|
ia64_mv_dma_get_ops *dma_get_ops;
|
|
} __attribute__((__aligned__(16))); /* align attrib? see above comment */
|
|
|
|
#define MACHVEC_INIT(name) \
|
|
{ \
|
|
#name, \
|
|
platform_setup, \
|
|
platform_dma_init, \
|
|
platform_dma_get_ops, \
|
|
}
|
|
|
|
extern struct ia64_machine_vector ia64_mv;
|
|
extern void machvec_init (const char *name);
|
|
extern void machvec_init_from_cmdline(const char *cmdline);
|
|
|
|
# else
|
|
# error Unknown configuration. Update arch/ia64/include/asm/machvec.h.
|
|
# endif /* CONFIG_IA64_GENERIC */
|
|
|
|
extern void swiotlb_dma_init(void);
|
|
extern const struct dma_map_ops *dma_get_ops(struct device *);
|
|
|
|
/*
|
|
* Define default versions so we can extend machvec for new platforms without having
|
|
* to update the machvec files for all existing platforms.
|
|
*/
|
|
#ifndef platform_setup
|
|
# define platform_setup machvec_setup
|
|
#endif
|
|
#ifndef platform_dma_init
|
|
# define platform_dma_init swiotlb_dma_init
|
|
#endif
|
|
#ifndef platform_dma_get_ops
|
|
# define platform_dma_get_ops dma_get_ops
|
|
#endif
|
|
|
|
#endif /* _ASM_IA64_MACHVEC_H */
|