Browse Source

Kill off now-redundant _irq() methods.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
ca4bd3e24e
2 changed files with 0 additions and 51 deletions
  1. 0
    23
      src/drivers/net/pnic.c
  2. 0
    28
      src/drivers/net/rtl8139.c

+ 0
- 23
src/drivers/net/pnic.c View File

@@ -160,29 +160,6 @@ static int pnic_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
160 160
 	return 0;
161 161
 }
162 162
 
163
-/**************************************************************************
164
-IRQ - Handle card interrupt status
165
-***************************************************************************/
166
-#if 0
167
-static void pnic_irq ( struct net_device *netdev, irq_action_t action ) {
168
-	struct pnic *pnic = netdev->priv;
169
-	uint8_t enabled;
170
-
171
-	switch ( action ) {
172
-	case DISABLE :
173
-	case ENABLE :
174
-		enabled = ( action == ENABLE ? 1 : 0 );
175
-		pnic_command ( pnic, PNIC_CMD_MASK_IRQ,
176
-			       &enabled, sizeof ( enabled ), NULL, 0, NULL );
177
-		break;
178
-	case FORCE :
179
-		pnic_command ( pnic, PNIC_CMD_FORCE_IRQ,
180
-			       NULL, 0, NULL, 0, NULL );
181
-		break;
182
-	}
183
-}
184
-#endif
185
-
186 163
 /**************************************************************************
187 164
 OPEN - Open network device
188 165
 ***************************************************************************/

+ 0
- 28
src/drivers/net/rtl8139.c View File

@@ -471,34 +471,6 @@ static void rtl_poll ( struct net_device *netdev, unsigned int rx_quota ) {
471 471
 	}
472 472
 }
473 473
 
474
-#if 0
475
-static void rtl_irq(struct nic *nic, irq_action_t action)
476
-{
477
-	unsigned int mask;
478
-	/* Bit of a guess as to which interrupts we should allow */
479
-	unsigned int interested = ROK | RER | RXOVW | FOVW | SERR;
480
-
481
-	switch ( action ) {
482
-	case DISABLE :
483
-	case ENABLE :
484
-		mask = inw(rtl->ioaddr + IntrMask);
485
-		mask = mask & ~interested;
486
-		if ( action == ENABLE ) mask = mask | interested;
487
-		outw(mask, rtl->ioaddr + IntrMask);
488
-		break;
489
-	case FORCE :
490
-		/* Apparently writing a 1 to this read-only bit of a
491
-		 * read-only and otherwise unrelated register will
492
-		 * force an interrupt.  If you ever want to see how
493
-		 * not to write a datasheet, read the one for the
494
-		 * RTL8139...
495
-		 */
496
-		outb(EROK, rtl->ioaddr + RxEarlyStatus);
497
-		break;
498
-	}
499
-}
500
-#endif
501
-
502 474
 /**
503 475
  * Probe PCI device
504 476
  *

Loading…
Cancel
Save