summaryrefslogblamecommitdiffstats
path: root/bsps/sparc/leon3/include/bsp/irq.h
blob: 5a53246a6b1a129cb2e9949a555ce46724459e1c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                        

                                        




                       


                                                          
                                        




                                 
                 
                                      
 


                                                                     
                                                                     



                                                                          









                                
                                      
/**
 * @file
 * @ingroup sparc_leon3
 * @brief LEON3 generic shared IRQ setup
 *
 * Based on libbsp/shared/include/irq.h.
 */

/*
 * Copyright (c) 2012.
 * Aeroflex Gaisler AB.
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

#ifndef LIBBSP_LEON3_IRQ_CONFIG_H
#define LIBBSP_LEON3_IRQ_CONFIG_H

#include <leon.h>
#include <rtems/score/processormask.h>

#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
#define BSP_INTERRUPT_VECTOR_MAX_EXT 31 /* Extended IRQ controller */

#define BSP_INTERRUPT_VECTOR_COUNT (BSP_INTERRUPT_VECTOR_MAX_EXT + 1)

/* The check is different depending on IRQ controller, runtime detected */
#define BSP_INTERRUPT_CUSTOM_VALID_VECTOR

void bsp_interrupt_set_affinity(
  rtems_vector_number vector,
  const Processor_mask *affinity
);

void bsp_interrupt_get_affinity(
  rtems_vector_number vector,
  Processor_mask *affinity
);

#endif /* LIBBSP_LEON3_IRQ_CONFIG_H */