aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2023-03-16 12:16:59 +0000
committerAndrew Turner <andrew@FreeBSD.org>2023-09-25 08:41:15 +0000
commit8753f9e7b2bc5e482608939fc07513e60b479846 (patch)
tree611e1d96c7ea3503bfd6e66041fefbd83054a725
parent4401550f74ba50f34e9f443307d170c6b05ba62f (diff)
downloadsrc-8753f9e7b2bc5e482608939fc07513e60b479846.tar.gz
src-8753f9e7b2bc5e482608939fc07513e60b479846.zip
Add PSCI affinity info return values
These can be returned from the PSCI AFFINITY_INFO call. This is not marked as optional so bhyve will need to implement it & can use these macros. Sponsored by: Arm Ltd (cherry picked from commit 7d0b915919665cb43107b36ad103791515eade5b)
-rw-r--r--sys/dev/psci/psci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/psci/psci.h b/sys/dev/psci/psci.h
index 9f95cb535336..451d40c0178d 100644
--- a/sys/dev/psci/psci.h
+++ b/sys/dev/psci/psci.h
@@ -103,6 +103,10 @@ psci_call(register_t a, register_t b, register_t c, register_t d)
#define PSCI_VER_MINOR(v) ((v) & 0xFF)
#define PSCI_VER(maj, min) (((maj) << 16) | (min))
+#define PSCI_AFFINITY_INFO_ON 0
+#define PSCI_AFFINITY_INFO_OFF 1
+#define PSCI_AFFINITY_INFO_ON_PENDING 2
+
#ifdef _KERNEL
enum psci_fn {
PSCI_FN_VERSION,