URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 393 |
Rev 411 |
Line 1... |
Line 1... |
#ifndef _INT_H_
|
#ifndef _INT_H_
|
#define _INT_H_
|
#define _INT_H_
|
/* Number of interrupt handlers */
|
|
|
/* Number of interrupt handlers - really depends on PIC width in OR1200*/
|
#define MAX_INT_HANDLERS 32
|
#define MAX_INT_HANDLERS 32
|
|
|
/* Handler entry */
|
/* Handler entry */
|
struct ihnd {
|
struct ihnd {
|
void (*handler)(void *);
|
void (*handler)(void *);
|
Line 11... |
Line 12... |
|
|
/* Add interrupt handler */
|
/* Add interrupt handler */
|
int int_add(unsigned long vect, void (* handler)(void *), void *arg);
|
int int_add(unsigned long vect, void (* handler)(void *), void *arg);
|
|
|
/* Add exception vector handler */
|
/* Add exception vector handler */
|
void add_handler(unsigned long vector, void (*handler) (void));
|
void add_handler(unsigned long vector, void (* handler) (void *));
|
|
|
/* Initialize routine */
|
/* Initialize routine */
|
int int_init();
|
int int_init();
|
|
|
/* Actual interrup handler function */
|
/* Actual interrup handler function */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.