Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28715
b: refs/heads/master
c: 66b3851
h: refs/heads/master
i:
  28713: 7a2d36b
  28711: 1fe6bcc
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed May 24, 2006
1 parent 57c9d7d commit e065ef1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b58b7f98670ab6dd7774b67ff1655a787321209f
refs/heads/master: 66b3851a6947482987b4c05aa781a33696287648
19 changes: 19 additions & 0 deletions trunk/arch/powerpc/platforms/iseries/call_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e065ef1

Please sign in to comment.