diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-04-06 14:03:01 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-07 17:42:34 +1000 |
commit | 3288c187c2b3e82ff78f54cd6887dc2f95d7bbe9 (patch) | |
tree | 44f5ef8f3889e5e575ca3461e55d69c7fc0b8755 /include/fsp-sysparam.h | |
parent | bfa6a82a1e54d575c745eecf6baec03e825282cf (diff) | |
download | skiboot-3288c187c2b3e82ff78f54cd6887dc2f95d7bbe9.zip skiboot-3288c187c2b3e82ff78f54cd6887dc2f95d7bbe9.tar.gz skiboot-3288c187c2b3e82ff78f54cd6887dc2f95d7bbe9.tar.bz2 |
FSP/SYSPARAM: Introduce update notify system parameter notifier
FSP sends update system parameter notification asynchronously.
Presently no one is using this notification. We just ACK this
notification.
This patch adds notifier chain so that if someone (like LED) is
interested in this notification, they can register and get
notification.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp-sysparam.h')
-rw-r--r-- | include/fsp-sysparam.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/fsp-sysparam.h b/include/fsp-sysparam.h index ca95936..731a372 100644 --- a/include/fsp-sysparam.h +++ b/include/fsp-sysparam.h @@ -55,4 +55,16 @@ int fsp_get_sys_param(uint32_t param_id, void *buffer, uint32_t length, void fsp_sysparam_init(void); +/* + * System parameter update notification. + * param_id : parameter id + * len : length of data + * data : pointer to data + */ +typedef bool (*sysparam_update_notify)(struct fsp_msg *msg); + +/* Register/unregister for system parameter update notifier chain */ +void sysparam_add_update_notifier(sysparam_update_notify notify); +void sysparam_del_update_notifier(sysparam_update_notify notify); + #endif /* __FSP_SYSPARAM_H */ |