git: 511ae023fb33 - main - dev/psci: Add SMCCC_MAKE_VERSION
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Oct 2024 17:25:12 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=511ae023fb33f9e354b5e57b8db7c9c93a43be6b commit 511ae023fb33f9e354b5e57b8db7c9c93a43be6b Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2024-10-14 14:34:06 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2024-10-15 17:24:42 +0000 dev/psci: Add SMCCC_MAKE_VERSION This will be used to create an integer with a given version. It can then be used to check if the SMCCC version is late enough for a driver. Sponsored by: Arm Ltd --- sys/dev/psci/smccc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/psci/smccc.h b/sys/dev/psci/smccc.h index dd10fb8018ae..b9e878d7c8ea 100644 --- a/sys/dev/psci/smccc.h +++ b/sys/dev/psci/smccc.h @@ -32,6 +32,7 @@ #ifndef _PSCI_SMCCC_H_ #define _PSCI_SMCCC_H_ +#define SMCCC_MAKE_VERSION(maj, min) ((maj) << 16 | (min)) #define SMCCC_VERSION_MAJOR(ver) (((ver) >> 16) & 0x7fff) #define SMCCC_VERSION_MINOR(ver) ((ver) & 0xffff)