[PATCH] ppc64 iSeries: tidy up some includes and HvCall.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 22 Jun 2005 00:15:40 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:28 +0000 (18:46 -0700)
This patch removes some unused bits from HvCall.h and some unneeded #includes
from other files.  Also includes ItLpQueue.h in paca.h in preference to a stub
declaration of struct ItLpQueue.

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>
arch/ppc64/kernel/asm-offsets.c
arch/ppc64/kernel/iSeries_pci.c
arch/ppc64/kernel/mf.c
arch/ppc64/kernel/rtc.c
include/asm-ppc64/iSeries/HvCall.h
include/asm-ppc64/paca.h

index 0094ac79a18c68d0935104092554877912292caf..abb9e5b5da03b81aa42c88b2ad635f7d1cc00914 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <asm/paca.h>
 #include <asm/lppaca.h>
-#include <asm/iSeries/ItLpQueue.h>
 #include <asm/iSeries/HvLpEvent.h>
 #include <asm/rtas.h>
 #include <asm/cputable.h>
index 9829cd4666d82d1fa42b5d8b093ba792e2477ec2..1bff515bd298b9e4dae5a188513424088ce4a4fc 100644 (file)
@@ -38,7 +38,6 @@
 #include <asm/iommu.h>
 
 #include <asm/iSeries/HvCallPci.h>
-#include <asm/iSeries/HvCallSm.h>
 #include <asm/iSeries/HvCallXm.h>
 #include <asm/iSeries/iSeries_irq.h>
 #include <asm/iSeries/iSeries_pci.h>
index 5aca7e8005a80f9b5a188d04269347ac90c411b1..d98bebf7042faf990e63a8732c8dab4c91991033 100644 (file)
@@ -40,7 +40,6 @@
 #include <asm/iSeries/vio.h>
 #include <asm/iSeries/mf.h>
 #include <asm/iSeries/HvLpConfig.h>
-#include <asm/iSeries/ItSpCommArea.h>
 #include <asm/iSeries/ItLpQueue.h>
 
 /*
index 4cdafb4007b173cb5182810f93b707db0edacfe6..de02aedbe08085e5955a53f90dcaa924ecf53f94 100644 (file)
@@ -44,7 +44,6 @@
 
 #include <asm/iSeries/mf.h>
 #include <asm/machdep.h>
-#include <asm/iSeries/ItSpCommArea.h>
 
 extern int piranha_simulator;
 
index c903387e9128b79e295cb355bc1cb8d594eb7587..c3f19475c0d946e8a323826a7759f5f2bf9804da 100644 (file)
 #include <asm/iSeries/HvTypes.h>
 #include <asm/paca.h>
 
-/*
-enum HvCall_ReturnCode
-{
-       HvCall_Good             = 0,
-       HvCall_Partial          = 1,
-       HvCall_NotOwned         = 2,
-       HvCall_NotFreed         = 3,
-       HvCall_UnspecifiedError = 4
-};
-
-enum HvCall_TypeOfSIT
-{
-       HvCall_ReduceOnly       = 0,
-       HvCall_Unconditional    = 1
-};
-
-enum HvCall_TypeOfYield
-{
-       HvCall_YieldTimed       = 0,    // Yield until specified time
-       HvCall_YieldToActive    = 1,    // Yield until all active procs have run
-       HvCall_YieldToProc      = 2     // Yield until the specified processor has run
-};
-
-enum HvCall_InterruptMasks
-{
-       HvCall_MaskIPI          = 0x00000001,
-       HvCall_MaskLpEvent      = 0x00000002,
-       HvCall_MaskLpProd       = 0x00000004,
-       HvCall_MaskTimeout      = 0x00000008
-};
-
-enum HvCall_VaryOffChunkRc
-{
-       HvCall_VaryOffSucceeded         = 0,
-       HvCall_VaryOffWithdrawn         = 1,
-       HvCall_ChunkInLoadArea          = 2,
-       HvCall_ChunkInHPT               = 3,
-       HvCall_ChunkNotAccessible       = 4,
-       HvCall_ChunkInUse               = 5
-};
-*/
-
 /* Type of yield for HvCallBaseYieldProcessor */
 #define HvCall_YieldTimed      0       /* Yield until specified time (tb) */
 #define HvCall_YieldToActive   1       /* Yield until all active procs have run */
@@ -139,35 +97,12 @@ static inline void HvCall_setEnabledInterrupts(u64 enabledInterrupts)
        HvCall1(HvCallBaseSetEnabledInterrupts, enabledInterrupts);
 }
 
-static inline void HvCall_clearLogBuffer(HvLpIndex lpindex)
-{
-       HvCall1(HvCallBaseClearLogBuffer, lpindex);
-}
-
-static inline u32 HvCall_getLogBufferCodePage(HvLpIndex lpindex)
-{
-       u32 retVal = HvCall1(HvCallBaseGetLogBufferCodePage, lpindex);
-       return retVal;
-}
-
-static inline int HvCall_getLogBufferFormat(HvLpIndex lpindex)
-{
-       int retVal = HvCall1(HvCallBaseGetLogBufferFormat, lpindex);
-       return retVal;
-}
-
-static inline u32 HvCall_getLogBufferLength(HvLpIndex lpindex)
-{
-       u32 retVal = HvCall1(HvCallBaseGetLogBufferLength, lpindex);
-       return retVal;
-}
-
-static inline void HvCall_setLogBufferFormatAndCodepage(int format, u32 codePage)
+static inline void HvCall_setLogBufferFormatAndCodepage(int format,
+               u32 codePage)
 {
        HvCall2(HvCallBaseSetLogBufferFormatAndCodePage, format, codePage);
 }
 
-extern int HvCall_readLogBuffer(HvLpIndex lpindex, void *buffer, u64 bufLen);
 extern void HvCall_writeLogBuffer(const void *buffer, u64 bufLen);
 
 static inline void HvCall_sendIPI(struct paca_struct *targetPaca)
@@ -175,19 +110,4 @@ static inline void HvCall_sendIPI(struct paca_struct *targetPaca)
        HvCall1(HvCallBaseSendIPI, targetPaca->paca_index);
 }
 
-static inline void HvCall_terminateMachineSrc(void)
-{
-       HvCall0(HvCallBaseTerminateMachineSrc);
-}
-
-static inline void HvCall_setDABR(unsigned long val)
-{
-       HvCall1(HvCallCcSetDABR, val);
-}
-
-static inline void HvCall_setDebugBus(unsigned long val)
-{
-       HvCall1(HvCallBaseSetDebugBus, val);
-}
-
 #endif /* _HVCALL_H */
index 1a0223b5f3b8e5c3bc24ffd8c1deeeb3c4c0fffa..ae76cae1483fad886c002fe33aec8166b2c1a5a7 100644 (file)
 #include       <asm/types.h>
 #include       <asm/lppaca.h>
 #include       <asm/iSeries/ItLpRegSave.h>
+#include       <asm/iSeries/ItLpQueue.h>
 #include       <asm/mmu.h>
 
 register struct paca_struct *local_paca asm("r13");
 #define get_paca()     local_paca
 
 struct task_struct;
-struct ItLpQueue;
 
 /*
  * Defines the layout of the paca.