Ver código fonte

irq still not working will have to remove it

tags/v0.9.3
Udayan Kumar 18 anos atrás
pai
commit
a86b12728a
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10
    0
      src/drivers/net/natsemi.c

+ 10
- 0
src/drivers/net/natsemi.c Ver arquivo

@@ -63,6 +63,7 @@
63 63
 
64 64
 
65 65
 #include <stdint.h>
66
+#include <pic8259.h>
66 67
 #include <stdlib.h>
67 68
 #include <stdio.h>
68 69
 #include <io.h>
@@ -617,6 +618,15 @@ static int nat_probe ( struct pci_device *pci,
617 618
 	memset ( nat, 0, sizeof ( *nat ) );
618 619
 	nat->ioaddr = pci->ioaddr;
619 620
 
621
+	/* getting the IRQ vector */
622
+	unsigned long vector_phys = IRQ_INT ( pci->irq ) * 4;
623
+	DBG_HDA ( vector_phys, phys_to_virt ( vector_phys ), 4 );
624
+	DBG_HD ( phys_to_virt ( 0xfaea5 ), 64 );
625
+	DBG (" PIC state %X\n", irq_enabled(pci->irq));
626
+	DBG (" IRQ Number %X\n",pci->irq);
627
+
628
+
629
+
620 630
 	/* Reset the NIC, set up EEPROM access and read MAC address */
621 631
 	nat_reset ( nat );
622 632
 	nat_init_eeprom ( nat );

Carregando…
Cancelar
Salvar