mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 02:50:25 +03:00
[pci] Use single "busdevfn" field in struct pci_device
Merge the "bus" and "devfn" fields into a single "busdevfn" field, to match the format used by the majority of external code. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -34,8 +34,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
* @v where Location within PCI configuration space
|
||||
*/
|
||||
void pcidirect_prepare ( struct pci_device *pci, int where ) {
|
||||
outl ( ( 0x80000000 | ( pci->bus << 16 ) | ( pci->devfn << 8 ) |
|
||||
( where & ~3 ) ), PCIDIRECT_CONFIG_ADDRESS );
|
||||
outl ( ( 0x80000000 | ( pci->busdevfn << 8 ) | ( where & ~3 ) ),
|
||||
PCIDIRECT_CONFIG_ADDRESS );
|
||||
}
|
||||
|
||||
PROVIDE_PCIAPI_INLINE ( direct, pci_max_bus );
|
||||
|
||||
Reference in New Issue
Block a user