Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2018 20:52:30 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r327637 - stable/11/sys/sys
Message-ID:  <201801062052.w06KqUDd041938@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sat Jan  6 20:52:30 2018
New Revision: 327637
URL: https://svnweb.freebsd.org/changeset/base/327637

Log:
  MFC r325060:
  
  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:
  stable/11/sys/sys/bus.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/sys/bus.h
==============================================================================
--- stable/11/sys/sys/bus.h	Sat Jan  6 20:32:14 2018	(r327636)
+++ stable/11/sys/sys/bus.h	Sat Jan  6 20:52:30 2018	(r327637)
@@ -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?201801062052.w06KqUDd041938>