Merge tag 'audit-pr-20170907' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[sfrench/cifs-2.6.git] / arch / powerpc / include / asm / opal-api.h
index 3130a73652c70ac6bb89747b1e906b6b853f6aee..450a60b81d2a6ecfbb0ea92f4f7625ed498a26ff 100644 (file)
@@ -42,6 +42,7 @@
 #define OPAL_I2C_STOP_ERR      -24
 #define OPAL_XIVE_PROVISIONING -31
 #define OPAL_XIVE_FREE_ACTIVE  -32
+#define OPAL_TIMEOUT           -33
 
 /* API Tokens (in r0) */
 #define OPAL_INVALID_CALL                     -1
 #define OPAL_NPU_INIT_CONTEXT                  146
 #define OPAL_NPU_DESTROY_CONTEXT               147
 #define OPAL_NPU_MAP_LPAR                      148
-#define OPAL_LAST                              148
+#define OPAL_IMC_COUNTERS_INIT                 149
+#define OPAL_IMC_COUNTERS_START                        150
+#define OPAL_IMC_COUNTERS_STOP                 151
+#define OPAL_GET_POWERCAP                      152
+#define OPAL_SET_POWERCAP                      153
+#define OPAL_GET_POWER_SHIFT_RATIO             154
+#define OPAL_SET_POWER_SHIFT_RATIO             155
+#define OPAL_SENSOR_GROUP_CLEAR                        156
+#define OPAL_PCI_SET_P2P                       157
+#define OPAL_LAST                              157
 
 /* Device tree flags */
 
@@ -1084,6 +1094,18 @@ enum {
        XIVE_DUMP_EMU_STATE     = 5,
 };
 
+/* "type" argument options for OPAL_IMC_COUNTERS_* calls */
+enum {
+       OPAL_IMC_COUNTERS_NEST = 1,
+       OPAL_IMC_COUNTERS_CORE = 2,
+};
+
+
+/* PCI p2p descriptor */
+#define OPAL_PCI_P2P_ENABLE            0x1
+#define OPAL_PCI_P2P_LOAD              0x2
+#define OPAL_PCI_P2P_STORE             0x4
+
 #endif /* __ASSEMBLY__ */
 
 #endif /* __OPAL_API_H */