xref: /haiku/src/system/kernel/arch/arm/soc_sun4i.h (revision 6f80a9801fedbe7355c4360bd204ba746ec3ec2d)
1 /*
2  * Copyright 2022, Adrien Destugues, pulkomandy@pulkomandy.tk
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef ARCH_ARM_SOC_SUN4I_H
7 #define ARCH_ARM_SOC_SUN4I_H
8 
9 
10 #include "soc.h"
11 
12 
13 class Sun4iInterruptController : public InterruptController {
14 public:
15 	Sun4iInterruptController(uint32_t reg_base);
16 	void EnableInterrupt(int irq);
17 	void DisableInterrupt(int irq);
18 	void HandleInterrupt();
19 
20 protected:
21 	area_id fRegArea;
22 	uint32 *fRegBase;
23 };
24 
25 
26 #endif /* !SOC_SUN4I_H */
27