diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2020-07-01 18:53:40 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2020-07-01 19:07:25 +0300 |
commit | 1fc2dd1864c2b18860fb619caeee758504c3aac8 (patch) | |
tree | 9666959aff29e26dc0f123b4b5106a94428c6d7e /drivers/firmware/arm_scmi/common.h | |
parent | e0f1a30cf184821499eeb67daedd7a3f21bbcb0b (diff) | |
download | linux-1fc2dd1864c2b18860fb619caeee758504c3aac8.tar.xz |
firmware: arm_scmi: Add notification protocol-registration
Add the core SCMI notifications protocol-registration support: allow
protocols to register their own set of supported events, during their
initialization phase. Notification core can track multiple platform
instances by their handles.
Link: https://lore.kernel.org/r/20200701155348.52864-2-cristian.marussi@arm.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi/common.h')
-rw-r--r-- | drivers/firmware/arm_scmi/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firmware/arm_scmi/common.h b/drivers/firmware/arm_scmi/common.h index 31fe5a22a011..c113e578cc6c 100644 --- a/drivers/firmware/arm_scmi/common.h +++ b/drivers/firmware/arm_scmi/common.h @@ -6,6 +6,8 @@ * * Copyright (C) 2018 ARM Ltd. */ +#ifndef _SCMI_COMMON_H +#define _SCMI_COMMON_H #include <linux/bitfield.h> #include <linux/completion.h> @@ -235,3 +237,5 @@ void shmem_fetch_notification(struct scmi_shared_mem __iomem *shmem, void shmem_clear_channel(struct scmi_shared_mem __iomem *shmem); bool shmem_poll_done(struct scmi_shared_mem __iomem *shmem, struct scmi_xfer *xfer); + +#endif /* _SCMI_COMMON_H */ |