aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-06-21 20:15:41 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 21:46:28 -0400
commitc670b1acd0ed0d9f7a27154759a9825cb5012ae4 (patch)
tree3cf4409d5adc0e6cde995241792a89f209eee80d
parent4a5304f5ba04eff979cd108309eae7a00f3fff77 (diff)
[PATCH] ppc64 iSeries: misc header cleanups
Last of this round of the iSeries header cleanups - don't have two defines for the same thing (HvMaxArchitectedLps and HvMaxArchitectedVirtualLans) - HvCallSc.h only needs linux/types.h - remove unused struct definition - add "extern" to some more function declarations 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>
-rw-r--r--arch/ppc64/kernel/viopath.c4
-rw-r--r--include/asm-ppc64/iSeries/HvCallSc.h34
-rw-r--r--include/asm-ppc64/iSeries/HvTypes.h8
-rw-r--r--include/asm-ppc64/iSeries/ItVpdAreas.h6
4 files changed, 22 insertions, 30 deletions
diff --git a/arch/ppc64/kernel/viopath.c b/arch/ppc64/kernel/viopath.c
index ef524042e496..2a6c4f01c45e 100644
--- a/arch/ppc64/kernel/viopath.c
+++ b/arch/ppc64/kernel/viopath.c
@@ -485,7 +485,7 @@ int viopath_open(HvLpIndex remoteLp, int subtype, int numReq)
485 unsigned long flags; 485 unsigned long flags;
486 int tempNumAllocated; 486 int tempNumAllocated;
487 487
488 if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid)) 488 if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid))
489 return -EINVAL; 489 return -EINVAL;
490 490
491 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT; 491 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
@@ -556,7 +556,7 @@ int viopath_close(HvLpIndex remoteLp, int subtype, int numReq)
556 int numOpen; 556 int numOpen;
557 struct alloc_parms parms; 557 struct alloc_parms parms;
558 558
559 if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid)) 559 if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid))
560 return -EINVAL; 560 return -EINVAL;
561 561
562 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT; 562 subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
diff --git a/include/asm-ppc64/iSeries/HvCallSc.h b/include/asm-ppc64/iSeries/HvCallSc.h
index c32145f9ec75..a62cef3822f9 100644
--- a/include/asm-ppc64/iSeries/HvCallSc.h
+++ b/include/asm-ppc64/iSeries/HvCallSc.h
@@ -19,7 +19,7 @@
19#ifndef _HVCALLSC_H 19#ifndef _HVCALLSC_H
20#define _HVCALLSC_H 20#define _HVCALLSC_H
21 21
22#include <asm/iSeries/HvTypes.h> 22#include <linux/types.h>
23 23
24#define HvCallBase 0x8000000000000000ul 24#define HvCallBase 0x8000000000000000ul
25#define HvCallCc 0x8001000000000000ul 25#define HvCallCc 0x8001000000000000ul
@@ -30,22 +30,22 @@
30#define HvCallSm 0x8007000000000000ul 30#define HvCallSm 0x8007000000000000ul
31#define HvCallXm 0x8009000000000000ul 31#define HvCallXm 0x8009000000000000ul
32 32
33u64 HvCall0(u64); 33extern u64 HvCall0(u64);
34u64 HvCall1(u64, u64); 34extern u64 HvCall1(u64, u64);
35u64 HvCall2(u64, u64, u64); 35extern u64 HvCall2(u64, u64, u64);
36u64 HvCall3(u64, u64, u64, u64); 36extern u64 HvCall3(u64, u64, u64, u64);
37u64 HvCall4(u64, u64, u64, u64, u64); 37extern u64 HvCall4(u64, u64, u64, u64, u64);
38u64 HvCall5(u64, u64, u64, u64, u64, u64); 38extern u64 HvCall5(u64, u64, u64, u64, u64, u64);
39u64 HvCall6(u64, u64, u64, u64, u64, u64, u64); 39extern u64 HvCall6(u64, u64, u64, u64, u64, u64, u64);
40u64 HvCall7(u64, u64, u64, u64, u64, u64, u64, u64); 40extern u64 HvCall7(u64, u64, u64, u64, u64, u64, u64, u64);
41 41
42u64 HvCall0Ret16(u64, void *); 42extern u64 HvCall0Ret16(u64, void *);
43u64 HvCall1Ret16(u64, void *, u64); 43extern u64 HvCall1Ret16(u64, void *, u64);
44u64 HvCall2Ret16(u64, void *, u64, u64); 44extern u64 HvCall2Ret16(u64, void *, u64, u64);
45u64 HvCall3Ret16(u64, void *, u64, u64, u64); 45extern u64 HvCall3Ret16(u64, void *, u64, u64, u64);
46u64 HvCall4Ret16(u64, void *, u64, u64, u64, u64); 46extern u64 HvCall4Ret16(u64, void *, u64, u64, u64, u64);
47u64 HvCall5Ret16(u64, void *, u64, u64, u64, u64, u64); 47extern u64 HvCall5Ret16(u64, void *, u64, u64, u64, u64, u64);
48u64 HvCall6Ret16(u64, void *, u64, u64, u64, u64, u64, u64); 48extern u64 HvCall6Ret16(u64, void *, u64, u64, u64, u64, u64, u64);
49u64 HvCall7Ret16(u64, void *, u64, u64 ,u64 ,u64 ,u64 ,u64 ,u64); 49extern u64 HvCall7Ret16(u64, void *, u64, u64 ,u64 ,u64 ,u64 ,u64 ,u64);
50 50
51#endif /* _HVCALLSC_H */ 51#endif /* _HVCALLSC_H */
diff --git a/include/asm-ppc64/iSeries/HvTypes.h b/include/asm-ppc64/iSeries/HvTypes.h
index 111191ddb181..b1ef2b4cb3e3 100644
--- a/include/asm-ppc64/iSeries/HvTypes.h
+++ b/include/asm-ppc64/iSeries/HvTypes.h
@@ -40,14 +40,14 @@ typedef u64 HvIoToken;
40typedef u8 HvLpName[8]; 40typedef u8 HvLpName[8];
41typedef u32 HvIoId; 41typedef u32 HvIoId;
42typedef u64 HvRealMemoryIndex; 42typedef u64 HvRealMemoryIndex;
43typedef u32 HvLpIndexMap; /* Must hold HvMaxArchitectedLps bits!!! */ 43typedef u32 HvLpIndexMap; /* Must hold HVMAXARCHITECTEDLPS bits!!! */
44typedef u16 HvLpVrmIndex; 44typedef u16 HvLpVrmIndex;
45typedef u32 HvXmGenerationId; 45typedef u32 HvXmGenerationId;
46typedef u8 HvLpBusPool; 46typedef u8 HvLpBusPool;
47typedef u8 HvLpSharedPoolIndex; 47typedef u8 HvLpSharedPoolIndex;
48typedef u16 HvLpSharedProcUnitsX100; 48typedef u16 HvLpSharedProcUnitsX100;
49typedef u8 HvLpVirtualLanIndex; 49typedef u8 HvLpVirtualLanIndex;
50typedef u16 HvLpVirtualLanIndexMap; /* Must hold HvMaxArchitectedVirtualLans bits!!! */ 50typedef u16 HvLpVirtualLanIndexMap; /* Must hold HVMAXARCHITECTEDVIRTUALLANS bits!!! */
51typedef u16 HvBusNumber; /* Hypervisor Bus Number */ 51typedef u16 HvBusNumber; /* Hypervisor Bus Number */
52typedef u8 HvSubBusNumber; /* Hypervisor SubBus Number */ 52typedef u8 HvSubBusNumber; /* Hypervisor SubBus Number */
53typedef u8 HvAgentId; /* Hypervisor DevFn */ 53typedef u8 HvAgentId; /* Hypervisor DevFn */
@@ -66,15 +66,13 @@ typedef u8 HvAgentId; /* Hypervisor DevFn */
66#define HVPAGESPERMEG 256 66#define HVPAGESPERMEG 256
67#define HVPAGESPERCHUNK 64 67#define HVPAGESPERCHUNK 64
68 68
69#define HvMaxArchitectedLps ((HvLpIndex)HVMAXARCHITECTEDLPS)
70#define HvMaxArchitectedVirtualLans ((HvLpVirtualLanIndex)16)
71#define HvLpIndexInvalid ((HvLpIndex)0xff) 69#define HvLpIndexInvalid ((HvLpIndex)0xff)
72 70
73/* 71/*
74 * Enums for the sub-components under PLIC 72 * Enums for the sub-components under PLIC
75 * Used in HvCall and HvPrimaryCall 73 * Used in HvCall and HvPrimaryCall
76 */ 74 */
77enum HvCallCompIds { 75enum {
78 HvCallCompId = 0, 76 HvCallCompId = 0,
79 HvCallCpuCtlsCompId = 1, 77 HvCallCpuCtlsCompId = 1,
80 HvCallCfgCompId = 2, 78 HvCallCfgCompId = 2,
diff --git a/include/asm-ppc64/iSeries/ItVpdAreas.h b/include/asm-ppc64/iSeries/ItVpdAreas.h
index 97cfa6c427ec..71b3ad24f95a 100644
--- a/include/asm-ppc64/iSeries/ItVpdAreas.h
+++ b/include/asm-ppc64/iSeries/ItVpdAreas.h
@@ -61,12 +61,6 @@
61#define ItVpdAreasMaxSlotLabels 192 61#define ItVpdAreasMaxSlotLabels 192
62 62
63 63
64struct SlicVpdAdrs {
65 u32 pad1;
66 void *vpdAddr;
67};
68
69
70struct ItVpdAreas { 64struct ItVpdAreas {
71 u32 xSlicDesc; // Descriptor 000-003 65 u32 xSlicDesc; // Descriptor 000-003
72 u16 xSlicSize; // Size of this control block 004-005 66 u16 xSlicSize; // Size of this control block 004-005