From inspection, ISA interrupts were completely broken..

revert some of the old ISA code.
(I can't test this but I'm working on the file.)
This commit is contained in:
Julian Elischer 1999-01-18 07:55:02 +00:00
parent f9ed7e775f
commit 0fe90303e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42794
3 changed files with 60 additions and 3 deletions

View file

@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_sr.c,v 1.17 1998/12/16 18:42:38 phk Exp $
* $Id: if_sr.c,v 1.18 1999/01/12 01:17:00 eivind Exp $
*/
/*
@ -269,6 +269,7 @@ struct sr_hardc *srattach_pci(int unit, vm_offset_t plx_vaddr,
vm_offset_t sca_vaddr);
void srintr_hc(struct sr_hardc *hc);
static ointhand2_t srintr;
static int srattach(struct sr_hardc *hc);
static void sr_xmit(struct sr_softc *sc);
static void srstart(struct ifnet *ifp);
@ -571,6 +572,8 @@ srattach_isa(struct isa_device *id)
u_char mar;
struct sr_hardc *hc = &sr_hardc[id->id_unit];
id->id_ointr = srintr;
outb(hc->iobase + SR_PCR, inb(hc->iobase + SR_PCR) | SR_PCR_SCARUN);
outb(hc->iobase + SR_PSR, inb(hc->iobase + SR_PSR) | SR_PSR_EN_SCA_DMA);
outb(hc->iobase + SR_MCR,
@ -856,6 +859,22 @@ srattach(struct sr_hardc *hc)
return 1;
}
/*
* Get the ISA interrupts
*/
void
srintr(void * cookie)
{
struct sr_hardc *hc;
hc = &sr_hardc[unit];
srintr_hc(hc);
return;
}
/*
* PCI interrupts come straight here
*/
void
srintr_hc(struct sr_hardc *hc)
{

View file

@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_sr.c,v 1.17 1998/12/16 18:42:38 phk Exp $
* $Id: if_sr.c,v 1.18 1999/01/12 01:17:00 eivind Exp $
*/
/*
@ -269,6 +269,7 @@ struct sr_hardc *srattach_pci(int unit, vm_offset_t plx_vaddr,
vm_offset_t sca_vaddr);
void srintr_hc(struct sr_hardc *hc);
static ointhand2_t srintr;
static int srattach(struct sr_hardc *hc);
static void sr_xmit(struct sr_softc *sc);
static void srstart(struct ifnet *ifp);
@ -571,6 +572,8 @@ srattach_isa(struct isa_device *id)
u_char mar;
struct sr_hardc *hc = &sr_hardc[id->id_unit];
id->id_ointr = srintr;
outb(hc->iobase + SR_PCR, inb(hc->iobase + SR_PCR) | SR_PCR_SCARUN);
outb(hc->iobase + SR_PSR, inb(hc->iobase + SR_PSR) | SR_PSR_EN_SCA_DMA);
outb(hc->iobase + SR_MCR,
@ -856,6 +859,22 @@ srattach(struct sr_hardc *hc)
return 1;
}
/*
* Get the ISA interrupts
*/
void
srintr(void * cookie)
{
struct sr_hardc *hc;
hc = &sr_hardc[unit];
srintr_hc(hc);
return;
}
/*
* PCI interrupts come straight here
*/
void
srintr_hc(struct sr_hardc *hc)
{

View file

@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_sr.c,v 1.17 1998/12/16 18:42:38 phk Exp $
* $Id: if_sr.c,v 1.18 1999/01/12 01:17:00 eivind Exp $
*/
/*
@ -269,6 +269,7 @@ struct sr_hardc *srattach_pci(int unit, vm_offset_t plx_vaddr,
vm_offset_t sca_vaddr);
void srintr_hc(struct sr_hardc *hc);
static ointhand2_t srintr;
static int srattach(struct sr_hardc *hc);
static void sr_xmit(struct sr_softc *sc);
static void srstart(struct ifnet *ifp);
@ -571,6 +572,8 @@ srattach_isa(struct isa_device *id)
u_char mar;
struct sr_hardc *hc = &sr_hardc[id->id_unit];
id->id_ointr = srintr;
outb(hc->iobase + SR_PCR, inb(hc->iobase + SR_PCR) | SR_PCR_SCARUN);
outb(hc->iobase + SR_PSR, inb(hc->iobase + SR_PSR) | SR_PSR_EN_SCA_DMA);
outb(hc->iobase + SR_MCR,
@ -856,6 +859,22 @@ srattach(struct sr_hardc *hc)
return 1;
}
/*
* Get the ISA interrupts
*/
void
srintr(void * cookie)
{
struct sr_hardc *hc;
hc = &sr_hardc[unit];
srintr_hc(hc);
return;
}
/*
* PCI interrupts come straight here
*/
void
srintr_hc(struct sr_hardc *hc)
{