From a545ce26d7470c12d7f6b3e80542e15d1434ba55 Mon Sep 17 00:00:00 2001 From: Javier Jalle Date: Thu, 26 Jan 2017 15:31:17 +0100 Subject: leon, grpci2: added TIMEOUT interrupt --- c/src/lib/libbsp/sparc/shared/pci/grpci2.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c index 9d8dea6c9f..cf2f84fb2f 100644 --- a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c +++ b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c @@ -132,11 +132,12 @@ struct grpci2_regs { #define STS_TRACE (1<regs->sts_cap; - if (sts & (STS_IMSTABRT | STS_ITGTABRT | STS_IPARERR | STS_ISYSERR)) { + if (sts & (STS_IMSTABRT | STS_ITGTABRT | STS_IPARERR | STS_ISYSERR | STS_ITIMEOUT)) { /* A PCI error IRQ ... Error handler unimplemented * add your code here... */ @@ -623,6 +624,9 @@ void grpci2_err_isr(void *arg) if (sts & STS_ISYSERR) { printk("GRPCI2: unhandled System Error IRQ\n"); } + if (sts & STS_ITIMEOUT) { + printk("GRPCI2: unhandled PCI target access timeout IRQ\n"); + } } } -- cgit v1.2.3