Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2017 18:56:27 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325060 - head/sys/sys
Message-ID:  <201710281856.v9SIuRIJ009139@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sat Oct 28 18:56:27 2017
New Revision: 325060
URL: https://svnweb.freebsd.org/changeset/base/325060

Log:
  Add a #define RESOURCE_SPEC_END.  Similar to DEVMETHOD_END and
  KOBJMETHOD_END, this is to serve as the end marker in an array of
  resource_spec structures.

Modified:
  head/sys/sys/bus.h

Modified: head/sys/sys/bus.h
==============================================================================
--- head/sys/sys/bus.h	Sat Oct 28 18:54:45 2017	(r325059)
+++ head/sys/sys/bus.h	Sat Oct 28 18:56:27 2017	(r325060)
@@ -491,6 +491,7 @@ struct resource_spec {
 	int	rid;
 	int	flags;
 };
+#define	RESOURCE_SPEC_END	{-1, 0, 0}
 
 int	bus_alloc_resources(device_t dev, struct resource_spec *rs,
 			    struct resource **res);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710281856.v9SIuRIJ009139>