mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 15:21:32 +00:00
irq still not working will have to remove it
This commit is contained in:
parent
2383a070d8
commit
a86b12728a
@ -63,6 +63,7 @@
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
#include <pic8259.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <io.h>
|
||||
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user