Преглед изворни кода

irq still not working will have to remove it

tags/v0.9.3
Udayan Kumar пре 18 година
родитељ
комит
a86b12728a
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10
    0
      src/drivers/net/natsemi.c

+ 10
- 0
src/drivers/net/natsemi.c Прегледај датотеку

63
 
63
 
64
 
64
 
65
 #include <stdint.h>
65
 #include <stdint.h>
66
+#include <pic8259.h>
66
 #include <stdlib.h>
67
 #include <stdlib.h>
67
 #include <stdio.h>
68
 #include <stdio.h>
68
 #include <io.h>
69
 #include <io.h>
617
 	memset ( nat, 0, sizeof ( *nat ) );
618
 	memset ( nat, 0, sizeof ( *nat ) );
618
 	nat->ioaddr = pci->ioaddr;
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
 	/* Reset the NIC, set up EEPROM access and read MAC address */
630
 	/* Reset the NIC, set up EEPROM access and read MAC address */
621
 	nat_reset ( nat );
631
 	nat_reset ( nat );
622
 	nat_init_eeprom ( nat );
632
 	nat_init_eeprom ( nat );

Loading…
Откажи
Сачувај