Skip to content
Commit 1d5d9e9f authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 7d7ddfc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment