summaryrefslogtreecommitdiff
path: root/firmware/src/os/system_irq.h
blob: 195b7b974fb4c63b005b6ae95619ef3c5498e9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _SYSTEM_IRQ_H
#define _SYSTEM_IRQ_H

#include <sys/types.h>

enum sysirqs {
	AT91SAM7_SYSIRQ_PIT 	= 0,
	AT91SAM7_SYSIRQ_DBGU	= 1,
	AT91SAM7_SYSIRQ_EFC	= 2,
	AT91SAM7_SYSIRQ_WDT	= 3,
	AT91SAM7_SYSIRQ_RTT	= 4,
	AT91SAM7_SYSIRQ_RSTC	= 5,
	AT91SAM7_SYSIRQ_PMC	= 6,
	AT91SAM7_SYSIRQ_COUNT
};

typedef void sysirq_hdlr(u_int32_t sr);

extern void sysirq_register(enum sysirqs irq, sysirq_hdlr *hdlr);
extern void sysirq_init(void);

#endif
personal git repositories of Harald Welte. Your mileage may vary