diff --git a/src/drivers/net/pnic.c b/src/drivers/net/pnic.c index 63b4195f..f614a073 100644 --- a/src/drivers/net/pnic.c +++ b/src/drivers/net/pnic.c @@ -160,29 +160,6 @@ static int pnic_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) return 0; } -/************************************************************************** -IRQ - Handle card interrupt status -***************************************************************************/ -#if 0 -static void pnic_irq ( struct net_device *netdev, irq_action_t action ) { - struct pnic *pnic = netdev->priv; - uint8_t enabled; - - switch ( action ) { - case DISABLE : - case ENABLE : - enabled = ( action == ENABLE ? 1 : 0 ); - pnic_command ( pnic, PNIC_CMD_MASK_IRQ, - &enabled, sizeof ( enabled ), NULL, 0, NULL ); - break; - case FORCE : - pnic_command ( pnic, PNIC_CMD_FORCE_IRQ, - NULL, 0, NULL, 0, NULL ); - break; - } -} -#endif - /************************************************************************** OPEN - Open network device ***************************************************************************/ 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 *