diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-04-16 23:03:11 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-17 03:52:10 -0500 |
commit | 88abbe212c04de44d0a0e5d265c8f2d158f61948 (patch) | |
tree | bc95ba8daacb787895a28c9b432ad54643c4afbf /include | |
parent | a9d92e24d4b21f27d19493fa01811381c9740e72 (diff) | |
download | skiboot-88abbe212c04de44d0a0e5d265c8f2d158f61948.zip skiboot-88abbe212c04de44d0a0e5d265c8f2d158f61948.tar.gz skiboot-88abbe212c04de44d0a0e5d265c8f2d158f61948.tar.bz2 |
opal/hmi: Add a new opal_handle_hmi2 that returns direct info to Linux
It returns a 64-bit flags mask currently set to provide info
about which timer facilities were lost, and whether an event
was generated.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/opal-api.h | 8 | ||||
-rw-r--r-- | include/opal-internal.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/opal-api.h b/include/opal-api.h index df71cf2..09c77c1 100644 --- a/include/opal-api.h +++ b/include/opal-api.h @@ -769,6 +769,14 @@ struct OpalHMIEvent { } u; }; +/* OPAL_HANDLE_HMI2 out_flags */ +enum { + OPAL_HMI_FLAGS_TB_RESYNC = (1ull << 0), /* Timebase has been resynced */ + OPAL_HMI_FLAGS_DEC_LOST = (1ull << 1), /* DEC lost, needs to be reprogrammed */ + OPAL_HMI_FLAGS_HDEC_LOST = (1ull << 2), /* HDEC lost, needs to be reprogrammed */ + OPAL_HMI_FLAGS_NEW_EVENT = (1ull << 63), /* An event has been created */ +}; + enum { OPAL_P7IOC_DIAG_TYPE_NONE = 0, OPAL_P7IOC_DIAG_TYPE_RGC = 1, diff --git a/include/opal-internal.h b/include/opal-internal.h index 8d3d0a1..40bad45 100644 --- a/include/opal-internal.h +++ b/include/opal-internal.h @@ -82,7 +82,6 @@ extern void opal_del_host_sync_notifier(bool (*notify)(void *data)); * Opal internal function prototype */ struct OpalHMIEvent; -extern int handle_hmi_exception(__be64 hmer, struct OpalHMIEvent *hmi_evt); extern int occ_msg_queue_occ_reset(void); extern unsigned long top_of_ram; |