mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 01:52:08 +03:00
[pxe] Report an IRQ number only if device supports interrupts
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -420,7 +420,8 @@ PXENV_EXIT_t pxenv_undi_get_information ( struct s_PXENV_UNDI_GET_INFORMATION
|
|||||||
DBG ( "PXENV_UNDI_GET_INFORMATION" );
|
DBG ( "PXENV_UNDI_GET_INFORMATION" );
|
||||||
|
|
||||||
undi_get_information->BaseIo = dev->desc.ioaddr;
|
undi_get_information->BaseIo = dev->desc.ioaddr;
|
||||||
undi_get_information->IntNumber = dev->desc.irq;
|
undi_get_information->IntNumber =
|
||||||
|
( netdev_irq_supported ( pxe_netdev ) ? dev->desc.irq : 0 );
|
||||||
/* Cheat: assume all cards can cope with this */
|
/* Cheat: assume all cards can cope with this */
|
||||||
undi_get_information->MaxTranUnit = ETH_MAX_MTU;
|
undi_get_information->MaxTranUnit = ETH_MAX_MTU;
|
||||||
undi_get_information->HwType = ntohs ( ll_protocol->ll_proto );
|
undi_get_information->HwType = ntohs ( ll_protocol->ll_proto );
|
||||||
|
|||||||
Reference in New Issue
Block a user