blob: c7c4babbfc9080cd5aaed1108ab57339c3907b0c [file] [log] [blame]
Simon Glass9b61c7c2019-11-14 12:57:41 -07001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Header file for interrupt functions
4 *
5 * (C) Copyright 2000-2009
6 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 */
8
9#ifndef __IRQ_FUNC_H
10#define __IRQ_FUNC_H
11
Simon Glass8f3f7612019-11-14 12:57:42 -070012struct pt_regs;
13
14typedef void (interrupt_handler_t)(void *arg);
15
Simon Glass9b61c7c2019-11-14 12:57:41 -070016int interrupt_init(void);
17void timer_interrupt(struct pt_regs *regs);
18void external_interrupt(struct pt_regs *regs);
Simon Glass8f3f7612019-11-14 12:57:42 -070019void irq_install_handler(int vec, interrupt_handler_t *handler, void *arg);
Simon Glass9b61c7c2019-11-14 12:57:41 -070020void irq_free_handler(int vec);
21void reset_timer(void);
22
Simon Glass8f3f7612019-11-14 12:57:42 -070023void enable_interrupts(void);
24int disable_interrupts(void);
25
Simon Glass9b61c7c2019-11-14 12:57:41 -070026#endif