svn commit: r335158 - head/sys/dev/spibus

Emmanuel Vadot manu at FreeBSD.org
Thu Jun 14 17:20:48 UTC 2018


Author: manu
Date: Thu Jun 14 17:20:47 2018
New Revision: 335158
URL: https://svnweb.freebsd.org/changeset/base/335158

Log:
  spi: Add SPIBUS_PNP_INFO macro
  
  The PNP info string is the same as the SIMPLEBUS one but driver should
  depend on spibus and not simplebus

Modified:
  head/sys/dev/spibus/spi.h

Modified: head/sys/dev/spibus/spi.h
==============================================================================
--- head/sys/dev/spibus/spi.h	Thu Jun 14 17:19:44 2018	(r335157)
+++ head/sys/dev/spibus/spi.h	Thu Jun 14 17:20:47 2018	(r335158)
@@ -40,3 +40,7 @@ struct spi_command {
 #define	SPI_COMMAND_INITIALIZER	{ 0 }
 
 #define	SPI_CHIP_SELECT_HIGH	0x1		/* Chip select high (else low) */
+
+#define SPIBUS_PNP_DESCR "Z:compat;P:#;"
+#define SPIBUS_PNP_INFO(t) \
+	MODULE_PNP_INFO(SPIBUS_PNP_DESCR, spibus, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0]));


More information about the svn-src-all mailing list