]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r348194, r348196, r348204, r348207: loader/fdt pnpmatch
authorKyle Evans <kevans@FreeBSD.org>
Thu, 24 Oct 2019 03:04:36 +0000 (03:04 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 24 Oct 2019 03:04:36 +0000 (03:04 +0000)
commit430ca4f2240df7bd8b368e39fdcae69d1068869d
treebbab53c1abb335d7b545e4025a8fdd02636258bd
parentd70c1f79ed30a35c45e7229114803a92104fd5bf
MFC r348194, r348196, r348204, r348207: loader/fdt pnpmatch

r348194:
loader: Add pnp functions for autoloading modules based on linker.hints

This adds some new commands to loader :

- pnpmatch
   This takes a pnpinfo string as argument and tries to find a kernel module
   associated with it. -v and -d option are available and are the same as in
   devmatch (v is verbose, d dumps the hints).
- pnpload
   This takes a pnpinfo string as argument and tries to load a kernel module
   associated with it.
- pnpautoload
   This will attempt to load every kernel module for each buses. Each buses are
   probed, the probe function will generate pnpinfo string and load kernel module
   associated with it if it exists.

Only simplebus for FDT system is implemented for now.
Since we need the dtb and overlays to be applied before searching the tree
fdt_devmatch_next will load and apply the dtb + overlays.

All the pnp parsing code comes from devmatch and is the same at 99%.

r348196:
loader: Remove unused variable

r348204:
Remove yet another unused variable.

r348207:
Initialize a variable to fix build with GCC.
stand/common/module.c
stand/fdt/fdt_loader_cmd.c
stand/fdt/fdt_platform.h