source: rtems/c/src/lib/libbsp/sparc/leon3/startup/eirq.c @ f71f3d31

4.115
Last change on this file since f71f3d31 was f71f3d31, checked in by Sebastian Huber <sebastian.huber@…>, on 02/18/14 at 10:52:48

bsp/leon3: Declare leon3_ext_irq_init() in header

  • Property mode set to 100644
File size: 610 bytes
Line 
1/*
2 *  GRLIB/LEON3 extended interrupt controller
3 *
4 *  COPYRIGHT (c) 2011
5 *  Aeroflex Gaisler
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 */
12
13#include <leon.h>
14
15/* GRLIB extended IRQ controller IRQ number */
16int LEON3_IrqCtrl_EIrq = -1;
17
18/* Initialize Extended Interrupt controller */
19void leon3_ext_irq_init(void)
20{
21  if ( (LEON3_IrqCtrl_Regs->mpstat >> 16) & 0xf ) {
22    /* Extended IRQ controller available */
23    LEON3_IrqCtrl_EIrq = (LEON3_IrqCtrl_Regs->mpstat >> 16) & 0xf;
24  }
25}
Note: See TracBrowser for help on using the repository browser.