URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 349 |
Rev 393 |
Line 1... |
Line 1... |
|
#ifndef _INT_H_
|
|
#define _INT_H_
|
|
/* Number of interrupt handlers */
|
|
#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_
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.