Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <lib/el3_runtime/pubsub.h> |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 8 | |
| 9 | /* |
| 10 | * This file defines a list of pubsub events, declared using |
| 11 | * REGISTER_PUBSUB_EVENT() macro. |
| 12 | */ |
Jeenu Viswambharan | 55e56a9 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 13 | |
| 14 | /* |
| 15 | * Event published after a CPU has been powered up and finished its |
| 16 | * initialization. |
| 17 | */ |
| 18 | REGISTER_PUBSUB_EVENT(psci_cpu_on_finish); |
Dimitris Papastamos | a7921b9 | 2017-10-13 15:27:58 +0100 | [diff] [blame] | 19 | |
Dimitris Papastamos | d1a1841 | 2017-11-28 15:16:00 +0000 | [diff] [blame] | 20 | /* |
| 21 | * These events are published before/after a CPU has been powered down/up |
| 22 | * via the PSCI CPU SUSPEND API. |
| 23 | */ |
| 24 | REGISTER_PUBSUB_EVENT(psci_suspend_pwrdown_start); |
| 25 | REGISTER_PUBSUB_EVENT(psci_suspend_pwrdown_finish); |
| 26 | |
Julius Werner | 8e0ef0f | 2019-07-09 14:02:43 -0700 | [diff] [blame] | 27 | #ifdef __aarch64__ |
Dimitris Papastamos | a7921b9 | 2017-10-13 15:27:58 +0100 | [diff] [blame] | 28 | /* |
| 29 | * These events are published by the AArch64 context management framework |
| 30 | * after the secure context is restored/saved via |
| 31 | * cm_el1_sysregs_context_{restore,save}() API. |
| 32 | */ |
| 33 | REGISTER_PUBSUB_EVENT(cm_entering_secure_world); |
| 34 | REGISTER_PUBSUB_EVENT(cm_exited_secure_world); |
| 35 | |
| 36 | /* |
| 37 | * These events are published by the AArch64 context management framework |
| 38 | * after the normal context is restored/saved via |
| 39 | * cm_el1_sysregs_context_{restore,save}() API. |
| 40 | */ |
| 41 | REGISTER_PUBSUB_EVENT(cm_entering_normal_world); |
| 42 | REGISTER_PUBSUB_EVENT(cm_exited_normal_world); |
Julius Werner | 8e0ef0f | 2019-07-09 14:02:43 -0700 | [diff] [blame] | 43 | #endif /* __aarch64__ */ |