]> git.baikalelectronics.ru Git - uboot.git/commit
pci: Add a macro to convert BDF from linux to U-Boot
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 14:32:59 +0000 (08:32 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 20:40:09 +0000 (16:40 -0400)
commit0811c54d11d2889cf4aec9983436383e96d54fae
treed7af1df10ef69c36e1b81da035fdb1cf5fcf9a61
parent8ac6c2db3119013cc61f0c4a3191c4852accbe70
pci: Add a macro to convert BDF from linux to U-Boot

U-Boot's BDF format has its bits in the same position as the device tree
PCI definition.

Some x86 devices use linux format in their register format and it is
useful to be able to convert to U-Boot format. Add a macro for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/pci.h