summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2022-01-17 16:38:38 +0100
committerTom Rini <[email protected]>2022-01-28 17:58:41 -0500
commit39320935cc5a0544768ff6a0e1143313355c6b4d (patch)
tree30b21828f9e037728fa0cc99b3817ead97049b48 /doc/develop
parent8c303bc6e04166db8dce74dbf6b1e46dd9422c47 (diff)
pci: Extend 'pci regions' command with bus number
'pci regions' currently prints only region information from bus 0 which belongs to controller 0. Parser for 'pci regions' cmdline currently ignores any additional arguments and so U-Boot always uses bus 0. Regions are stored in controller (not on the bus) and therefore to retrieve controller from the bus, it is needed to call pci_get_controller() which returns root bus. Because bus 0 is root bus, current code worked fine for controller 0. Extend cmdline parser for 'pci regions' to allows specifying bus number, extend pci_show_regions() code to accept also non-zero bus number and print bus ranges for which is regions configuration assigned. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions