summaryrefslogtreecommitdiff
path: root/libpeci/peci.h
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2020-02-19 02:06:28 +0300
committerJason M. Bills <jason.m.bills@linux.intel.com>2020-02-27 04:45:32 +0300
commitef7772033c6072375a845ca139da78e0c54c1318 (patch)
treed4be5456426d85b4fbcb76220a1fb1fb04ad035e /libpeci/peci.h
parent1a380b0a106eb9194fb271212e821141d09f0812 (diff)
downloadprovingground-ef7772033c6072375a845ca139da78e0c54c1318.tar.xz
Add WrEndPointConfig MMIO to the PECI library
This adds WrEndPointConfig MMIO support to the PECI library. Tested: Combined with the peci_cmds change, ran this command: peci_cmds WrEndpointConfigMMIO 6 0 0 0x7e 0x1a 0x0 0x224e0 0x5f5a56 and got the expected command buffer in the driver log: [ 795.207278] peci_aspeed 1e78b000.peci-bus: HEAD : 0x00011730 [ 795.212980] TX : c5 00 05 00 00 00 06 00 d0 7e e0 24 02 00 00 00 .........~.$.... [ 795.220556] TX : 00 00 56 5a 5f 00 a8 ..VZ_.. Change-Id: I991ab7b1138981cd773f7344a7ad33cbc5292e08 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'libpeci/peci.h')
-rw-r--r--libpeci/peci.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libpeci/peci.h b/libpeci/peci.h
index 53a8bba..70ffb11 100644
--- a/libpeci/peci.h
+++ b/libpeci/peci.h
@@ -218,6 +218,20 @@ EPECIStatus peci_WrEndPointConfig_seq(uint8_t target, uint8_t u8MsgType,
uint32_t DataVal, int peci_fd,
uint8_t* cc);
+// Provides write access to the EP PCI MMIO space
+EPECIStatus peci_WrEndPointConfigMmio(uint8_t target, uint8_t u8Seg,
+ uint8_t u8Bus, uint8_t u8Device,
+ uint8_t u8Fcn, uint8_t u8Bar,
+ uint8_t u8AddrType, uint64_t u64Offset,
+ uint8_t u8DataLen, uint64_t u64DataVal,
+ uint8_t* cc);
+
+// Allows sequential write access to the EP PCI MMIO space
+EPECIStatus peci_WrEndPointConfigMmio_seq(
+ uint8_t target, uint8_t u8Seg, uint8_t u8Bus, uint8_t u8Device,
+ uint8_t u8Fcn, uint8_t u8Bar, uint8_t u8AddrType, uint64_t u64Offset,
+ uint8_t u8DataLen, uint64_t u64DataVal, int peci_fd, uint8_t* cc);
+
// Provides access to the Crashdump Discovery API
EPECIStatus peci_CrashDump_Discovery(uint8_t target, uint8_t subopcode,
uint8_t param0, uint16_t param1,