From: Udayan Kumar Date: Thu, 5 Jul 2007 12:38:37 +0000 (-0400) Subject: irq still not working will have to remove it X-Git-Tag: v0.9.3~200^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a86b12728addc64f9a1e01907e95eb0884e8e4fe;p=thirdparty%2Fipxe.git irq still not working will have to remove it --- diff --git a/src/drivers/net/natsemi.c b/src/drivers/net/natsemi.c index 26691b418..c4aa2398a 100644 --- a/src/drivers/net/natsemi.c +++ b/src/drivers/net/natsemi.c @@ -63,6 +63,7 @@ #include +#include #include #include #include @@ -617,6 +618,15 @@ static int nat_probe ( struct pci_device *pci, memset ( nat, 0, sizeof ( *nat ) ); nat->ioaddr = pci->ioaddr; + /* getting the IRQ vector */ + unsigned long vector_phys = IRQ_INT ( pci->irq ) * 4; + DBG_HDA ( vector_phys, phys_to_virt ( vector_phys ), 4 ); + DBG_HD ( phys_to_virt ( 0xfaea5 ), 64 ); + DBG (" PIC state %X\n", irq_enabled(pci->irq)); + DBG (" IRQ Number %X\n",pci->irq); + + + /* Reset the NIC, set up EEPROM access and read MAC address */ nat_reset ( nat ); nat_init_eeprom ( nat );