]>
Commit | Line | Data |
---|---|---|
c30b7adb SG |
1 | /* 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, [email protected]. | |
7 | */ | |
8 | ||
9 | #ifndef __IRQ_FUNC_H | |
10 | #define __IRQ_FUNC_H | |
11 | ||
36bf446b | 12 | struct pt_regs; |
04efa735 | 13 | struct cmd_tbl; |
36bf446b SG |
14 | |
15 | typedef void (interrupt_handler_t)(void *arg); | |
16 | ||
c30b7adb SG |
17 | int interrupt_init(void); |
18 | void timer_interrupt(struct pt_regs *regs); | |
19 | void external_interrupt(struct pt_regs *regs); | |
36bf446b | 20 | void irq_install_handler(int vec, interrupt_handler_t *handler, void *arg); |
c30b7adb SG |
21 | void irq_free_handler(int vec); |
22 | void reset_timer(void); | |
23 | ||
36bf446b SG |
24 | void enable_interrupts(void); |
25 | int disable_interrupts(void); | |
26 | ||
04efa735 AS |
27 | /* Implemented in $(CPU)/interrupts.c */ |
28 | int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); | |
29 | ||
c30b7adb | 30 | #endif |