summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2011-01-25 15:18:15 +0100
committerMichael Brown2011-01-25 15:18:15 +0100
commit025b1cb3f8d37ee84902ab268bc639a795f7c467 (patch)
tree8811be397995e090133e561c6b8aa54ce8695b76 /src/arch
parent[netdevice] Allow devices to indicate that interrupts are not supported (diff)
downloadipxe-025b1cb3f8d37ee84902ab268bc639a795f7c467.tar.gz
ipxe-025b1cb3f8d37ee84902ab268bc639a795f7c467.tar.xz
ipxe-025b1cb3f8d37ee84902ab268bc639a795f7c467.zip
[pxe] Report SUPPORTED_IRQ only if device supports interrupts
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/interface/pxe/pxe_undi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/i386/interface/pxe/pxe_undi.c b/src/arch/i386/interface/pxe/pxe_undi.c
index eb54417cb..afbc1799f 100644
--- a/src/arch/i386/interface/pxe/pxe_undi.c
+++ b/src/arch/i386/interface/pxe/pxe_undi.c
@@ -615,7 +615,9 @@ PXENV_EXIT_t pxenv_undi_get_iface_info ( struct s_PXENV_UNDI_GET_IFACE_INFO
undi_get_iface_info->ServiceFlags =
( SUPPORTED_BROADCAST | SUPPORTED_MULTICAST |
SUPPORTED_SET_STATION_ADDRESS | SUPPORTED_RESET |
- SUPPORTED_OPEN_CLOSE | SUPPORTED_IRQ );
+ SUPPORTED_OPEN_CLOSE );
+ if ( netdev_irq_supported ( pxe_netdev ) )
+ undi_get_iface_info->ServiceFlags |= SUPPORTED_IRQ;
memset ( undi_get_iface_info->Reserved, 0,
sizeof(undi_get_iface_info->Reserved) );