Got rid of the IRQ hacks for the BT-985D and the RTL8029AS because they are no longer needed, all the boards now give the cards IRQ's.
This commit is contained in:
@@ -255,7 +255,7 @@ nelog(int lvl, const char *fmt, ...)
|
|||||||
static void
|
static void
|
||||||
nic_interrupt(nic_t *dev, int set)
|
nic_interrupt(nic_t *dev, int set)
|
||||||
{
|
{
|
||||||
if (PCI && dev->is_pci) {
|
if ((PCI && dev->is_pci) && (dev->base_irq == 0xff)) {
|
||||||
if (set)
|
if (set)
|
||||||
pci_set_irq(dev->card, PCI_INTA);
|
pci_set_irq(dev->card, PCI_INTA);
|
||||||
else
|
else
|
||||||
@@ -1635,15 +1635,11 @@ nic_pci_write(int func, int addr, uint8_t val, void *priv)
|
|||||||
nic_update_bios(dev);
|
nic_update_bios(dev);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if 0
|
|
||||||
case 0x3C: /* PCI_ILR */
|
case 0x3C: /* PCI_ILR */
|
||||||
if (val != 0xFF) {
|
|
||||||
nelog(1, "%s: IRQ now: %i\n", dev->name, val);
|
nelog(1, "%s: IRQ now: %i\n", dev->name, val);
|
||||||
dev->base_irq = val;
|
dev->base_irq = val;
|
||||||
}
|
|
||||||
dev->pci_regs[addr] = dev->base_irq;
|
dev->pci_regs[addr] = dev->base_irq;
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1909,11 +1905,12 @@ nic_init(int board)
|
|||||||
|
|
||||||
if (dev->is_pci) {
|
if (dev->is_pci) {
|
||||||
dev->base_address = 0x340;
|
dev->base_address = 0x340;
|
||||||
|
dev->base_irq = 10;
|
||||||
} else {
|
} else {
|
||||||
dev->base_address = device_get_config_hex16("base");
|
dev->base_address = device_get_config_hex16("base");
|
||||||
dev->bios_addr = device_get_config_hex20("bios_addr");
|
dev->bios_addr = device_get_config_hex20("bios_addr");
|
||||||
}
|
|
||||||
dev->base_irq = device_get_config_int("irq");
|
dev->base_irq = device_get_config_int("irq");
|
||||||
|
}
|
||||||
|
|
||||||
/* See if we have a local MAC address configured. */
|
/* See if we have a local MAC address configured. */
|
||||||
mac = device_get_config_mac("mac", -1);
|
mac = device_get_config_mac("mac", -1);
|
||||||
@@ -2220,29 +2217,6 @@ static device_config_t ne2000_config[] =
|
|||||||
|
|
||||||
static device_config_t rtl8029as_config[] =
|
static device_config_t rtl8029as_config[] =
|
||||||
{
|
{
|
||||||
{
|
|
||||||
"irq", "IRQ", CONFIG_SELECTION, "", 10,
|
|
||||||
{
|
|
||||||
{
|
|
||||||
"IRQ 3", 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IRQ 5", 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IRQ 7", 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IRQ 10", 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"IRQ 11", 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
#if 1
|
#if 1
|
||||||
/*
|
/*
|
||||||
* WTF.
|
* WTF.
|
||||||
|
|||||||
@@ -534,10 +534,8 @@ BuslogicLog(const char *format, ...)
|
|||||||
static void
|
static void
|
||||||
BuslogicInterrupt(Buslogic_t *bl, int set)
|
BuslogicInterrupt(Buslogic_t *bl, int set)
|
||||||
{
|
{
|
||||||
#if 0
|
if ((bl->chip != CHIP_BUSLOGIC_PCI) || (bl->Irq != 255))
|
||||||
if (bl->chip != CHIP_BUSLOGIC_PCI)
|
|
||||||
{
|
{
|
||||||
#endif
|
|
||||||
if (set)
|
if (set)
|
||||||
{
|
{
|
||||||
picint(1 << bl->Irq);
|
picint(1 << bl->Irq);
|
||||||
@@ -546,20 +544,18 @@ BuslogicInterrupt(Buslogic_t *bl, int set)
|
|||||||
{
|
{
|
||||||
picintc(1 << bl->Irq);
|
picintc(1 << bl->Irq);
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (set)
|
if (set)
|
||||||
{
|
{
|
||||||
pci_set_irq(bl->Card, PCI_INTD);
|
pci_set_irq(bl->Card, PCI_INTA);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pci_clear_irq(bl->Card, PCI_INTD);
|
pci_clear_irq(bl->Card, PCI_INTA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2134,7 +2130,7 @@ BuslogicPCIRead(int func, int addr, void *p)
|
|||||||
case 0x3C:
|
case 0x3C:
|
||||||
return bl->Irq;
|
return bl->Irq;
|
||||||
case 0x3D:
|
case 0x3D:
|
||||||
return 4;
|
return PCI_INTA;
|
||||||
}
|
}
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
@@ -2224,7 +2220,6 @@ BuslogicPCIWrite(int func, int addr, uint8_t val, void *p)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if 0
|
|
||||||
case 0x3C:
|
case 0x3C:
|
||||||
buslogic_pci_regs[addr] = val;
|
buslogic_pci_regs[addr] = val;
|
||||||
if (val != 0xFF) {
|
if (val != 0xFF) {
|
||||||
@@ -2232,7 +2227,6 @@ BuslogicPCIWrite(int func, int addr, uint8_t val, void *p)
|
|||||||
bl->Irq = val;
|
bl->Irq = val;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user