162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * sun3ints.h -- Linux/Sun3 interrupt handling code definitions
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * Erik Verbruggen (erik@bigmama.xtdnet.nl)
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
762306a36Sopenharmony_ci * License.  See the file COPYING in the main directory of this archive for
862306a36Sopenharmony_ci * more details.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#ifndef SUN3INTS_H
1262306a36Sopenharmony_ci#define SUN3INTS_H
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#include <linux/types.h>
1562306a36Sopenharmony_ci#include <linux/interrupt.h>
1662306a36Sopenharmony_ci#include <asm/intersil.h>
1762306a36Sopenharmony_ci#include <asm/oplib.h>
1862306a36Sopenharmony_ci#include <asm/traps.h>
1962306a36Sopenharmony_ci#include <asm/irq.h>
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#define SUN3_INT_VECS 192
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_civoid sun3_enable_irq(unsigned int irq);
2462306a36Sopenharmony_civoid sun3_disable_irq(unsigned int irq);
2562306a36Sopenharmony_ciextern void sun3_init_IRQ (void);
2662306a36Sopenharmony_ciextern void sun3_enable_interrupts (void);
2762306a36Sopenharmony_ciextern void sun3_disable_interrupts (void);
2862306a36Sopenharmony_ciextern volatile unsigned char* sun3_intreg;
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci/* master list of VME vectors -- don't fuck with this */
3162306a36Sopenharmony_ci#define SUN3_VEC_FLOPPY		(IRQ_USER+0)
3262306a36Sopenharmony_ci#define SUN3_VEC_VMESCSI0	(IRQ_USER+0)
3362306a36Sopenharmony_ci#define SUN3_VEC_VMESCSI1	(IRQ_USER+1)
3462306a36Sopenharmony_ci#define SUN3_VEC_CG		(IRQ_USER+104)
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci#endif /* SUN3INTS_H */
38