source: rtems/c/src/lib/libbsp/arm/shared/include/arm-gic-irq.h @ a91dc98b

4.11
Last change on this file since a91dc98b was a91dc98b, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 26, 2013 at 1:06:32 PM

bsp/realview-pbx-a9: New BSP

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#ifndef LIBBSP_ARM_SHARED_ARM_GIC_IRQ_H
16#define LIBBSP_ARM_SHARED_ARM_GIC_IRQ_H
17
18#include <rtems.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24#define ARM_GIC_IRQ_SGI_0 0
25#define ARM_GIC_IRQ_SGI_1 1
26#define ARM_GIC_IRQ_SGI_2 2
27#define ARM_GIC_IRQ_SGI_3 3
28#define ARM_GIC_IRQ_SGI_5 5
29#define ARM_GIC_IRQ_SGI_6 6
30#define ARM_GIC_IRQ_SGI_7 7
31#define ARM_GIC_IRQ_SGI_8 8
32#define ARM_GIC_IRQ_SGI_9 9
33#define ARM_GIC_IRQ_SGI_10 10
34#define ARM_GIC_IRQ_SGI_11 11
35#define ARM_GIC_IRQ_SGI_12 12
36#define ARM_GIC_IRQ_SGI_13 13
37#define ARM_GIC_IRQ_SGI_14 14
38#define ARM_GIC_IRQ_SGI_15 15
39
40rtems_status_code arm_gic_irq_set_priority(
41  rtems_vector_number vector,
42  uint8_t priority
43);
44
45rtems_status_code arm_gic_irq_get_priority(
46  rtems_vector_number vector,
47  uint8_t *priority
48);
49
50typedef enum {
51  ARM_GIC_IRQ_SOFTWARE_IRQ_TO_ALL_IN_LIST,
52  ARM_GIC_IRQ_SOFTWARE_IRQ_TO_ALL_EXCEPT_SELF,
53  ARM_GIC_IRQ_SOFTWARE_IRQ_TO_SELF
54} arm_gic_irq_software_irq_target_filter;
55
56rtems_status_code arm_gic_irq_generate_software_irq(
57  rtems_vector_number vector,
58  arm_gic_irq_software_irq_target_filter filter,
59  uint8_t targets
60);
61
62#ifdef __cplusplus
63}
64#endif /* __cplusplus */
65
66#endif /* LIBBSP_ARM_SHARED_ARM_GIC_IRQ_H */
Note: See TracBrowser for help on using the repository browser.