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
This commit is contained in:
Andrew Turner 2023-03-16 12:16:59 +00:00
parent e89be21854
commit 7d0b915919

View file

@ -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,