blob: 4dee9d4c13c08143ef034918ac4812752a25bcf0 [file] [log] [blame]
Palmer Dabbelt6d60b6e2017-07-10 18:05:09 -07001/*
2 * Copyright (C) 2012 Regents of the University of California
3 * Copyright (C) 2017 SiFive
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation, version 2.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef _ASM_RISCV_IRQ_H
16#define _ASM_RISCV_IRQ_H
17
18#define NR_IRQS 0
19
20#define INTERRUPT_CAUSE_SOFTWARE 1
21#define INTERRUPT_CAUSE_TIMER 5
22#define INTERRUPT_CAUSE_EXTERNAL 9
23
24void riscv_timer_interrupt(void);
25
26#include <asm-generic/irq.h>
27
28#endif /* _ASM_RISCV_IRQ_H */