/*
 * irq.h
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) Equator Technologies
 */

#ifndef _ASM_BSP_IRQ_H_
#define _ASM_BSP_IRQ_H_

#define NR_IRQS 	64

/* 
 * Special irqs:
 */
#define IRQ_SERIAL0      (NR_IRQS+1)
#define IRQ_SERIAL1      (NR_IRQS+2)


#define disable_irq_nosync disable_irq

extern int request_irq(
		unsigned int  irq,
		void        (*handler)( int, void*, struct pt_regs* ),
		unsigned long flags,
		const char*   devname,
		void*         dev_id
	);
extern void free_irq        ( unsigned int, void* );
extern void disable_irq     ( unsigned int        );
extern void enable_irq      ( unsigned int        );
extern void acknowledge_irq (unsigned int irq     );

#endif /* _ASM_BSP_IRQ_H_ */
