mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 17:41:18 +03:00
Added PCI_BASE_CLASS() macro
This commit is contained in:
@@ -311,6 +311,8 @@ struct pci_driver {
|
|||||||
#define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f )
|
#define PCI_SLOT( devfn ) ( ( (devfn) >> 3 ) & 0x1f )
|
||||||
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
|
#define PCI_FUNC( devfn ) ( (devfn) & 0x07 )
|
||||||
|
|
||||||
|
#define PCI_BASE_CLASS( class ) ( (class) >> 16 )
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PCI_ROM is used to build up entries in a struct pci_id array. It
|
* PCI_ROM is used to build up entries in a struct pci_id array. It
|
||||||
* is also parsed by parserom.pl to generate Makefile rules and files
|
* is also parsed by parserom.pl to generate Makefile rules and files
|
||||||
|
|||||||
Reference in New Issue
Block a user