source: rtems/bsps/sparc/erc32/include/bsp/irq.h @ 23ec04c

Last change on this file since 23ec04c was 23ec04c, checked in by Sebastian Huber <sebastian.huber@…>, on 07/06/21 at 16:39:57

bsps/irq: bsp_interrupt_get_affinity()

Return a status code for bsp_interrupt_get_affinity().

Update #3269.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 * @ingroup sparc_erc32
4 * @brief ERC32 generic shared IRQ setup
5 *
6 * Based on libbsp/shared/include/irq.h.
7 */
8
9/*
10 * Copyright (c) 2012.
11 * Aeroflex Gaisler AB.
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef LIBBSP_ERC32_IRQ_CONFIG_H
19#define LIBBSP_ERC32_IRQ_CONFIG_H
20
21#include <rtems/score/processormask.h>
22
23#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
24#define BSP_INTERRUPT_VECTOR_COUNT (BSP_INTERRUPT_VECTOR_MAX_STD + 1)
25
26/* No extra check is needed */
27#undef BSP_INTERRUPT_CUSTOM_VALID_VECTOR
28
29RTEMS_INLINE_ROUTINE void bsp_interrupt_set_affinity(
30  rtems_vector_number   vector,
31  const Processor_mask *affinity
32)
33{
34  (void) vector;
35  (void) affinity;
36}
37
38RTEMS_INLINE_ROUTINE rtems_status_code bsp_interrupt_get_affinity(
39  rtems_vector_number  vector,
40  Processor_mask      *affinity
41)
42{
43  (void) vector;
44  _Processor_mask_From_index( affinity, 0 );
45  return RTEMS_SUCCESSFUL;
46}
47
48#endif /* LIBBSP_ERC32_IRQ_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.