FreeNOS
RaspberryKernel.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Niek Linnenbank
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __ARM_KERNEL_RASPBERRYKERNEL_H
19#define __ARM_KERNEL_RASPBERRYKERNEL_H
20
21#include <FreeNOS/arm/ARMKernel.h>
23
24#ifdef BCM2836
26#include <arm/ARMTimer.h>
27#endif /* BCM2836 */
28
41{
42 public:
43
50
51 private:
52
58 static void interrupt(CPUState state);
59
60 private:
61
64
65#ifdef BCM2836
68
71#endif /* BCM2836 */
72
75
78};
79
85#endif /* __ARM_KERNEL_RASPBERRYKERNEL_H */
Represents the ARM kernel implementation.
Definition ARMKernel.h:41
ARM Generic Timer.
Definition ARMTimer.h:40
Broadcom 2836 device specific I/O configuration.
Raspberry Pi Interrupt Controller implementation.
Broadcom System-on-Chip system timer.
Represents the Raspberry Pi kernel implementation.
BroadcomTimer m_bcmTimer
Broadcom specific timer module.
Broadcom2836 m_bcm
Broadcom specific registers.
u8 m_timerIrq
Interrupt number for the timer.
BroadcomInterrupt m_bcmIntr
Broadcom specific interrupt controller.
ARM64Timer m_armTimer
ARM generic timer.
static void interrupt(CPUState state)
Interrupt handler routine.
unsigned char u8
Unsigned 8-bit number.
Definition Types.h:59
Contains all the CPU registers.
Definition ARMCore.h:244
Per-Core information structure.
Definition CoreInfo.h:61