1998-03-26 21:17:13 +03:00
|
|
|
/* $NetBSD: dwlpx.c,v 1.15 1998/03/26 18:17:13 thorpej Exp $ */
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
/*
|
1997-03-13 00:09:43 +03:00
|
|
|
* Copyright (c) 1997 by Matthew Jacob
|
1997-03-12 22:19:54 +03:00
|
|
|
* NASA AMES Research Center.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice immediately at the beginning of the file, without modification,
|
|
|
|
* this list of conditions, and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
|
|
|
|
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
1997-04-08 03:39:37 +04:00
|
|
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
|
|
|
|
1998-03-26 21:17:13 +03:00
|
|
|
__KERNEL_RCSID(0, "$NetBSD: dwlpx.c,v 1.15 1998/03/26 18:17:13 thorpej Exp $");
|
1997-04-07 06:01:16 +04:00
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/kernel.h>
|
|
|
|
#include <sys/device.h>
|
1998-03-26 21:17:13 +03:00
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
#include <vm/vm.h>
|
|
|
|
|
|
|
|
#include <machine/autoconf.h>
|
1998-03-26 21:17:13 +03:00
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
#include <dev/pci/pcireg.h>
|
|
|
|
#include <dev/pci/pcivar.h>
|
1998-03-26 21:17:13 +03:00
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
#include <alpha/tlsb/tlsbreg.h>
|
|
|
|
#include <alpha/tlsb/kftxxvar.h>
|
|
|
|
#include <alpha/tlsb/kftxxreg.h>
|
|
|
|
#include <alpha/pci/dwlpxreg.h>
|
|
|
|
#include <alpha/pci/dwlpxvar.h>
|
|
|
|
#include <alpha/pci/pci_kn8ae.h>
|
|
|
|
|
|
|
|
#define KV(_addr) ((caddr_t)ALPHA_PHYS_TO_K0SEG((_addr)))
|
1998-03-23 09:38:10 +03:00
|
|
|
#define DWLPX_SYSBASE(sc) \
|
|
|
|
((((unsigned long)((sc)->dwlpx_node - 4)) << 36) | \
|
|
|
|
(((unsigned long) (sc)->dwlpx_hosenum) << 34) | \
|
|
|
|
(1LL << 39))
|
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
static int dwlpxmatch __P((struct device *, struct cfdata *, void *));
|
|
|
|
static void dwlpxattach __P((struct device *, struct device *, void *));
|
|
|
|
struct cfattach dwlpx_ca = {
|
|
|
|
sizeof(struct dwlpx_softc), dwlpxmatch, dwlpxattach
|
|
|
|
};
|
|
|
|
|
1998-01-12 13:21:02 +03:00
|
|
|
extern struct cfdriver dwlpx_cd;
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
static int dwlpxprint __P((void *, const char *));
|
1998-03-23 09:38:10 +03:00
|
|
|
static struct dwlpx_softc *dwlps[DWLPX_NIONODE][DWLPX_NHOSE];
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
static int
|
|
|
|
dwlpxprint(aux, pnp)
|
|
|
|
void *aux;
|
|
|
|
const char *pnp;
|
|
|
|
{
|
|
|
|
register struct pcibus_attach_args *pba = aux;
|
|
|
|
/* only PCIs can attach to DWLPX's; easy. */
|
|
|
|
if (pnp)
|
|
|
|
printf("%s at %s", pba->pba_busname, pnp);
|
|
|
|
printf(" bus %d", pba->pba_bus);
|
|
|
|
return (UNCONF);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
dwlpxmatch(parent, cf, aux)
|
|
|
|
struct device *parent;
|
|
|
|
struct cfdata *cf;
|
|
|
|
void *aux;
|
|
|
|
{
|
|
|
|
struct kft_dev_attach_args *ka = aux;
|
|
|
|
|
|
|
|
if (strcmp(ka->ka_name, dwlpx_cd.cd_name) != 0)
|
|
|
|
return (0);
|
|
|
|
return (1);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
dwlpxattach(parent, self, aux)
|
|
|
|
struct device *parent;
|
|
|
|
struct device *self;
|
|
|
|
void *aux;
|
|
|
|
{
|
|
|
|
static int once = 0;
|
|
|
|
struct dwlpx_softc *sc = (struct dwlpx_softc *)self;
|
1997-06-08 11:59:20 +04:00
|
|
|
struct dwlpx_config *ccp = &sc->dwlpx_cc;
|
1997-03-12 22:19:54 +03:00
|
|
|
struct kft_dev_attach_args *ka = aux;
|
|
|
|
struct pcibus_attach_args pba;
|
1997-06-08 11:59:20 +04:00
|
|
|
u_int32_t pcia_present;
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
sc->dwlpx_node = ka->ka_node;
|
|
|
|
sc->dwlpx_dtype = ka->ka_dtype;
|
|
|
|
sc->dwlpx_hosenum = ka->ka_hosenum;
|
1998-03-23 09:38:10 +03:00
|
|
|
dwlps[sc->dwlpx_node - 4][sc->dwlpx_hosenum] = sc;
|
1997-03-12 22:19:54 +03:00
|
|
|
dwlpx_init(sc);
|
1997-06-08 11:59:20 +04:00
|
|
|
|
|
|
|
pcia_present = REGVAL(PCIA_PRESENT + ccp->cc_sysbase);
|
1998-03-23 09:38:10 +03:00
|
|
|
printf(": PCIA rev. %d, STD I/O %spresent, %s DMA maps.\n",
|
1997-06-08 11:59:20 +04:00
|
|
|
(pcia_present >> PCIA_PRESENT_REVSHIFT) & PCIA_PRESENT_REVMASK,
|
1998-03-23 09:38:10 +03:00
|
|
|
(pcia_present & PCIA_PRESENT_STDIO) == 0 ? "not " : "",
|
|
|
|
#ifdef MSS3_DEBUG_SG
|
|
|
|
(sc->dwlpx_sgmapsz == DWLPX_SG128K)? "128K S/G" : "32K S/G");
|
|
|
|
#else
|
|
|
|
(physmem <= btoc(2048LL << 20LL))? "Direct" :
|
|
|
|
(sc->dwlpx_sgmapsz == DWLPX_SG128K)? "128K S/G" : "32K S/G");
|
|
|
|
#endif
|
|
|
|
|
1997-06-08 11:59:20 +04:00
|
|
|
|
1998-03-23 09:38:10 +03:00
|
|
|
#if 0
|
1997-06-08 11:59:20 +04:00
|
|
|
{
|
|
|
|
int hpc, slot, slotval;
|
|
|
|
const char *str;
|
1998-03-23 09:38:10 +03:00
|
|
|
printf("%s: %sK Scatter/Gather RAM Entries Available.\n",
|
|
|
|
sc->dwlpx_dev.dv_xname,
|
|
|
|
sc->dwlpx_sgmapsz == DWLPX_SG32K? "32" : "128");
|
1997-06-08 11:59:20 +04:00
|
|
|
for (hpc = 0; hpc < sc->dwlpx_nhpc; hpc++) {
|
|
|
|
for (slot = 0; slot < 4; slot++) {
|
|
|
|
slotval = (pcia_present >>
|
|
|
|
PCIA_PRESENT_SLOTSHIFT(hpc, slot)) &
|
|
|
|
PCIA_PRESENT_SLOT_MASK;
|
|
|
|
if (slotval == PCIA_PRESENT_SLOT_NONE)
|
|
|
|
continue;
|
|
|
|
switch (slotval) {
|
|
|
|
case PCIA_PRESENT_SLOT_25W:
|
|
|
|
str = "25";
|
|
|
|
break;
|
|
|
|
case PCIA_PRESENT_SLOT_15W:
|
|
|
|
str = "15";
|
|
|
|
break;
|
|
|
|
case PCIA_PRESENT_SLOW_7W:
|
|
|
|
default: /* XXX gcc */
|
|
|
|
str = "7.5";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
printf("%s: hpc %d slot %d: %s watt module\n",
|
|
|
|
sc->dwlpx_dev.dv_xname, hpc, slot, str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
if (once == 0) {
|
|
|
|
/*
|
|
|
|
* Set up interrupts
|
|
|
|
*/
|
|
|
|
pci_kn8ae_pickintr(&sc->dwlpx_cc, 1);
|
|
|
|
#ifdef EVCNT_COUNTERS
|
|
|
|
evcnt_attach(self, "intr", kn8ae_intr_evcnt);
|
|
|
|
#endif
|
|
|
|
once++;
|
|
|
|
} else {
|
|
|
|
pci_kn8ae_pickintr(&sc->dwlpx_cc, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Attach PCI bus
|
|
|
|
*/
|
|
|
|
pba.pba_busname = "pci";
|
1997-09-02 16:54:27 +04:00
|
|
|
pba.pba_iot = &sc->dwlpx_cc.cc_iot;
|
|
|
|
pba.pba_memt = &sc->dwlpx_cc.cc_memt;
|
1997-06-07 03:54:24 +04:00
|
|
|
pba.pba_dmat = /* start with direct, may change... */
|
|
|
|
alphabus_dma_get_tag(&sc->dwlpx_cc.cc_dmat_direct, ALPHA_BUS_PCI);
|
1997-03-12 22:19:54 +03:00
|
|
|
pba.pba_pc = &sc->dwlpx_cc.cc_pc;
|
|
|
|
pba.pba_bus = 0;
|
1997-04-11 03:12:16 +04:00
|
|
|
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
|
1997-03-12 22:19:54 +03:00
|
|
|
config_found(self, &pba, dwlpxprint);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
dwlpx_init(sc)
|
|
|
|
struct dwlpx_softc *sc;
|
|
|
|
{
|
|
|
|
int i;
|
1998-03-23 09:38:10 +03:00
|
|
|
u_int32_t ctl;
|
1997-03-12 22:19:54 +03:00
|
|
|
struct dwlpx_config *ccp = &sc->dwlpx_cc;
|
1998-03-23 09:38:10 +03:00
|
|
|
unsigned long ls = DWLPX_SYSBASE(sc);
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
if (ccp->cc_initted == 0) {
|
1998-03-23 09:38:10 +03:00
|
|
|
/*
|
|
|
|
* On reads, you get a fault if you read a nonexisted HPC.
|
|
|
|
* We know the internal KFTIA hose (hose 0) has only 2 HPCs,
|
|
|
|
* but we can also actually probe for HPCs.
|
|
|
|
* Assume at least one.
|
|
|
|
*/
|
|
|
|
for (sc->dwlpx_nhpc = 1; sc->dwlpx_nhpc < NHPC;
|
|
|
|
sc->dwlpx_nhpc++) {
|
|
|
|
if (badaddr(KV(PCIA_CTL(sc->dwlpx_nhpc) + ls),
|
|
|
|
sizeof (ctl)) != 0) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (sc->dwlpx_nhpc != NHPC) {
|
|
|
|
/* clear (potential) Illegal CSR Address Error */
|
|
|
|
REGVAL(PCIA_ERR(0) + DWLPX_SYSBASE(sc)) =
|
|
|
|
PCIA_ERR_ALLERR;
|
|
|
|
}
|
|
|
|
|
1997-09-02 16:40:18 +04:00
|
|
|
dwlpx_bus_io_init(&ccp->cc_iot, ccp);
|
|
|
|
dwlpx_bus_mem_init(&ccp->cc_memt, ccp);
|
1997-03-12 22:19:54 +03:00
|
|
|
}
|
|
|
|
dwlpx_pci_init(&ccp->cc_pc, ccp);
|
|
|
|
ccp->cc_sc = sc;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Establish a precalculated base for convenience's sake.
|
|
|
|
*/
|
1998-03-23 09:38:10 +03:00
|
|
|
ccp->cc_sysbase = ls;
|
1997-03-12 22:19:54 +03:00
|
|
|
|
|
|
|
/*
|
1997-06-07 03:54:24 +04:00
|
|
|
* Set up DMA stuff for this DWLPX.
|
1997-03-12 22:19:54 +03:00
|
|
|
*/
|
1997-06-07 03:54:24 +04:00
|
|
|
dwlpx_dma_init(ccp);
|
1997-03-12 22:19:54 +03:00
|
|
|
|
1998-03-23 09:38:10 +03:00
|
|
|
/*
|
|
|
|
* If there are only 2 HPCs, then the 'present' register is not
|
|
|
|
* implemented, so there will only ever be 32K SG entries. Otherwise
|
|
|
|
* any revision greater than zero will have 128K entries.
|
|
|
|
*/
|
|
|
|
ctl = REGVAL(PCIA_PRESENT + ccp->cc_sysbase);
|
|
|
|
if (sc->dwlpx_nhpc == 2) {
|
|
|
|
sc->dwlpx_sgmapsz = DWLPX_SG32K;
|
|
|
|
#if 0
|
|
|
|
/*
|
|
|
|
* As of 2/25/98- When I enable SG128K, and then have to flip
|
|
|
|
* TBIT below, I get bad SGRAM errors. We'll fix this later
|
|
|
|
* if this gets important.
|
|
|
|
*/
|
|
|
|
} else if ((ctl >> PCIA_PRESENT_REVSHIFT) & PCIA_PRESENT_REVMASK) {
|
|
|
|
sc->dwlpx_sgmapsz = DWLPX_SG128K;
|
|
|
|
#endif
|
|
|
|
} else {
|
|
|
|
sc->dwlpx_sgmapsz = DWLPX_SG32K;
|
|
|
|
}
|
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
/*
|
|
|
|
* Set up interrupt stuff for this DWLPX.
|
|
|
|
*
|
|
|
|
* Note that all PCI interrupt pins are disabled at this time.
|
|
|
|
*
|
|
|
|
* Do this even for all HPCs- even for the nonexistent
|
|
|
|
* one on hose zero of a KFTIA.
|
|
|
|
*/
|
|
|
|
for (i = 0; i < NHPC; i++) {
|
|
|
|
REGVAL(PCIA_IMASK(i) + ccp->cc_sysbase) = DWLPX_IMASK_DFLT;
|
|
|
|
REGVAL(PCIA_ERRVEC(i) + ccp->cc_sysbase) =
|
|
|
|
DWLPX_ERRVEC((sc->dwlpx_node - 4), sc->dwlpx_hosenum);
|
|
|
|
}
|
|
|
|
for (i = 0; i < DWLPX_MAXDEV; i++) {
|
|
|
|
u_int16_t vec;
|
|
|
|
int ss, hpc;
|
|
|
|
|
|
|
|
vec = DWLPX_MVEC((sc->dwlpx_node - 4), sc->dwlpx_hosenum, i);
|
|
|
|
ss = i;
|
|
|
|
if (i < 4) {
|
|
|
|
hpc = 0;
|
|
|
|
} else if (i < 8) {
|
|
|
|
ss -= 4;
|
|
|
|
hpc = 1;
|
|
|
|
} else {
|
|
|
|
ss -= 8;
|
|
|
|
hpc = 2;
|
|
|
|
}
|
|
|
|
REGVAL(PCIA_DEVVEC(hpc, ss, 1) + ccp->cc_sysbase) = vec;
|
|
|
|
REGVAL(PCIA_DEVVEC(hpc, ss, 2) + ccp->cc_sysbase) = vec;
|
|
|
|
REGVAL(PCIA_DEVVEC(hpc, ss, 3) + ccp->cc_sysbase) = vec;
|
|
|
|
REGVAL(PCIA_DEVVEC(hpc, ss, 4) + ccp->cc_sysbase) = vec;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Establish HAE values, as well as make sure of sanity elsewhere.
|
|
|
|
*/
|
|
|
|
for (i = 0; i < sc->dwlpx_nhpc; i++) {
|
1998-03-23 09:38:10 +03:00
|
|
|
ctl = REGVAL(PCIA_CTL(i) + ccp->cc_sysbase);
|
1997-03-12 22:19:54 +03:00
|
|
|
ctl &= 0x0fffffff;
|
1997-08-16 05:18:30 +04:00
|
|
|
ctl &= ~(PCIA_CTL_MHAE(0x1f) | PCIA_CTL_IHAE(0x1f));
|
|
|
|
/*
|
|
|
|
* I originally also had it or'ing in 3, which makes no sense.
|
|
|
|
*/
|
|
|
|
|
|
|
|
ctl |= PCIA_CTL_RMMENA | PCIA_CTL_RMMARB;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Only valid if we're attached to a KFTIA or a KTHA.
|
|
|
|
*/
|
|
|
|
ctl |= PCIA_CTL_3UP;
|
|
|
|
|
|
|
|
ctl |= PCIA_CTL_CUTENA;
|
|
|
|
|
1998-03-23 09:38:10 +03:00
|
|
|
/*
|
|
|
|
* Fit in appropriate S/G Map Ram size.
|
|
|
|
*/
|
|
|
|
if (sc->dwlpx_sgmapsz == DWLPX_SG32K)
|
|
|
|
ctl |= PCIA_CTL_SG32K;
|
|
|
|
else if (sc->dwlpx_sgmapsz == DWLPX_SG128K)
|
|
|
|
ctl |= PCIA_CTL_SG128K;
|
|
|
|
else
|
|
|
|
ctl |= PCIA_CTL_SG32K;
|
|
|
|
|
1997-03-12 22:19:54 +03:00
|
|
|
REGVAL(PCIA_CTL(i) + ccp->cc_sysbase) = ctl;
|
|
|
|
}
|
1998-03-23 09:38:10 +03:00
|
|
|
/*
|
|
|
|
* Enable TBIT if required
|
|
|
|
*/
|
|
|
|
if (sc->dwlpx_sgmapsz == DWLPX_SG128K)
|
|
|
|
REGVAL(PCIA_TBIT + ccp->cc_sysbase) = 1;
|
|
|
|
alpha_mb();
|
1997-03-12 22:19:54 +03:00
|
|
|
ccp->cc_initted = 1;
|
|
|
|
}
|
1998-03-23 09:38:10 +03:00
|
|
|
|
|
|
|
void
|
|
|
|
dwlpx_iointr(framep, vec)
|
|
|
|
void *framep;
|
|
|
|
unsigned long vec;
|
|
|
|
{
|
|
|
|
struct dwlpx_softc *sc;
|
|
|
|
struct dwlpx_config *ccp;
|
|
|
|
int ionode, hosenum, i;
|
|
|
|
struct {
|
|
|
|
u_int32_t err;
|
|
|
|
u_int32_t addr;
|
|
|
|
} hpcs[NHPC];
|
|
|
|
|
|
|
|
ionode = (vec >> 8) & 0xf;
|
|
|
|
hosenum = (vec >> 4) & 0x7;
|
|
|
|
if (ionode >= DWLPX_NIONODE || hosenum >= DWLPX_NHOSE) {
|
|
|
|
panic("dwlpx_iointr: mangled vector %x", vec);
|
|
|
|
/* NOTREACHED */
|
|
|
|
}
|
|
|
|
sc = dwlps[ionode][hosenum];
|
|
|
|
ccp = &sc->dwlpx_cc;
|
|
|
|
for (i = 0; i < sc->dwlpx_nhpc; i++) {
|
|
|
|
hpcs[i].err = REGVAL(PCIA_ERR(i) + ccp->cc_sysbase);
|
|
|
|
hpcs[i].addr = REGVAL(PCIA_FADR(i) + ccp->cc_sysbase);
|
|
|
|
}
|
|
|
|
printf("%s: node %d hose %d error interrupt\n",
|
|
|
|
sc->dwlpx_dev.dv_xname, ionode + 4, hosenum);
|
|
|
|
|
|
|
|
for (i = 0; i < sc->dwlpx_nhpc; i++) {
|
|
|
|
if ((hpcs[i].err & PCIA_ERR_ERROR) == 0)
|
|
|
|
continue;
|
|
|
|
printf("\tHPC %d: ERR=0x%08x; DMA %s Memory, "
|
|
|
|
"Failing Address 0x%x\n",
|
|
|
|
i, hpcs[i].err, hpcs[i].addr & 0x1? "write to" :
|
|
|
|
"read from", hpcs[i].addr & ~3);
|
|
|
|
if (hpcs[i].err & PCIA_ERR_SERR_L)
|
|
|
|
printf("\t PCI device asserted SERR_L\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_ILAT)
|
|
|
|
printf("\t Incremental Latency Exceeded\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_SGPRTY)
|
|
|
|
printf("\t CPU access of SG RAM Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_ILLCSR)
|
|
|
|
printf("\t Illegal CSR Address Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_PCINXM)
|
|
|
|
printf("\t Nonexistent PCI Address Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_DSCERR)
|
|
|
|
printf("\t PCI Target Disconnect Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_ABRT)
|
|
|
|
printf("\t PCI Target Abort Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_WPRTY)
|
|
|
|
printf("\t PCI Write Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_DPERR)
|
|
|
|
printf("\t PCI Data Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_APERR)
|
|
|
|
printf("\t PCI Address Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_DFLT)
|
|
|
|
printf("\t SG Map RAM Invalid Entry Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_DPRTY)
|
|
|
|
printf("\t DMA access of SG RAM Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_DRPERR)
|
|
|
|
printf("\t DMA Read Return Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_MABRT)
|
|
|
|
printf("\t PCI Master Abort Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_CPRTY)
|
|
|
|
printf("\t CSR Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_COVR)
|
|
|
|
printf("\t CSR Overrun Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_MBPERR)
|
|
|
|
printf("\t Mailbox Parity Error\n");
|
|
|
|
if (hpcs[i].err & PCIA_ERR_MBILI)
|
|
|
|
printf("\t Mailbox Illegal Length Error\n");
|
|
|
|
REGVAL(PCIA_ERR(i) + ccp->cc_sysbase) = hpcs[i].err;
|
|
|
|
}
|
|
|
|
}
|