seL4/include/machine/hardware.h
Anna Lyons c5b6a6a58a Refactor duplicated code in hardware.h
One copy to rule them all.
2016-06-07 12:01:14 +10:00

33 lines
736 B
C

/*
* Copyright 2014, General Dynamics C4 Systems
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(GD_GPL)
*/
#ifndef __MACHINE_HARDWARE_H
#define __MACHINE_HARDWARE_H
#include <types.h>
#include <arch/machine/hardware.h>
#include <plat/machine/hardware.h>
#include <plat/machine.h>
void handleReservedIRQ(irq_t irq);
void handleSpuriousIRQ(void);
/** MODIFIES: [*] */
void ackInterrupt(irq_t irq);
/** MODIFIES: [*] */
irq_t getActiveIRQ(void);
/** MODIFIES: [*] */
bool_t isIRQPending(void);
/** MODIFIES: [*] */
void maskInterrupt(bool_t enable, irq_t irq);
#endif