mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-04 20:06:30 +02:00
[undi] Drag in PCI-specific configuration
The undionly.kpxe binary does not need the full PCI bus support. However, the overwhelming majority of UNDI devices are PCI-based and we already end up dragging in PCI configuration space support in order to be able to test for devices with broken interrupts. Dragging in the PCI configuration allows the PCI settings mechanism to also be present, which is often useful for end users. The total cost is around 200 bytes in the final binary, which is acceptable for a generally very useful feature. Users wanting to minimise the binary size can choose to explicitly disable PCI_SETTINGS via config/settings.h. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
88d396719d
commit
7b3eb3c86a
@ -1126,3 +1126,21 @@ void undinet_remove ( struct undi_device *undi ) {
|
||||
|
||||
DBGC ( undinic, "UNDINIC %p removed\n", undinic );
|
||||
}
|
||||
|
||||
/* Drag in objects via undinet_probe() */
|
||||
REQUIRING_SYMBOL ( undinet_probe );
|
||||
|
||||
/* Drag in PCI configuration
|
||||
*
|
||||
* We don't need the full PCI bus support. However, the overwhelming
|
||||
* majority of UNDI devices are PCI-based and we already end up
|
||||
* dragging in PCI configuration space support in order to be able to
|
||||
* test for devices with broken interrupts.
|
||||
*
|
||||
* Dragging in the PCI configuration allows the PCI settings mechanism
|
||||
* to also be present, which is often useful for end users. The total
|
||||
* cost is around 200 bytes in the final binary, which is acceptable
|
||||
* for a generally very useful feature. Users wanting to minimise the
|
||||
* binary size can choose to explicitly disable PCI_SETTINGS.
|
||||
*/
|
||||
REQUIRE_OBJECT ( config_pci );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user