]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
x86-32: Move XQUAD definitions to numaq.h
authorBrian Gerst <brgerst@gmail.com>
Fri, 5 Feb 2010 14:37:03 +0000 (09:37 -0500)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 5 Feb 2010 21:57:12 +0000 (13:57 -0800)
The XQUAD stuff is part of the NUMAQ architecture, so move it there.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
LKML-Reference: <1265380629-3212-2-git-send-email-brgerst@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/io_32.h
arch/x86/include/asm/numaq.h
arch/x86/pci/numaq_32.c

index a299900f5920898977a4b0935382a898f673082e..e16b9dbef81ab68b0f312545b0d8a9f8c33ab26d 100644 (file)
@@ -37,9 +37,6 @@
   *  - Arnaldo Carvalho de Melo <acme@conectiva.com.br>
   */
 
-#define XQUAD_PORTIO_BASE 0xfe400000
-#define XQUAD_PORTIO_QUAD 0x40000  /* 256k per quad. */
-
 #ifdef __KERNEL__
 
 #include <asm-generic/iomap.h>
index 9f0a5f5d29ec6ff29aae7d427484ad9c2416822f..13370b95ea9481c32132961d2b804fd3d7ebea6b 100644 (file)
@@ -33,6 +33,10 @@ extern int get_memcfg_numaq(void);
 
 extern void *xquad_portio;
 
+#define XQUAD_PORTIO_BASE 0xfe400000
+#define XQUAD_PORTIO_QUAD 0x40000  /* 256k per quad. */
+#define XQUAD_PORT_ADDR(port, quad) (xquad_portio + (XQUAD_PORTIO_QUAD*quad) + port)
+
 /*
  * SYS_CFG_DATA_PRIV_ADDR, struct eachquadmem, and struct sys_cfg_data are the
  */
index 8eb295e116f626293e7219477f280b52b6aa765e..8884a1c1ada63c2150585a681334383d7ee4f0d5 100644 (file)
@@ -8,9 +8,7 @@
 #include <asm/apic.h>
 #include <asm/mpspec.h>
 #include <asm/pci_x86.h>
-
-#define XQUAD_PORTIO_BASE 0xfe400000
-#define XQUAD_PORTIO_QUAD 0x40000  /* 256k per quad. */
+#include <asm/numaq.h>
 
 #define BUS2QUAD(global) (mp_bus_id_to_node[global])
 
@@ -18,8 +16,6 @@
 
 #define QUADLOCAL2BUS(quad,local) (quad_local_to_mp_bus_id[quad][local])
 
-#define XQUAD_PORT_ADDR(port, quad) (xquad_portio + (XQUAD_PORTIO_QUAD*quad) + port)
-
 #define PCI_CONF1_MQ_ADDRESS(bus, devfn, reg) \
        (0x80000000 | (BUS2LOCAL(bus) << 16) | (devfn << 8) | (reg & ~3))