svn commit: r40837 - in head/en_US.ISO8859-1/books/arch-handbook: isa pci

Warren Block wblock at FreeBSD.org
Wed Jan 30 21:59:25 UTC 2013


Author: wblock
Date: Wed Jan 30 21:59:25 2013
New Revision: 40837
URL: http://svnweb.freebsd.org/changeset/doc/40837

Log:
  Replace "{ 0, 0 }" with "DEVMETHOD_END" in isa and pci sample drivers.
  
  Submitted by:	sbz

Modified:
  head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml
  head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml

Modified: head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml	Wed Jan 30 21:17:46 2013	(r40836)
+++ head/en_US.ISO8859-1/books/arch-handbook/isa/chapter.xml	Wed Jan 30 21:59:25 2013	(r40837)
@@ -146,7 +146,7 @@
         DEVMETHOD(device_suspend,   xxx_isa_suspend),
         DEVMETHOD(device_resume,    xxx_isa_resume),
 
-	{ 0, 0 }
+	DEVMETHOD_END
     };
 
     static driver_t xxx_isa_driver = {

Modified: head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml	Wed Jan 30 21:17:46 2013	(r40836)
+++ head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml	Wed Jan 30 21:59:25 2013	(r40837)
@@ -37,7 +37,7 @@
 #include <sys/conf.h>		/* cdevsw struct */
 #include <sys/uio.h>		/* uio struct */
 #include <sys/malloc.h>
-#include <sys/bus.h>		/* structs, prototypes for pci bus stuff */
+#include <sys/bus.h>		/* structs, prototypes for pci bus stuff and DEVMETHOD macros! */
 
 #include <machine/bus.h>
 #include <sys/rman.h>
@@ -221,7 +221,7 @@ static device_method_t mypci_methods[] =
 	DEVMETHOD(device_suspend,	mypci_suspend),
 	DEVMETHOD(device_resume,	mypci_resume),
 
-	{ 0, 0 }
+	DEVMETHOD_END
 };
 
 static devclass_t mypci_devclass;


More information about the svn-doc-head mailing list