Lines Matching +full:c +full:- +full:45
1 // SPDX-License-Identifier: GPL-2.0
3 * linux/arch/alpha/kernel/sys_dp264.c
5 * Copyright (C) 1995 David A Rusling
6 * Copyright (C) 1996, 1999 Jay A Estabrook
7 * Copyright (C) 1998, 1999 Richard Henderson
9 * Modified by Christopher C. Chimelis, 2001 to
68 dim0 = &cchip->dim0.csr; in tsunami_update_irq_hw()
69 dim1 = &cchip->dim1.csr; in tsunami_update_irq_hw()
70 dim2 = &cchip->dim2.csr; in tsunami_update_irq_hw()
71 dim3 = &cchip->dim3.csr; in tsunami_update_irq_hw()
88 if (bcpu == 0) dimB = &cchip->dim0.csr; in tsunami_update_irq_hw()
89 else if (bcpu == 1) dimB = &cchip->dim1.csr; in tsunami_update_irq_hw()
90 else if (bcpu == 2) dimB = &cchip->dim2.csr; in tsunami_update_irq_hw()
91 else dimB = &cchip->dim3.csr; in tsunami_update_irq_hw()
103 cached_irq_mask |= 1UL << d->irq; in dp264_enable_irq()
112 cached_irq_mask &= ~(1UL << d->irq); in dp264_disable_irq()
121 cached_irq_mask |= 1UL << (d->irq - 16); in clipper_enable_irq()
130 cached_irq_mask &= ~(1UL << (d->irq - 16)); in clipper_disable_irq()
155 cpu_set_irq_affinity(d->irq, *affinity); in dp264_set_affinity()
167 cpu_set_irq_affinity(d->irq - 16, *affinity); in clipper_set_affinity()
197 pld = TSUNAMI_cchip->dir0.csr; in dp264_device_interrupt()
205 pld &= pld - 1; /* clear least bit set */ in dp264_device_interrupt()
218 irq = (vector - 0x800) >> 4; in dp264_srm_device_interrupt()
223 * 0x900 + (0x10 * DRIR-bit) in dp264_srm_device_interrupt()
232 irq -= 16; in dp264_srm_device_interrupt()
242 irq = (vector - 0x800) >> 4; in clipper_srm_device_interrupt()
247 * 0x900 + (0x10 * DRIR-bit) in clipper_srm_device_interrupt()
251 * CLIPPER uses bits 8-47 for PCI interrupts, so we do not need in clipper_srm_device_interrupt()
309 * 0-17 Unused
313 *21 Interrupt Line C from slot 2 PCI0
317 *25 Interrupt Line C from slot 1 PCI0
321 *29 Interrupt Line C from slot 0 PCI0
326 *33 Interrupt Line C from slot 3 PCI1
330 *37 Interrupt Line C from slot 2 PCI1
334 *41 Interrupt Line C from slot 1 PCI1
338 *45 Interrupt Line C from slot 0 PCI1
341 *48-52 Unused
345 *56-60 Unused
380 { -1, -1, -1, -1, -1}, /* IdSel 5 ISA Bridge */ in dp264_map_irq()
388 struct pci_controller *hose = dev->sysdata; in dp264_map_irq()
392 irq += 16 * hose->index; in dp264_map_irq()
402 { 45, 45, 45, 45, 45}, /* IdSel 3 21143 PCI1 */ in monet_map_irq()
403 { -1, -1, -1, -1, -1}, /* IdSel 4 unused */ in monet_map_irq()
404 { -1, -1, -1, -1, -1}, /* IdSel 5 unused */ in monet_map_irq()
406 { -1, -1, -1, -1, -1}, /* IdSel 7 ISA Bridge */ in monet_map_irq()
407 { -1, -1, -1, -1, -1}, /* IdSel 8 P2P PCI1 */ in monet_map_irq()
412 { -1, -1, -1, -1, -1}, /* IdSel 9 unused */ in monet_map_irq()
413 { -1, -1, -1, -1, -1}, /* IdSel 10 unused */ in monet_map_irq()
429 struct pci_controller *hose = dev->sysdata; in monet_swizzle()
432 if (!dev->bus->parent) { in monet_swizzle()
433 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
435 /* Check for the built-in bridge on hose 1. */ in monet_swizzle()
436 else if (hose->index == 1 && PCI_SLOT(dev->bus->self->devfn) == 8) { in monet_swizzle()
437 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
439 /* Must be a card-based bridge. */ in monet_swizzle()
441 /* Check for built-in bridge on hose 1. */ in monet_swizzle()
442 if (hose->index == 1 && in monet_swizzle()
443 PCI_SLOT(dev->bus->self->devfn) == 8) { in monet_swizzle()
444 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
450 dev = dev->bus->self; in monet_swizzle()
452 slot = PCI_SLOT(dev->devfn); in monet_swizzle()
453 } while (dev->bus->self); in monet_swizzle()
464 { -1, -1, -1, -1, -1}, /* IdSel 7 ISA Bridge */ in webbrick_map_irq()
465 { -1, -1, -1, -1, -1}, /* IdSel 8 unused */ in webbrick_map_irq()
467 { -1, -1, -1, -1, -1}, /* IdSel 10 unused */ in webbrick_map_irq()
469 { -1, -1, -1, -1, -1}, /* IdSel 12 unused */ in webbrick_map_irq()
470 { -1, -1, -1, -1, -1}, /* IdSel 13 unused */ in webbrick_map_irq()
474 { 47, 47, 46, 45, 44}, /* IdSel 17 slot 3 */ in webbrick_map_irq()
492 { -1, -1, -1, -1, -1} /* IdSel 7 ISA Bridge */ in clipper_map_irq()
495 struct pci_controller *hose = dev->sysdata; in clipper_map_irq()
499 irq += 16 * hose->index; in clipper_map_irq()
534 hose_head->sg_isa->align_entry = 4; in webbrick_init_arch()
535 hose_head->sg_pci->align_entry = 4; in webbrick_init_arch()