summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/rtl8139.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-03 16:37:56 +0200
committerMichael Brown2007-07-03 16:37:56 +0200
commitca4bd3e24e52192807dd538430809d0fbd79800d (patch)
tree34da19601fe94a0d8e0d3a2221c1743fda6b4f2b /src/drivers/net/rtl8139.c
parentKill off PXENV_UNDI_FORCE_INTERRUPT support; we have no reason to (diff)
downloadipxe-ca4bd3e24e52192807dd538430809d0fbd79800d.tar.gz
ipxe-ca4bd3e24e52192807dd538430809d0fbd79800d.tar.xz
ipxe-ca4bd3e24e52192807dd538430809d0fbd79800d.zip
Kill off now-redundant _irq() methods.
Diffstat (limited to 'src/drivers/net/rtl8139.c')
-rw-r--r--src/drivers/net/rtl8139.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/drivers/net/rtl8139.c b/src/drivers/net/rtl8139.c
index 06d40aaa..90a7182b 100644
--- a/src/drivers/net/rtl8139.c
+++ b/src/drivers/net/rtl8139.c
@@ -471,34 +471,6 @@ static void rtl_poll ( struct net_device *netdev, unsigned int rx_quota ) {
}
}
-#if 0
-static void rtl_irq(struct nic *nic, irq_action_t action)
-{
- unsigned int mask;
- /* Bit of a guess as to which interrupts we should allow */
- unsigned int interested = ROK | RER | RXOVW | FOVW | SERR;
-
- switch ( action ) {
- case DISABLE :
- case ENABLE :
- mask = inw(rtl->ioaddr + IntrMask);
- mask = mask & ~interested;
- if ( action == ENABLE ) mask = mask | interested;
- outw(mask, rtl->ioaddr + IntrMask);
- break;
- case FORCE :
- /* Apparently writing a 1 to this read-only bit of a
- * read-only and otherwise unrelated register will
- * force an interrupt. If you ever want to see how
- * not to write a datasheet, read the one for the
- * RTL8139...
- */
- outb(EROK, rtl->ioaddr + RxEarlyStatus);
- break;
- }
-}
-#endif
-
/**
* Probe PCI device
*