OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [drivers/] [or1200/] [include/] [int.h] - Rev 856

Go to most recent revision | Compare with Previous | Blame | View Log

#ifndef _INT_H_
#define _INT_H_
 
/* Number of interrupt handlers - really depends on PIC width in OR1200*/
#define MAX_INT_HANDLERS	32
 
/* Handler entry */
struct ihnd {
	void 	(*handler)(void *);
	void	*arg;
};
 
/* Add interrupt handler */ 
int int_add(unsigned long vect, void (* handler)(void *), void *arg);
 
/* Add exception vector handler */
void add_handler(unsigned long vector, void (* handler) (void));
 
/* Initialize routine */
int int_init();
 
/* Actual interrup handler function */
void int_main();
#endif // _INT_H_
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.