From nobody Sun Aug 20 09:54:51 2023 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 4RT9vJ0tsqz4r1nV; Sun, 20 Aug 2023 09:54:52 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RT9vJ0Ssyz3Q21; Sun, 20 Aug 2023 09:54:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692525292; 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=8j2fbLk9u0LQen7jqgupY6l1Ck9NKU4oQfQVNlNd22U=; b=BBFGtK4WbTJ6T/2bQ9pefvkc+m/bgY/GARzhrKUBW6DpDSFJ0bA0K3Egce5+6QBe4bbfu0 mbMXjEoIjln9HsWbqTPJ5hiBpQ5ZdcjJycUBmvuLoQDgE40Z3A5P1xxikXRVHtY/wnegRG drgt/T2Vmt6LOzawk5l+QCjDSmwzG+oHuRItYKjg3WBVlyAioRDwoG+7k7UjupZvEOFpcY GiYQibBzWdkb12i6VB/8gjhYvDyq7JAVfuXV6LQGYcJmVMOQypKrqaypLNeRMbhZ2hpWWU /GfLe66MLWPWrU2Ge8hJGtLxkIx/y+5z42kItTzq1zVx9kEk0X9PzPw1Aa2J5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692525292; 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=8j2fbLk9u0LQen7jqgupY6l1Ck9NKU4oQfQVNlNd22U=; b=IXHTtfr5tRDe6aqdmwUkpPkhRE+vLDljqpVYteMoiiSRZY3dnjAac1glJMyMLsvCQMSRwb 8V4ik+x6EaiesQQxcyP3RY3Ns81Qz/Ch3/+kQn+yxoSVGBejRaObcRUxLz0lydC9nOZ3u1 NKOB9+l7pYepa32vTWmqHX9+Obsf52qDRXYbeAhmtonkyzBMguJ51+CrRR9/HhScKjUxKE weoYKFchrFw3XP11B1zMBayTAwp9stYVUXAR1pvaCM29zpUhF0TWv97nBe8Sph4SsR0W+V fmfDw4eTZZrVw/ug/Bk2EzgfpnKa6xQ7pLHhEfVyDyP1YYH8O1zATrynIQeJyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692525292; a=rsa-sha256; cv=none; b=YYqOrSLbT8L+tn3A4OBhnXZARgp/vYv0U1FGAYu9H5lnqTmYkRXe1bbf9enUvizERbM4CW 90pisRlzzjJ/upWi5AJL0jKiknQwSven4ZyG2mLlY56XBCHX/lZB/4bRjD4vmXR4NfEUgb pxl5hNlO5kD3o5DAVgsW/3P0P4Qsblym2GB9jQHP7cbrqAotTS6mP+wcZHhuRpKgCX8kOM qMZtLjCVnP54kI5gJs780E0WYBluZ7u1RK9pqiilUkpVS43c41rb5kBBeOGvDq7yTRERcJ MaJhDfWOFQhZXcS7SfL4y0uqn2QbYBLHbpUlRSAkLLvDHBN95QPYIAEo4Yjzhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RT9vH6YVWzZTl; Sun, 20 Aug 2023 09:54:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37K9spAt081466; Sun, 20 Aug 2023 09:54:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37K9spLY081463; Sun, 20 Aug 2023 09:54:51 GMT (envelope-from git) Date: Sun, 20 Aug 2023 09:54:51 GMT Message-Id: <202308200954.37K9spLY081463@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 62aa7ab939ea - main - Add plug and play information macro for SPI bus. 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62aa7ab939ea0f9187336ea5f91b954da0cbd4c7 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=62aa7ab939ea0f9187336ea5f91b954da0cbd4c7 commit 62aa7ab939ea0f9187336ea5f91b954da0cbd4c7 Author: Vladimir Kondratyev AuthorDate: 2023-08-20 09:53:32 +0000 Commit: Vladimir Kondratyev CommitDate: 2023-08-20 09:53:32 +0000 Add plug and play information macro for SPI bus. Matching table format is compatible with ACPI_ID_PROBE bus method. --- sys/dev/spibus/spi.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/spibus/spi.h b/sys/dev/spibus/spi.h index 7b0d376f0bcf..bc26f5c6157a 100644 --- a/sys/dev/spibus/spi.h +++ b/sys/dev/spibus/spi.h @@ -46,3 +46,9 @@ struct spi_command { #else #define SPIBUS_FDT_PNP_INFO(t) #endif + +#ifdef DEV_ACPI +#define SPIBUS_ACPI_PNP_INFO(t) ACPICOMPAT_PNP_INFO(t, spibus) +#else +#define SPIBUS_ACPI_PNP_INFO(t) +#endif