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 13class Sun4iInterruptController : public InterruptController { 14public: 15 Sun4iInterruptController(uint32_t reg_base); 16 void EnableInterrupt(int32 irq); 17 void DisableInterrupt(int32 irq); 18 void HandleInterrupt(); 19 20protected: 21 area_id fRegArea; 22 uint32 *fRegBase; 23}; 24 25 26#endif /* !SOC_SUN4I_H */ 27