diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-06-21 20:15:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 21:46:28 -0400 |
commit | c670b1acd0ed0d9f7a27154759a9825cb5012ae4 (patch) | |
tree | 3cf4409d5adc0e6cde995241792a89f209eee80d /include/asm-ppc64 | |
parent | 4a5304f5ba04eff979cd108309eae7a00f3fff77 (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>
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r-- | include/asm-ppc64/iSeries/HvCallSc.h | 34 | ||||
-rw-r--r-- | include/asm-ppc64/iSeries/HvTypes.h | 8 | ||||
-rw-r--r-- | include/asm-ppc64/iSeries/ItVpdAreas.h | 6 |
3 files changed, 20 insertions, 28 deletions
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 | ||
33 | u64 HvCall0(u64); | 33 | extern u64 HvCall0(u64); |
34 | u64 HvCall1(u64, u64); | 34 | extern u64 HvCall1(u64, u64); |
35 | u64 HvCall2(u64, u64, u64); | 35 | extern u64 HvCall2(u64, u64, u64); |
36 | u64 HvCall3(u64, u64, u64, u64); | 36 | extern u64 HvCall3(u64, u64, u64, u64); |
37 | u64 HvCall4(u64, u64, u64, u64, u64); | 37 | extern u64 HvCall4(u64, u64, u64, u64, u64); |
38 | u64 HvCall5(u64, u64, u64, u64, u64, u64); | 38 | extern u64 HvCall5(u64, u64, u64, u64, u64, u64); |
39 | u64 HvCall6(u64, u64, u64, u64, u64, u64, u64); | 39 | extern u64 HvCall6(u64, u64, u64, u64, u64, u64, u64); |
40 | u64 HvCall7(u64, u64, u64, u64, u64, u64, u64, u64); | 40 | extern u64 HvCall7(u64, u64, u64, u64, u64, u64, u64, u64); |
41 | 41 | ||
42 | u64 HvCall0Ret16(u64, void *); | 42 | extern u64 HvCall0Ret16(u64, void *); |
43 | u64 HvCall1Ret16(u64, void *, u64); | 43 | extern u64 HvCall1Ret16(u64, void *, u64); |
44 | u64 HvCall2Ret16(u64, void *, u64, u64); | 44 | extern u64 HvCall2Ret16(u64, void *, u64, u64); |
45 | u64 HvCall3Ret16(u64, void *, u64, u64, u64); | 45 | extern u64 HvCall3Ret16(u64, void *, u64, u64, u64); |
46 | u64 HvCall4Ret16(u64, void *, u64, u64, u64, u64); | 46 | extern u64 HvCall4Ret16(u64, void *, u64, u64, u64, u64); |
47 | u64 HvCall5Ret16(u64, void *, u64, u64, u64, u64, u64); | 47 | extern u64 HvCall5Ret16(u64, void *, u64, u64, u64, u64, u64); |
48 | u64 HvCall6Ret16(u64, void *, u64, u64, u64, u64, u64, u64); | 48 | extern u64 HvCall6Ret16(u64, void *, u64, u64, u64, u64, u64, u64); |
49 | u64 HvCall7Ret16(u64, void *, u64, u64 ,u64 ,u64 ,u64 ,u64 ,u64); | 49 | extern 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; | |||
40 | typedef u8 HvLpName[8]; | 40 | typedef u8 HvLpName[8]; |
41 | typedef u32 HvIoId; | 41 | typedef u32 HvIoId; |
42 | typedef u64 HvRealMemoryIndex; | 42 | typedef u64 HvRealMemoryIndex; |
43 | typedef u32 HvLpIndexMap; /* Must hold HvMaxArchitectedLps bits!!! */ | 43 | typedef u32 HvLpIndexMap; /* Must hold HVMAXARCHITECTEDLPS bits!!! */ |
44 | typedef u16 HvLpVrmIndex; | 44 | typedef u16 HvLpVrmIndex; |
45 | typedef u32 HvXmGenerationId; | 45 | typedef u32 HvXmGenerationId; |
46 | typedef u8 HvLpBusPool; | 46 | typedef u8 HvLpBusPool; |
47 | typedef u8 HvLpSharedPoolIndex; | 47 | typedef u8 HvLpSharedPoolIndex; |
48 | typedef u16 HvLpSharedProcUnitsX100; | 48 | typedef u16 HvLpSharedProcUnitsX100; |
49 | typedef u8 HvLpVirtualLanIndex; | 49 | typedef u8 HvLpVirtualLanIndex; |
50 | typedef u16 HvLpVirtualLanIndexMap; /* Must hold HvMaxArchitectedVirtualLans bits!!! */ | 50 | typedef u16 HvLpVirtualLanIndexMap; /* Must hold HVMAXARCHITECTEDVIRTUALLANS bits!!! */ |
51 | typedef u16 HvBusNumber; /* Hypervisor Bus Number */ | 51 | typedef u16 HvBusNumber; /* Hypervisor Bus Number */ |
52 | typedef u8 HvSubBusNumber; /* Hypervisor SubBus Number */ | 52 | typedef u8 HvSubBusNumber; /* Hypervisor SubBus Number */ |
53 | typedef u8 HvAgentId; /* Hypervisor DevFn */ | 53 | typedef 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 | */ |
77 | enum HvCallCompIds { | 75 | enum { |
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 | ||
64 | struct SlicVpdAdrs { | ||
65 | u32 pad1; | ||
66 | void *vpdAddr; | ||
67 | }; | ||
68 | |||
69 | |||
70 | struct ItVpdAreas { | 64 | struct 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 |