diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2023-03-16 12:16:59 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2023-03-16 13:08:00 +0000 |
commit | 7d0b915919665cb43107b36ad103791515eade5b (patch) | |
tree | 3431d02754c66b14c2c8bfb1834c83d1a4185106 | |
parent | e89be21854b3aa33efd2e06529a181343281659d (diff) |
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
-rw-r--r-- | sys/dev/psci/psci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/psci/psci.h b/sys/dev/psci/psci.h index 671f082bb119..207158b417ab 100644 --- a/sys/dev/psci/psci.h +++ b/sys/dev/psci/psci.h @@ -105,6 +105,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, |