]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ppc64 iSeries: remove LparData.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 22 Jun 2005 00:15:36 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:27 +0000 (18:46 -0700)
include/asm-ppc64/iSeries/LparData.h just included a whole lot of other files
to declare variables that would be better declared in those other files.  So,
remove it.  This will reduce that number of things needed to be included in
most cases to access the relevant variables.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
23 files changed:
arch/ppc64/kernel/HvLpEvent.c
arch/ppc64/kernel/ItLpQueue.c
arch/ppc64/kernel/iSeries_VpdInfo.c
arch/ppc64/kernel/iSeries_pci.c
arch/ppc64/kernel/iSeries_proc.c
arch/ppc64/kernel/iSeries_setup.c
arch/ppc64/kernel/iSeries_smp.c
arch/ppc64/kernel/irq.c
arch/ppc64/kernel/lparcfg.c
arch/ppc64/kernel/ras.c
arch/ppc64/kernel/rtc.c
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/viopath.c
include/asm-ppc64/iSeries/HvLpConfig.h
include/asm-ppc64/iSeries/HvReleaseData.h
include/asm-ppc64/iSeries/IoHriMainStore.h
include/asm-ppc64/iSeries/IoHriProcessorVpd.h
include/asm-ppc64/iSeries/ItExtVpdPanel.h
include/asm-ppc64/iSeries/ItIplParmsReal.h
include/asm-ppc64/iSeries/ItLpNaca.h
include/asm-ppc64/iSeries/ItVpdAreas.h
include/asm-ppc64/iSeries/LparData.h [deleted file]
include/asm-ppc64/iSeries/LparMap.h

index f8f19637f73f1fa9e0ecc514989c4e005c2c9b77..90032b138902e560a7e28c6df668dbae4f681bd7 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/system.h>
 #include <asm/iSeries/HvLpEvent.h>
 #include <asm/iSeries/HvCallEvent.h>
-#include <asm/iSeries/LparData.h>
+#include <asm/iSeries/ItLpNaca.h>
 
 /* Array of LpEvent handler functions */
 LpEventHandler lpEventHandler[HvLpEvent_Type_NumTypes];
index c923a815760ec50f2b478f7f2857e175a0b0575a..cdea00d7707f641e0dcabc4559ce90de101052ba 100644 (file)
@@ -16,7 +16,6 @@
 #include <asm/iSeries/ItLpQueue.h>
 #include <asm/iSeries/HvLpEvent.h>
 #include <asm/iSeries/HvCallEvent.h>
-#include <asm/iSeries/LparData.h>
 
 static __inline__ int set_inUse( struct ItLpQueue * lpQueue )
 {
index a6f0ff2d023927f58b7282f7506168bc06d39bd0..a82caf98d2e37135dffc875a264a2ad22b15893e 100644 (file)
@@ -35,7 +35,6 @@
 #include <asm/iSeries/HvCallPci.h>
 #include <asm/iSeries/HvTypes.h>
 #include <asm/iSeries/mf.h>
-#include <asm/iSeries/LparData.h>
 #include <asm/iSeries/iSeries_pci.h>
 #include "pci.h"
 
index bd4c2554f1a048272ecf4703172e6a02ebaf00a0..9829cd4666d82d1fa42b5d8b093ba792e2477ec2 100644 (file)
@@ -40,7 +40,6 @@
 #include <asm/iSeries/HvCallPci.h>
 #include <asm/iSeries/HvCallSm.h>
 #include <asm/iSeries/HvCallXm.h>
-#include <asm/iSeries/LparData.h>
 #include <asm/iSeries/iSeries_irq.h>
 #include <asm/iSeries/iSeries_pci.h>
 #include <asm/iSeries/mf.h>
index bf85a1f7e870cfbc34d46ba8c2cc979df05b346d..356bd9931fcc923e7e3645557bc3392331f855b4 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/iSeries/ItLpQueue.h>
 #include <asm/iSeries/HvCallXm.h>
 #include <asm/iSeries/IoHriMainStore.h>
-#include <asm/iSeries/LparData.h>
+#include <asm/iSeries/IoHriProcessorVpd.h>
 
 static int __init iseries_proc_create(void)
 {
index e80cfc5709295b2c2f1458af48375519ffbe1434..3d3ed631499a985b629fa9cdf5dfc5ace701e584 100644 (file)
@@ -47,7 +47,7 @@
 #include <asm/paca.h>
 #include <asm/cache.h>
 #include <asm/sections.h>
-#include <asm/iSeries/LparData.h>
+#include <asm/abs_addr.h>
 #include <asm/iSeries/HvCallHpt.h>
 #include <asm/iSeries/HvLpConfig.h>
 #include <asm/iSeries/HvCallEvent.h>
@@ -58,6 +58,9 @@
 #include <asm/iSeries/mf.h>
 #include <asm/iSeries/HvLpEvent.h>
 #include <asm/iSeries/iSeries_irq.h>
+#include <asm/iSeries/IoHriProcessorVpd.h>
+#include <asm/iSeries/ItVpdAreas.h>
+#include <asm/iSeries/LparMap.h>
 
 extern void hvlog(char *fmt, ...);
 
index ba1f084d5462419d842df6ab2a56b46d3ae7e220..ff2281b457ed1bf85510dcbcca592124d303996e 100644 (file)
@@ -38,7 +38,6 @@
 #include <asm/io.h>
 #include <asm/smp.h>
 #include <asm/paca.h>
-#include <asm/iSeries/LparData.h>
 #include <asm/iSeries/HvCall.h>
 #include <asm/iSeries/HvCallCfg.h>
 #include <asm/time.h>
index 4fd7f203c1e3e89bc122fe9c090cf675cfd6cb7c..d860467b8f096430456bb9842033e3d53c020e05 100644 (file)
@@ -52,7 +52,7 @@
 #include <asm/cache.h>
 #include <asm/prom.h>
 #include <asm/ptrace.h>
-#include <asm/iSeries/LparData.h>
+#include <asm/iSeries/ItLpQueue.h>
 #include <asm/machdep.h>
 #include <asm/paca.h>
 
index a8fd32df848b71ade564d51316ab93f35a4348c6..387923fcf9b06492a07b0b9e63c8748197de0e7b 100644 (file)
 #include <asm/uaccess.h>
 #include <asm/iSeries/HvLpConfig.h>
 #include <asm/lppaca.h>
-#include <asm/iSeries/LparData.h>
 #include <asm/hvcall.h>
 #include <asm/cputable.h>
 #include <asm/rtas.h>
 #include <asm/system.h>
 #include <asm/time.h>
+#include <asm/iSeries/ItExtVpdPanel.h>
 
 #define MODULE_VERS "1.6"
 #define MODULE_NAME "lparcfg"
index 1c4c796b212b03ada36dae8130913bc95d1671ff..3c00f7bfc1b5736d43ab2011e3ac37aafe6da9cf 100644 (file)
@@ -47,7 +47,6 @@
 #include <asm/cache.h>
 #include <asm/prom.h>
 #include <asm/ptrace.h>
-#include <asm/iSeries/LparData.h>
 #include <asm/machdep.h>
 #include <asm/rtas.h>
 #include <asm/ppcdebug.h>
index 67989055a9fee0b50d9f1b1928183bb66a02be4e..4cdafb4007b173cb5182810f93b707db0edacfe6 100644 (file)
@@ -42,7 +42,6 @@
 #include <asm/time.h>
 #include <asm/rtas.h>
 
-#include <asm/iSeries/LparData.h>
 #include <asm/iSeries/mf.h>
 #include <asm/machdep.h>
 #include <asm/iSeries/ItSpCommArea.h>
index dce198d39328aefd6541efef430f6a6e71d9ca4f..8e439a8176421ac6009f7b569207afe07b9ae730 100644 (file)
@@ -41,7 +41,6 @@
 #include <asm/smp.h>
 #include <asm/elf.h>
 #include <asm/machdep.h>
-#include <asm/iSeries/LparData.h>
 #include <asm/paca.h>
 #include <asm/ppcdebug.h>
 #include <asm/time.h>
@@ -57,6 +56,8 @@
 #include <asm/cache.h>
 #include <asm/page.h>
 #include <asm/mmu.h>
+#include <asm/lmb.h>
+#include <asm/iSeries/ItLpNaca.h>
 
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
index 8caa078a658a2ec7ca1ec82532170c4df42774a7..4e5c36e81f4846b7be984583cca86930bfb5807f 100644 (file)
@@ -43,7 +43,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/iSeries/HvTypes.h>
-#include <asm/iSeries/LparData.h>
+#include <asm/iSeries/ItExtVpdPanel.h>
 #include <asm/iSeries/HvLpEvent.h>
 #include <asm/iSeries/HvLpConfig.h>
 #include <asm/iSeries/HvCallCfg.h>
index 817698052ea8f6858f9ba6c5da4b335c56a4e5cd..9411b5a04d00d403b8e0d79189c5df24de4f6b82 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/iSeries/HvCallCfg.h>
 #include <asm/iSeries/HvTypes.h>
 #include <asm/iSeries/ItLpNaca.h>
-#include <asm/iSeries/LparData.h>
 
 extern HvLpIndex HvLpConfig_getLpIndex_outline(void);
 
index c0cd21caf8fd56b7afe6ff6219972356b1ad1c1b..01a1f13ea4a0511959f9f4eeb5f97aa7f5b15f4a 100644 (file)
@@ -58,4 +58,6 @@ struct HvReleaseData {
        char    xRsvd3[20];     /* Reserved                     x2C-x3F */
 };
 
+extern struct HvReleaseData    hvReleaseData;
+
 #endif /* _HVRELEASEDATA_H */
index fbb3ee4d174b07e415fe60a505c978d6972e5d90..45ed3ea67d060facbad6575a9327df80a3cfac1d 100644 (file)
@@ -161,4 +161,6 @@ struct IoHriMainStoreSegment5 {
        u64     reserved3;
 };
 
+extern u64     xMsVpd[];
+
 #endif /* _IOHRIMAINSTORE_H */
index ccb7b7c55a402d1e81ade96c00e070440e233d54..73b73d80b8b11fb980108ae757fc5771a645f1fd 100644 (file)
@@ -81,4 +81,6 @@ struct IoHriProcessorVpd {
        char    xProcSrc[72];           // CSP format SRC               xB8-xFF
 };
 
+extern struct IoHriProcessorVpd        xIoHriProcessorVpd[];
+
 #endif /* _IOHRIPROCESSORVPD_H */
index b7149079d3ca1eeee9de3eeca06d8a7eb3fc806b..4c546a8802b4cfc55237851f54f253617e6acbed 100644 (file)
@@ -47,4 +47,6 @@ struct ItExtVpdPanel {
        u8      xRsvd2[48];
 };
 
+extern struct ItExtVpdPanel    xItExtVpdPanel;
+
 #endif /* _ITEXTVPDPANEL_H */
index 14f0b0a2a82340661d8cad431626ffcbdb2e238f..ae3417dc599e571da52621fceac99e904fc4b616 100644 (file)
@@ -66,4 +66,6 @@ struct ItIplParmsReal {
        u64     xRsvd13;                // Reserved                     x38-x3F
 };
 
+extern struct ItIplParmsReal   xItIplParmsReal;
+
 #endif /* _ITIPLPARMSREAL_H */
index 942b07d91408a54fff0dba4961ccc3b331d10bf0..225d0176779da8203aa464e55098715fd566b817 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef _ITLPNACA_H
 #define _ITLPNACA_H
 
+#include <linux/types.h>
+
 /*
  *     This control block contains the data that is shared between the
  *     hypervisor (PLIC) and the OS.
@@ -73,4 +75,6 @@ struct ItLpNaca {
        u64     xInterruptHdlr[32];     // Interrupt handlers           300-x3FF
 };
 
+extern struct ItLpNaca         itLpNaca;
+
 #endif /* _ITLPNACA_H */
index cfb9925e40aa7d8a752ede08d4294793ceb56d0e..97cfa6c427ec3943e4ea3aa166de320712682fb3 100644 (file)
@@ -90,4 +90,6 @@ struct ItVpdAreas {
        void    *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers  130-1EF
 };
 
+extern struct ItVpdAreas       itVpdAreas;
+
 #endif /* _ITVPDAREAS_H */
diff --git a/include/asm-ppc64/iSeries/LparData.h b/include/asm-ppc64/iSeries/LparData.h
deleted file mode 100644 (file)
index a9fd6e2..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * LparData.h
- * Copyright (C) 2001  Mike Corrigan IBM Corporation
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
- */
-
-#ifndef _LPARDATA_H
-#define _LPARDATA_H
-
-#include <asm/types.h>
-#include <asm/page.h>
-#include <asm/abs_addr.h>
-
-#include <asm/iSeries/ItLpNaca.h>
-#include <asm/iSeries/ItLpRegSave.h>
-#include <asm/iSeries/HvReleaseData.h>
-#include <asm/iSeries/LparMap.h>
-#include <asm/iSeries/ItVpdAreas.h>
-#include <asm/iSeries/ItIplParmsReal.h>
-#include <asm/iSeries/ItExtVpdPanel.h>
-#include <asm/iSeries/ItLpQueue.h>
-#include <asm/iSeries/IoHriProcessorVpd.h>
-
-extern struct LparMap          xLparMap;
-extern struct HvReleaseData    hvReleaseData;
-extern struct ItLpNaca         itLpNaca;
-extern struct ItIplParmsReal   xItIplParmsReal;
-extern struct ItExtVpdPanel    xItExtVpdPanel;
-extern struct IoHriProcessorVpd        xIoHriProcessorVpd[];
-extern struct ItLpQueue                xItLpQueue;
-extern struct ItVpdAreas       itVpdAreas;
-extern u64                     xMsVpd[];
-extern struct msChunks         msChunks;
-
-#endif /* _LPARDATA_H */
index 1505c4f0f1b4ecec9ab800349bdad3a5e09ba460..038e5df7e9f85fb3cf03e2fdb04ed63829f634e9 100644 (file)
@@ -64,4 +64,6 @@ struct LparMap {
        u64     xVPN;           // Virtual Page Number (0x000C000000000000)
 };
 
+extern struct LparMap          xLparMap;
+
 #endif /* _LPARMAP_H */