Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2501
b: refs/heads/master
c: c670b1a
h: refs/heads/master
i:
  2499: 2c80f5c
v: v3
  • Loading branch information
Stephen Rothwell authored and Linus Torvalds committed Jun 22, 2005
1 parent e7d49e1 commit 2a55fb2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a5304f5ba04eff979cd108309eae7a00f3fff77
refs/heads/master: c670b1acd0ed0d9f7a27154759a9825cb5012ae4
4 changes: 2 additions & 2 deletions trunk/arch/ppc64/kernel/viopath.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ int viopath_open(HvLpIndex remoteLp, int subtype, int numReq)
unsigned long flags;
int tempNumAllocated;

if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid))
if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid))
return -EINVAL;

subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
Expand Down Expand Up @@ -556,7 +556,7 @@ int viopath_close(HvLpIndex remoteLp, int subtype, int numReq)
int numOpen;
struct alloc_parms parms;

if ((remoteLp >= HvMaxArchitectedLps) || (remoteLp == HvLpIndexInvalid))
if ((remoteLp >= HVMAXARCHITECTEDLPS) || (remoteLp == HvLpIndexInvalid))
return -EINVAL;

subtype = subtype >> VIOMAJOR_SUBTYPE_SHIFT;
Expand Down
34 changes: 17 additions & 17 deletions trunk/include/asm-ppc64/iSeries/HvCallSc.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef _HVCALLSC_H
#define _HVCALLSC_H

#include <asm/iSeries/HvTypes.h>
#include <linux/types.h>

#define HvCallBase 0x8000000000000000ul
#define HvCallCc 0x8001000000000000ul
Expand All @@ -30,22 +30,22 @@
#define HvCallSm 0x8007000000000000ul
#define HvCallXm 0x8009000000000000ul

u64 HvCall0(u64);
u64 HvCall1(u64, u64);
u64 HvCall2(u64, u64, u64);
u64 HvCall3(u64, u64, u64, u64);
u64 HvCall4(u64, u64, u64, u64, u64);
u64 HvCall5(u64, u64, u64, u64, u64, u64);
u64 HvCall6(u64, u64, u64, u64, u64, u64, u64);
u64 HvCall7(u64, u64, u64, u64, u64, u64, u64, u64);
extern u64 HvCall0(u64);
extern u64 HvCall1(u64, u64);
extern u64 HvCall2(u64, u64, u64);
extern u64 HvCall3(u64, u64, u64, u64);
extern u64 HvCall4(u64, u64, u64, u64, u64);
extern u64 HvCall5(u64, u64, u64, u64, u64, u64);
extern u64 HvCall6(u64, u64, u64, u64, u64, u64, u64);
extern u64 HvCall7(u64, u64, u64, u64, u64, u64, u64, u64);

u64 HvCall0Ret16(u64, void *);
u64 HvCall1Ret16(u64, void *, u64);
u64 HvCall2Ret16(u64, void *, u64, u64);
u64 HvCall3Ret16(u64, void *, u64, u64, u64);
u64 HvCall4Ret16(u64, void *, u64, u64, u64, u64);
u64 HvCall5Ret16(u64, void *, u64, u64, u64, u64, u64);
u64 HvCall6Ret16(u64, void *, u64, u64, u64, u64, u64, u64);
u64 HvCall7Ret16(u64, void *, u64, u64 ,u64 ,u64 ,u64 ,u64 ,u64);
extern u64 HvCall0Ret16(u64, void *);
extern u64 HvCall1Ret16(u64, void *, u64);
extern u64 HvCall2Ret16(u64, void *, u64, u64);
extern u64 HvCall3Ret16(u64, void *, u64, u64, u64);
extern u64 HvCall4Ret16(u64, void *, u64, u64, u64, u64);
extern u64 HvCall5Ret16(u64, void *, u64, u64, u64, u64, u64);
extern u64 HvCall6Ret16(u64, void *, u64, u64, u64, u64, u64, u64);
extern u64 HvCall7Ret16(u64, void *, u64, u64 ,u64 ,u64 ,u64 ,u64 ,u64);

#endif /* _HVCALLSC_H */
8 changes: 3 additions & 5 deletions trunk/include/asm-ppc64/iSeries/HvTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ typedef u64 HvIoToken;
typedef u8 HvLpName[8];
typedef u32 HvIoId;
typedef u64 HvRealMemoryIndex;
typedef u32 HvLpIndexMap; /* Must hold HvMaxArchitectedLps bits!!! */
typedef u32 HvLpIndexMap; /* Must hold HVMAXARCHITECTEDLPS bits!!! */
typedef u16 HvLpVrmIndex;
typedef u32 HvXmGenerationId;
typedef u8 HvLpBusPool;
typedef u8 HvLpSharedPoolIndex;
typedef u16 HvLpSharedProcUnitsX100;
typedef u8 HvLpVirtualLanIndex;
typedef u16 HvLpVirtualLanIndexMap; /* Must hold HvMaxArchitectedVirtualLans bits!!! */
typedef u16 HvLpVirtualLanIndexMap; /* Must hold HVMAXARCHITECTEDVIRTUALLANS bits!!! */
typedef u16 HvBusNumber; /* Hypervisor Bus Number */
typedef u8 HvSubBusNumber; /* Hypervisor SubBus Number */
typedef u8 HvAgentId; /* Hypervisor DevFn */
Expand All @@ -66,15 +66,13 @@ typedef u8 HvAgentId; /* Hypervisor DevFn */
#define HVPAGESPERMEG 256
#define HVPAGESPERCHUNK 64

#define HvMaxArchitectedLps ((HvLpIndex)HVMAXARCHITECTEDLPS)
#define HvMaxArchitectedVirtualLans ((HvLpVirtualLanIndex)16)
#define HvLpIndexInvalid ((HvLpIndex)0xff)

/*
* Enums for the sub-components under PLIC
* Used in HvCall and HvPrimaryCall
*/
enum HvCallCompIds {
enum {
HvCallCompId = 0,
HvCallCpuCtlsCompId = 1,
HvCallCfgCompId = 2,
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/asm-ppc64/iSeries/ItVpdAreas.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@
#define ItVpdAreasMaxSlotLabels 192


struct SlicVpdAdrs {
u32 pad1;
void *vpdAddr;
};


struct ItVpdAreas {
u32 xSlicDesc; // Descriptor 000-003
u16 xSlicSize; // Size of this control block 004-005
Expand Down

0 comments on commit 2a55fb2

Please sign in to comment.