From nobody Tue Oct 15 17:25:12 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XSgw95FW4z5YkxH; Tue, 15 Oct 2024 17:25:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSgw921Kcz4V3y; Tue, 15 Oct 2024 17:25:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729013113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cyhI2cft2wUS0I3cY8g5QcE0NOTT+cu5xOj88ERbFQc=; b=iGjntkDQcuDTcFTcKseijBIzMD9Vaz/Ij1kgiV1iWAsm9qz2nOrdIj+yzjxZQCa4+3nX+3 CU6x+xTGUsXgun90LwECUM9rF8CIW3STg0UCWLq56OT1O42HQ+zdSEEkoX75DxtuaoMuQC dGyw7uuL8KfmUgiZkZepadk0MMUhQW0v9hih5b6qKALKfaHMZl+oLCzy7BpDwbfu56j45p BOixxkoN8USlgykvVvQbJJh9v76VEsK7Sc+JngTzDnxFvp87gzEvPHfVtANz2W8Od//vBl QzswA+Fu5XTgoRFXkDJmUrIFnnlxBkgIO0YGihwNL83wku2XxMJZ0vDiiKt9XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729013113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cyhI2cft2wUS0I3cY8g5QcE0NOTT+cu5xOj88ERbFQc=; b=WYnH/5Jmlru6HefWr75CYMPrJ3FrfGnVAWKHHlGqoWuotsFJtwo0J3tu3d4espb1Sj35SS r0S1MxWN8DiF2ToskG+ay1PL1fWt8yRdQWncAeAlS9UXABriipsPflIFiYWLXUTdwBGk/Y HdPytOFdHU4ryM2Db9ayChq9yVSznbO0GgEt673h0ywAKqOUMk1UYrZiR3LxYygYJrTnGF 3lB+8hF4o4e8wpogaBRmvtSMdzgMpJErEUk7h7P+IHeur5Vv+SjYxmCZN5gCpJ1iKMUKvk bQLxRHxj3ilLsz4UQfMZPyMq8gC3xOYDu7oHqXNaH+v+MqF9SdWCi8c3eUmNKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729013113; a=rsa-sha256; cv=none; b=pt4NrwqwI0ikEo2N9yT6umB4NOkDfu/D2g+wQgM4ursqpOG7enK/dSCtw9Tk7EYN6N9uGU 1qUfY2zbgr4/3IuFbHbp7xjS79jFfKRymcTpQ0Yh2Szv1plHzF01c48UgDi2/Y1u0w5Xdj qe3tNX4OlussbCcHc1FjfkxrSaVL0SFKC+8IzFe79SJxDQ6vThAqhk0fIwWYu/Fb5w6olA prYw8mNBXOKAduwWjEbqGXCao8oi505EjQtL9RPzL77mxV7Ip0pyqtsH7yCQdqNyEWKMqY fCYdMlxzWRuRZn48g0ZjVN1kUzVNhzK7CsFyXZDal1JdyS4KxDQviyfmuZUcIQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XSgw90ftyzWR4; Tue, 15 Oct 2024 17:25:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49FHPCGm027945; Tue, 15 Oct 2024 17:25:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49FHPCvV027942; Tue, 15 Oct 2024 17:25:12 GMT (envelope-from git) Date: Tue, 15 Oct 2024 17:25:12 GMT Message-Id: <202410151725.49FHPCvV027942@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 511ae023fb33 - main - dev/psci: Add SMCCC_MAKE_VERSION List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 511ae023fb33f9e354b5e57b8db7c9c93a43be6b Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=511ae023fb33f9e354b5e57b8db7c9c93a43be6b commit 511ae023fb33f9e354b5e57b8db7c9c93a43be6b Author: Andrew Turner AuthorDate: 2024-10-14 14:34:06 +0000 Commit: Andrew Turner 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)