|
NAMEMODULE_PNP_INFO —
register plug and play information for device matching
SYNOPSIS#include <sys/module.h>
DESCRIPTIONTheMODULE_PNP_INFO () macro registers a
table of device-identifying data for use by
devmatch(8).
Since it is built off module marking macros, it must follow a
DRIVER_MODULE(9)
line.
The macro takes a descriptor_string that describes the memory layout of table entries. The string is a series of members separated by semi-colons. Members are identified by a type and a name. They are encoded in the descriptor string by concatenating the type with a colon, followed by the name. (The special type W32 represents two members. The first name is encoded like any other type. The second name is encoded by appending a forward slash and the second name after the first.) Types are one of the following:
The pseudo-name “#” is reserved for fields that should be ignored. Any member that does not match the parent device's pnpinfo output must be ignored. The bus parameter is an unquoted word naming the parent bus of the driver. For example, “pci”. The module parameter is also an unquoted word. It must be unique to the driver. Usually the driver's name is used. The table parameter points to the device matching data with entries matching the descriptor_string. The num_entries parameter is the number of
entries in the table, i.e.,
‘ EXAMPLES
BUGSTheMODULE_PNP_INFO macro must follow
DRIVER_MODULE invocations due to limitations in the
linker.hints file format.
SEE ALSOdevmatch(8), DRIVER_MODULE(9), module(9)HISTORYThe macroMODULE_PNP_INFO appeared in
FreeBSD 11.0.
AUTHORSThe PNP framework and devmatch(8) utility were written by Warner Losh <imp@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |