mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	Move do_irqinfo() prototype to a header file, otherwise compiler is not happy: arch/x86/lib/interrupts.c:130:5: warning: no previous prototype for ‘do_irqinfo’ [-Wmissing-prototypes] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Add 'struct cmd_tbl;' to irq_func.h] Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			737 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			737 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0+ */
 | 
						|
/*
 | 
						|
 * Header file for interrupt functions
 | 
						|
 *
 | 
						|
 * (C) Copyright 2000-2009
 | 
						|
 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __IRQ_FUNC_H
 | 
						|
#define __IRQ_FUNC_H
 | 
						|
 | 
						|
struct pt_regs;
 | 
						|
struct cmd_tbl;
 | 
						|
 | 
						|
typedef void (interrupt_handler_t)(void *arg);
 | 
						|
 | 
						|
int interrupt_init(void);
 | 
						|
void timer_interrupt(struct pt_regs *regs);
 | 
						|
void external_interrupt(struct pt_regs *regs);
 | 
						|
void irq_install_handler(int vec, interrupt_handler_t *handler, void *arg);
 | 
						|
void irq_free_handler(int vec);
 | 
						|
void reset_timer(void);
 | 
						|
 | 
						|
void enable_interrupts(void);
 | 
						|
int disable_interrupts(void);
 | 
						|
 | 
						|
/* Implemented in $(CPU)/interrupts.c */
 | 
						|
int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 | 
						|
 | 
						|
#endif
 |