Changeset a545ce26 in rtems


Ignore:
Timestamp:
Jan 26, 2017, 2:31:17 PM (3 years ago)
Author:
Javier Jalle <javier.jalle@…>
Branches:
5, master
Children:
d9d8dbd
Parents:
89173ee9
git-author:
Javier Jalle <javier.jalle@…> (01/26/17 14:31:17)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

leon, grpci2: added TIMEOUT interrupt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/pci/grpci2.c

    r89173ee9 ra545ce26  
    133133#define STS_CFGERRVALID (1<<STS_CFGERRVALID_BIT)
    134134#define STS_CFGERR      (1<<STS_CFGERR_BIT)
    135 #define STS_INTTYPE     (0x3f<<STS_INTTYPE_BIT)
     135#define STS_INTTYPE     (0x7f<<STS_INTTYPE_BIT)
    136136#define STS_INTSTS      (0xf<<STS_INTSTS_BIT)
    137137#define STS_FDEPTH      (0x7<<STS_FDEPTH_BIT)
    138138#define STS_FNUM        (0x3<<STS_FNUM_BIT)
    139139
     140#define STS_ITIMEOUT    (1<<18)
    140141#define STS_ISYSERR     (1<<17)
    141142#define STS_IDMA        (1<<16)
     
    608609        unsigned int sts = priv->regs->sts_cap;
    609610
    610         if (sts & (STS_IMSTABRT | STS_ITGTABRT | STS_IPARERR | STS_ISYSERR)) {
     611        if (sts & (STS_IMSTABRT | STS_ITGTABRT | STS_IPARERR | STS_ISYSERR | STS_ITIMEOUT)) {
    611612                /* A PCI error IRQ ... Error handler unimplemented
    612613                 * add your code here...
     
    624625                        printk("GRPCI2: unhandled System Error IRQ\n");
    625626                }
     627                if (sts & STS_ITIMEOUT) {
     628                        printk("GRPCI2: unhandled PCI target access timeout IRQ\n");
     629                }
    626630        }
    627631}
Note: See TracChangeset for help on using the changeset viewer.