Date: Thu, 14 Jun 2018 17:20:47 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335158 - head/sys/dev/spibus Message-ID: <201806141720.w5EHKlRJ094530@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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]));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806141720.w5EHKlRJ094530>