RTEMS 7.0-rc1
Loading...
Searching...
No Matches
irq.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
17/*
18 * SS555 port sponsored by Defence Research and Development Canada - Suffield
19 * Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
20 *
21 * Derived from irq.h in the historical powerpc/mbx8xx/irq:
22 *
23 * Copyright (c) 1999 Eric Valette <eric.valette@free.fr>
24 *
25 * The license and distribution terms for this file may be
26 * found in the file LICENSE in this distribution or at
27 * http://www.rtems.org/license/LICENSE.
28 */
29
30#ifndef LIBBSP_POWERPC_SS555_IRQ_IRQ_H
31#define LIBBSP_POWERPC_SS555_IRQ_IRQ_H
32
33#include <libcpu/irq.h>
34
35#ifndef ASM
36
37#include <bsp/irq-default.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/*
44 * These are no longer prototyped anywhere else. This appears to be
45 * remnants of the IRQ code upgrade.
46 *
47 * --joel 28 April 2010
48 */
49int CPU_install_rtems_irq_handler(const rtems_irq_connect_data* irq);
50int CPU_get_current_rtems_irq_handler(rtems_irq_connect_data* irq);
51int CPU_remove_rtems_irq_handler(const rtems_irq_connect_data* irq);
52int CPU_rtems_irq_mngt_set(rtems_irq_global_settings* config);
53int CPU_rtems_irq_mngt_get(rtems_irq_global_settings** config);
54void C_default_exception_handler(CPU_Exception_frame* excPtr);
55
56/*
57 * The SS555 has no external interrupt controller chip, so use the standard
58 * routines from the CPU-dependent code.
59 */
60#define BSP_install_rtems_irq_handler(ptr) CPU_install_rtems_irq_handler(ptr)
61#define BSP_get_current_rtems_irq_handler(ptr) CPU_get_current_rtems_irq_handler(ptr)
62#define BSP_remove_rtems_irq_handler(ptr) CPU_remove_rtems_irq_handler(ptr)
63#define BSP_rtems_irq_mngt_set(config) CPU_rtems_irq_mngt_set(config)
64#define BSP_rtems_irq_mngt_get(config) CPU_rtems_irq_mngt_get(config)
65#define BSP_rtems_irq_mng_init(cpuId) CPU_rtems_irq_mng_init(cpuId)
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* ASM */
72
73#endif /* LIBBSP_POWERPC_SS555_IRQ_IRQ_H */
The set of registers that specifies the complete processor state.
Definition: cpu.h:500
Definition: irq.h:65
Definition: irq.h:112