The old ctrl in/out routines are non-portable and unsuitable for cross-platform use. While drivers/sh has already been sanitized, there is still quite a lot of code that is not. This converts the arch/sh/ bits over, which permits us to flag the routines as deprecated whilst still building with -Werror for the architecture code, and to ensure that future users are not added. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
		
			
				
	
	
		
			45 lines
		
	
	
	
		
			1,015 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			1,015 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * linux/arch/sh/boards/se/7721/irq.c
 | 
						|
 *
 | 
						|
 * Copyright (C) 2008  Renesas Solutions Corp.
 | 
						|
 *
 | 
						|
 * 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.
 | 
						|
 */
 | 
						|
#include <linux/init.h>
 | 
						|
#include <linux/irq.h>
 | 
						|
#include <linux/interrupt.h>
 | 
						|
#include <linux/io.h>
 | 
						|
#include <mach-se/mach/se7721.h>
 | 
						|
 | 
						|
enum {
 | 
						|
	UNUSED = 0,
 | 
						|
 | 
						|
	/* board specific interrupt sources */
 | 
						|
	MRSHPC,
 | 
						|
};
 | 
						|
 | 
						|
static struct intc_vect vectors[] __initdata = {
 | 
						|
	INTC_IRQ(MRSHPC, MRSHPC_IRQ0),
 | 
						|
};
 | 
						|
 | 
						|
static struct intc_prio_reg prio_registers[] __initdata = {
 | 
						|
	{ FPGA_ILSR6, 0, 8, 4, /* IRLMSK */
 | 
						|
	  { 0, MRSHPC } },
 | 
						|
};
 | 
						|
 | 
						|
static DECLARE_INTC_DESC(intc_desc, "SE7721", vectors,
 | 
						|
			 NULL, NULL, prio_registers, NULL);
 | 
						|
 | 
						|
/*
 | 
						|
 * Initialize IRQ setting
 | 
						|
 */
 | 
						|
void __init init_se7721_IRQ(void)
 | 
						|
{
 | 
						|
	/* PPCR */
 | 
						|
	__raw_writew(__raw_readw(0xa4050118) & ~0x00ff, 0xa4050118);
 | 
						|
 | 
						|
	register_intc_controller(&intc_desc);
 | 
						|
	intc_set_priority(MRSHPC_IRQ0, 0xf - MRSHPC_IRQ0);
 | 
						|
}
 |