Lines Matching +full:irq +full:- +full:signals
1 // SPDX-License-Identifier: GPL-2.0
7 * exclusively use the autovector interrupts (the 'generic level0-level7'
8 * interrupts with exception vectors 0x19-0x1f). The following interrupt levels
10 * 1 - VIA1
11 * - slot 0: one second interrupt (CA2)
12 * - slot 1: VBlank (CA1)
13 * - slot 2: ADB data ready (SR full)
14 * - slot 3: ADB data (CB2)
15 * - slot 4: ADB clock (CB1)
16 * - slot 5: timer 2
17 * - slot 6: timer 1
18 * - slot 7: status of IRQ; signals 'any enabled int.'
20 * 2 - VIA2 or RBV
21 * - slot 0: SCSI DRQ (CA2)
22 * - slot 1: NUBUS IRQ (CA1) need to read port A to find which
23 * - slot 2: /EXP IRQ (only on IIci)
24 * - slot 3: SCSI IRQ (CB2)
25 * - slot 4: ASC IRQ (CB1)
26 * - slot 5: timer 2 (not on IIci)
27 * - slot 6: timer 1 (not on IIci)
28 * - slot 7: status of IRQ; signals 'any enabled int.'
30 * Levels 3-6 vary by machine type. For VIA or RBV Macintoshes:
32 * 3 - unused (?)
34 * 4 - SCC
36 * 5 - unused (?)
40 * 6 - off switch (?)
42 * Machines with Quadra-like VIA hardware, except PSC and PMU machines, support
46 * 1 - unused (?)
48 * 3 - on-board SONIC
50 * 5 - Apple Sound Chip (ASC)
52 * 6 - VIA1
57 * 1 - ISM IOP (ADB)
59 * 2 - SCSI
61 * 3 - NuBus
63 * 4 - SCC IOP
65 * 6 - VIA1
69 * 3 - PSC level 3
70 * - slot 0: MACE
72 * 4 - PSC level 4
73 * - slot 1: SCC channel A interrupt
74 * - slot 2: SCC channel B interrupt
75 * - slot 3: MACE DMA
77 * 5 - PSC level 5
79 * 6 - PSC level 6
81 * Finally we have good 'ole level 7, the non-maskable interrupt:
83 * 7 - NMI (programmer's switch on the back of some Macs)
88 * - We install dispatchers for the autovector interrupts (1-7). These
96 * - Nubus is a special case because its interrupts are hidden behind two
98 * which translates to IRQ number 17. In this spot we install _another_
99 * dispatcher. This dispatcher finds the interrupting slot number (9-F) and
101 * minus 9 in the low three bits and the pseudo-level 7 in the upper five
103 * called. This puts Nubus interrupts into the range 56-62.
105 * - The Baboon interrupts (used on some PowerBooks) are an even more special
116 #include <linux/irq.h>
119 #include <asm/irq.h>
142 static irqreturn_t mac_nmi_handler(int irq, void *dev_id) in mac_nmi_handler() argument
150 pr_info("Non-Maskable Interrupt\n"); in mac_nmi_handler()
160 NUM_MAC_SOURCES - IRQ_USER); in mac_init_IRQ()
163 * Now register the handlers for the master IRQ handlers in mac_init_IRQ()
164 * at levels 1-7. Most of the work is done elsewhere. in mac_init_IRQ()
182 * mac_irq_enable - enable an interrupt source
183 * mac_irq_disable - disable an interrupt source
190 int irq = data->irq; in mac_irq_enable() local
191 int irq_src = IRQ_SRC(irq); in mac_irq_enable()
198 oss_irq_enable(irq); in mac_irq_enable()
200 via_irq_enable(irq); in mac_irq_enable()
207 psc_irq_enable(irq); in mac_irq_enable()
209 oss_irq_enable(irq); in mac_irq_enable()
213 baboon_irq_enable(irq); in mac_irq_enable()
220 int irq = data->irq; in mac_irq_disable() local
221 int irq_src = IRQ_SRC(irq); in mac_irq_disable()
228 oss_irq_disable(irq); in mac_irq_disable()
230 via_irq_disable(irq); in mac_irq_disable()
237 psc_irq_disable(irq); in mac_irq_disable()
239 oss_irq_disable(irq); in mac_irq_disable()
243 baboon_irq_disable(irq); in mac_irq_disable()
250 int irq = data->irq; in mac_irq_startup() local
252 if (IRQ_SRC(irq) == 7 && !oss_present) in mac_irq_startup()
253 via_nubus_irq_startup(irq); in mac_irq_startup()
262 int irq = data->irq; in mac_irq_shutdown() local
264 if (IRQ_SRC(irq) == 7 && !oss_present) in mac_irq_shutdown()
265 via_nubus_irq_shutdown(irq); in mac_irq_shutdown()