Oops; PCIC_INTR_ENABLE does something *very* different.

This commit is contained in:
mycroft 1999-02-19 03:14:00 +00:00
parent 58d4d7e933
commit 28bc4dfeca
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82365.c,v 1.22 1999/02/19 00:27:45 mycroft Exp $ */
/* $NetBSD: i82365.c,v 1.23 1999/02/19 03:14:00 mycroft Exp $ */
#define PCICDEBUG
@ -1316,11 +1316,11 @@ pcic_chip_socket_enable(pch)
cardtype = pcmcia_card_gettype(h->pcmcia);
reg = pcic_read(h, PCIC_INTR);
reg &= ~PCIC_INTR_CARDTYPE_MASK;
reg &= ~(PCIC_INTR_CARDTYPE_MASK | PCIC_INTR_IRQ_MASK | PCIC_INTR_ENABLE);
reg |= ((cardtype == PCMCIA_IFTYPE_IO) ?
PCIC_INTR_CARDTYPE_IO :
PCIC_INTR_CARDTYPE_MEM);
reg |= h->ih_irq | PCIC_INTR_ENABLE;
reg |= h->ih_irq;
pcic_write(h, PCIC_INTR, reg);
DPRINTF(("%s: pcic_chip_socket_enable %02x cardtype %s %02x\n",

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82365_isasubr.c,v 1.2 1999/02/18 23:41:40 mycroft Exp $ */
/* $NetBSD: i82365_isasubr.c,v 1.3 1999/02/19 03:14:01 mycroft Exp $ */
#define PCICISADEBUG
@ -237,8 +237,8 @@ pcic_isa_chip_intr_establish(pch, pf, ipl, fct, arg)
return (NULL);
reg = pcic_read(h, PCIC_INTR);
reg &= ~PCIC_INTR_IRQ_MASK;
reg |= irq | PCIC_INTR_ENABLE;
reg &= ~(PCIC_INTR_IRQ_MASK | PCIC_INTR_ENABLE);
reg |= irq;
pcic_write(h, PCIC_INTR, reg);
h->ih_irq = irq;