Lines Matching +full:external +full:- +full:irqs
1 // SPDX-License-Identifier: GPL-2.0
3 * arch/sh/boards/mach-x3proto/ilsel.c
5 * Helper routines for SH-X3 proto board ILSEL.
7 * Copyright (C) 2007 - 2010 Paul Mundt
21 * ILSEL0 - 0xb8100004 [ Levels 1 - 4 ]
22 * ILSEL1 - 0xb8100006 [ Levels 5 - 8 ]
23 * ILSEL2 - 0xb8100008 [ Levels 9 - 12 ]
24 * ILSEL3 - 0xb810000a [ Levels 13 - 15 ]
34 * Supported levels are 1 - 15 spread across ILSEL0 - ILSEL4, mapping
35 * directly to IRLs. As the IRQs are numbered in reverse order relative
48 return ILSEL_LEVELS - bit - 1; in ilsel_offset()
71 pr_debug("%s: bit#%d: addr - 0x%08lx (shift %d, set %d)\n", in __ilsel_enable()
81 * ilsel_enable - Enable an ILSEL set.
82 * @set: ILSEL source (see ilsel_source_t enum in include/asm-sh/ilsel.h).
84 * Enables a given non-aliased ILSEL source (<= ILSEL_KEY) at the highest
86 * noting descending interrupt levels. Aliasing FPGA and external board
87 * IRQs need to use ilsel_enable_fixed().
98 return -EINVAL; in ilsel_enable()
112 * ilsel_enable_fixed - Enable an ILSEL set at a fixed interrupt level
113 * @set: ILSEL source (see ilsel_source_t enum in include/asm-sh/ilsel.h).
114 * @level: Interrupt level (1 - 15)
124 unsigned int bit = ilsel_offset(level - 1); in ilsel_enable_fixed()
127 return -EBUSY; in ilsel_enable_fixed()
136 * ilsel_disable - Disable an ILSEL set