Commit b78e9d63 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by Paul Burton

MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff

By including agent.h where hub related defines/structs are needed, we
have only one place to select, which agent chip (HUB or BEDROCK) is used.
Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
parent d6972bb4
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define __ASM_MACH_IP27_KERNEL_ENTRY_H #define __ASM_MACH_IP27_KERNEL_ENTRY_H
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/sn0/hubni.h> #include <asm/sn/agent.h>
#include <asm/sn/klkernvars.h> #include <asm/sn/klkernvars.h>
/* /*
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/hub.h> #include <asm/sn/agent.h>
#include <asm/sn/klkernvars.h>
#define pa_to_nid(addr) NASID_GET(addr) #define pa_to_nid(addr) NASID_GET(addr)
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#ifndef _ASM_MACH_TOPOLOGY_H #ifndef _ASM_MACH_TOPOLOGY_H
#define _ASM_MACH_TOPOLOGY_H 1 #define _ASM_MACH_TOPOLOGY_H 1
#include <asm/sn/hub.h>
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/mmzone.h> #include <asm/mmzone.h>
......
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
#define INVALID_MODULE (moduleid_t)-1 #define INVALID_MODULE (moduleid_t)-1
#define INVALID_PARTID (partid_t)-1 #define INVALID_PARTID (partid_t)-1
#ifndef __ASSEMBLY__
extern nasid_t get_nasid(void); extern nasid_t get_nasid(void);
#endif
#endif /* _ASM_SN_ARCH_H */ #endif /* _ASM_SN_ARCH_H */
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SN_HUB_H
#define __ASM_SN_HUB_H
#include <linux/types.h>
#include <linux/cpumask.h>
#include <asm/sn/types.h>
#include <asm/sn/io.h>
#include <asm/sn/klkernvars.h>
#include <asm/xtalk/xtalk.h>
/* ip27-hubio.c */
extern unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget,
unsigned long xtalk_addr, size_t size);
extern void hub_pio_init(nasid_t nasid);
#endif /* __ASM_SN_HUB_H */
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#include <linux/types.h> #include <linux/types.h>
#ifndef __ASSEMBLY__
typedef unsigned long cpuid_t; typedef unsigned long cpuid_t;
typedef signed short nasid_t; /* node id in numa-as-id space */ typedef signed short nasid_t; /* node id in numa-as-id space */
typedef signed char partid_t; /* partition ID type */ typedef signed char partid_t; /* partition ID type */
...@@ -18,4 +20,6 @@ typedef signed short moduleid_t; /* user-visible module number type */ ...@@ -18,4 +20,6 @@ typedef signed short moduleid_t; /* user-visible module number type */
typedef dev_t vertex_hdl_t; /* hardware graph vertex handle */ typedef dev_t vertex_hdl_t; /* hardware graph vertex handle */
#endif
#endif /* _ASM_SN_TYPES_H */ #endif /* _ASM_SN_TYPES_H */
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/sn/klconfig.h> #include <asm/sn/klconfig.h>
#include <asm/sn/hub.h> #include <asm/sn/agent.h>
#include <asm/sn/ioc3.h> #include <asm/sn/ioc3.h>
#include <asm/pci/bridge.h> #include <asm/pci/bridge.h>
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/agent.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/sn0/hub.h>
#include <asm/tlbdebug.h> #include <asm/tlbdebug.h>
#include <asm/traps.h> #include <asm/traps.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <asm/page.h> #include <asm/page.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/sn0/hub.h> #include <asm/sn/agent.h>
#include <asm/sn/klconfig.h> #include <asm/sn/klconfig.h>
#include <asm/sn/ioc3.h> #include <asm/sn/ioc3.h>
#include <asm/sn/sn_private.h> #include <asm/sn/sn_private.h>
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
#include <linux/mmzone.h> #include <linux/mmzone.h>
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/hub.h> #include <asm/sn/agent.h>
#include <asm/sn/io.h>
#include <asm/xtalk/xtalk.h>
static int force_fire_and_forget = 1; static int force_fire_and_forget = 1;
......
...@@ -19,15 +19,12 @@ ...@@ -19,15 +19,12 @@
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/sgialib.h> #include <asm/sgialib.h>
#include <asm/time.h> #include <asm/time.h>
#include <asm/sn/agent.h>
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/sn/sn0/addrs.h>
#include <asm/sn/sn0/hubni.h>
#include <asm/sn/sn0/hubio.h>
#include <asm/sn/klconfig.h> #include <asm/sn/klconfig.h>
#include <asm/sn/ioc3.h> #include <asm/sn/ioc3.h>
#include <asm/mipsregs.h> #include <asm/mipsregs.h>
#include <asm/sn/gda.h> #include <asm/sn/gda.h>
#include <asm/sn/hub.h>
#include <asm/sn/intr.h> #include <asm/sn/intr.h>
#include <asm/current.h> #include <asm/current.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/agent.h> #include <asm/sn/agent.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/hub.h>
#include <asm/sn/intr.h> #include <asm/sn/intr.h>
#include <asm/sn/irq_alloc.h> #include <asm/sn/irq_alloc.h>
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/gda.h> #include <asm/sn/gda.h>
#include <asm/sn/hub.h>
#include <asm/sn/mapped_kernel.h> #include <asm/sn/mapped_kernel.h>
#include <asm/sn/sn_private.h> #include <asm/sn/sn_private.h>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/hub.h>
#include <asm/sn/klconfig.h> #include <asm/sn/klconfig.h>
#include <asm/sn/sn_private.h> #include <asm/sn/sn_private.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/nmi.h> #include <asm/sn/nmi.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/sn0/hub.h> #include <asm/sn/agent.h>
#if 0 #if 0
#define NODE_NUM_CPUS(n) CNODE_NUM_CPUS(n) #define NODE_NUM_CPUS(n) CNODE_NUM_CPUS(n)
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include <asm/reboot.h> #include <asm/reboot.h>
#include <asm/sgialib.h> #include <asm/sgialib.h>
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/agent.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/gda.h> #include <asm/sn/gda.h>
#include <asm/sn/sn0/hub.h>
#include "ip27-common.h" #include "ip27-common.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <asm/page.h> #include <asm/page.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/sn/agent.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/gda.h> #include <asm/sn/gda.h>
#include <asm/sn/intr.h> #include <asm/sn/intr.h>
...@@ -23,8 +24,6 @@ ...@@ -23,8 +24,6 @@
#include <asm/sn/mapped_kernel.h> #include <asm/sn/mapped_kernel.h>
#include <asm/sn/sn_private.h> #include <asm/sn/sn_private.h>
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/sn/sn0/hubpi.h>
#include <asm/sn/sn0/hubio.h>
#include <asm/sn/sn0/ip27.h> #include <asm/sn/sn0/ip27.h>
#include "ip27-common.h" #include "ip27-common.h"
......
...@@ -25,17 +25,14 @@ ...@@ -25,17 +25,14 @@
#include <asm/sn/klconfig.h> #include <asm/sn/klconfig.h>
#include <asm/sn/arch.h> #include <asm/sn/arch.h>
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/agent.h>
#include <asm/sn/sn_private.h> #include <asm/sn/sn_private.h>
#include <asm/sn/sn0/ip27.h> #include <asm/sn/sn0/ip27.h>
#include <asm/sn/sn0/hub.h>
#define TICK_SIZE (tick_nsec / 1000) #define TICK_SIZE (tick_nsec / 1000)
/* Includes for ioc3_init(). */ /* Includes for ioc3_init(). */
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/sn/sn0/addrs.h>
#include <asm/sn/sn0/hubni.h>
#include <asm/sn/sn0/hubio.h>
#include <asm/pci/bridge.h> #include <asm/pci/bridge.h>
#include "ip27-common.h" #include "ip27-common.h"
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/types.h> #include <asm/sn/types.h>
#include <asm/sn/klconfig.h> #include <asm/sn/klconfig.h>
#include <asm/sn/hub.h>
#include <asm/pci/bridge.h> #include <asm/pci/bridge.h>
#include <asm/xtalk/xtalk.h> #include <asm/xtalk/xtalk.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment