Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 2017 19:21:52 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324068 - head/sys/sys
Message-ID:  <201709271921.v8RJLqFt012169@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Sep 27 19:21:52 2017
New Revision: 324068
URL: https://svnweb.freebsd.org/changeset/base/324068

Log:
  Improve description of the PNP string a bit.

Modified:
  head/sys/sys/module.h

Modified: head/sys/sys/module.h
==============================================================================
--- head/sys/sys/module.h	Wed Sep 27 19:14:00 2017	(r324067)
+++ head/sys/sys/module.h	Wed Sep 27 19:21:52 2017	(r324068)
@@ -183,7 +183,7 @@ struct mod_pnp_match_info 
 	    &_module_pnp_##b##_##unique, #b);
 /**
  * descr is a string that describes each entry in the table. The general
- * form is (TYPE:pnp_name[/pnp_name];)*
+ * form is the grammar (TYPE:pnp_name[/pnp_name];)*
  * where TYPE is one of the following:
  *	U8	uint8_t element
  *	V8	like U8 and 0xff means match any
@@ -196,12 +196,14 @@ struct mod_pnp_match_info 
  *	V32	like U32 and 0xffffffff means match any
  *	W32	Two 16-bit values with first pnp_name in LSW and second in MSW.
  *	Z	pointer to a string to match exactly
- *	D	like Z, but is the string passed to device_set_descr()
+ *	D	pointer to a string to human readable description for device
  *	P	A pointer that should be ignored
  *	E	EISA PNP Identifier (in binary, but bus publishes string)
  *	K	Key for whole table. pnp_name=value. must be last, if present.
  *
  * The pnp_name "#" is reserved for other fields that should be ignored.
+ * Otherwise pnp_name must match the name from the parent device's pnpinfo
+ * output. The second pnp_name is used for the W32 type.
  */
 
 extern struct sx modules_sx;



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