FreeNOS
BroadcomInterrupt.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Ivan Tan
3 * Copyright (C) 2015 Niek Linnenbank
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __LIBARCH_ARM_BROADCOMINTERRUPT_H
20#define __LIBARCH_ARM_BROADCOMINTERRUPT_H
21
22#include <IntController.h>
23#include <arm64/ARM64IO.h>
24
41#define BCM_IRQ_SYSTIMERM1 1
42
47{
48 public:
49
54
60 virtual Result enable(uint vector);
61
67 virtual Result disable(uint vector);
68
74 virtual Result clear(uint vector);
75
83 virtual Result nextPending(uint & irq);
84
90 virtual bool isTriggered(uint vector);
91
92 private:
93
96};
97
104#endif /* LIBARCH_ARM_BROADCOMINTERRUPT_H */
Input/Output operations specific to the ARM architecture.
Definition ARM64IO.h:41
Raspberry Pi Interrupt Controller implementation.
virtual Result disable(uint vector)
Disable an IRQ vector.
BroadcomInterrupt()
Constructor.
virtual bool isTriggered(uint vector)
Check if an IRQ vector is set.
virtual Result enable(uint vector)
Enable an IRQ vector.
virtual Result clear(uint vector)
Clear an IRQ vector.
ARM64IO m_io
I/O instance.
virtual Result nextPending(uint &irq)
Retrieve the next pending interrupt (IRQ).
Interrupt controller interface.
Result
Result codes.
unsigned int uint
Unsigned integer number.
Definition Types.h:44