aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/module.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-09-27 19:21:52 +0000
committerWarner Losh <imp@FreeBSD.org>2017-09-27 19:21:52 +0000
commit4af7ac3c13d68556b7d69181e1a91b27f0544629 (patch)
treec4dcfdd0b246412d4ac4d9dc9c30d3684212bdbb /sys/sys/module.h
parent683d1dddf78f3d5fd2a9dd3016d2ad86cb5bf2d8 (diff)
downloadsrc-4af7ac3c13d68556b7d69181e1a91b27f0544629.tar.gz
src-4af7ac3c13d68556b7d69181e1a91b27f0544629.zip
Improve description of the PNP string a bit.
Notes
Notes: svn path=/head/; revision=324068
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r--sys/sys/module.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/module.h b/sys/sys/module.h
index 5a268fc11d7e..754716114ac0 100644
--- a/sys/sys/module.h
+++ b/sys/sys/module.h
@@ -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;