git: 62aa7ab939ea - main - Add plug and play information macro for SPI bus.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Aug 2023 09:54:51 UTC
The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=62aa7ab939ea0f9187336ea5f91b954da0cbd4c7 commit 62aa7ab939ea0f9187336ea5f91b954da0cbd4c7 Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2023-08-20 09:53:32 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> 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