]> err.no Git - linux-2.6/commitdiff
[PATCH] powerpc: reintroduce HvCallPci_configLoad32
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 19 May 2006 06:43:58 +0000 (16:43 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 24 May 2006 06:08:56 +0000 (16:08 +1000)
This function was removed during iSeries cleanup but will prove useful
in the following patches.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/call_pci.h

index 59d4e0ad5cf324796e5ea7e7dd081feef071f476..dbdf69850ed9a0ab2aece186db0ab077f4c8b509 100644 (file)
@@ -145,6 +145,25 @@ static inline u64 HvCallPci_configLoad16(u16 busNumber, u8 subBusNumber,
        return retVal.rc;
 }
 
+static inline u64 HvCallPci_configLoad32(u16 busNumber, u8 subBusNumber,
+               u8 deviceId, u32 offset, u32 *value)
+{
+       struct HvCallPci_DsaAddr dsa;
+       struct HvCallPci_LoadReturn retVal;
+
+       *((u64*)&dsa) = 0;
+
+       dsa.busNumber = busNumber;
+       dsa.subBusNumber = subBusNumber;
+       dsa.deviceId = deviceId;
+
+       HvCall3Ret16(HvCallPciConfigLoad32, &retVal, *(u64 *)&dsa, offset, 0);
+
+       *value = retVal.value;
+
+       return retVal.rc;
+}
+
 static inline u64 HvCallPci_configStore8(u16 busNumber, u8 subBusNumber,
                u8 deviceId, u32 offset, u8 value)
 {