via2 255 arch/m68k/include/asm/mac_via.h extern volatile __u8 *via1,*via2; via2 273 arch/m68k/include/asm/mac_via.h via2[rMonP] = (via2[rMonP] & ~RBV_DEPTH) | val; via2 324 arch/m68k/mac/misc.c via2[rBufB] &= ~0x04; via2 327 arch/m68k/mac/misc.c via2[vDirB] |= 0x04; via2 329 arch/m68k/mac/misc.c via2[vBufB] &= ~0x04; via2 41 arch/m68k/mac/via.c volatile __u8 *via1, *via2; via2 117 arch/m68k/mac/via.c via2 = NULL; via2 125 arch/m68k/mac/via.c via2 = (void *)RBV_BASE; via2 126 arch/m68k/mac/via.c pr_debug("VIA2 (RBV) detected at %p\n", via2); via2 146 arch/m68k/mac/via.c via2 = (void *) VIA2_BASE; via2 147 arch/m68k/mac/via.c pr_debug("VIA2 detected at %p\n", via2); via2 225 arch/m68k/mac/via.c via2[gIER] = 0x7F; via2 226 arch/m68k/mac/via.c via2[gIFR] = 0x7F | rbv_clear; via2 228 arch/m68k/mac/via.c via2[vT1LL] = 0; via2 229 arch/m68k/mac/via.c via2[vT1LH] = 0; via2 230 arch/m68k/mac/via.c via2[vT1CL] = 0; via2 231 arch/m68k/mac/via.c via2[vT1CH] = 0; via2 232 arch/m68k/mac/via.c via2[vT2CL] = 0; via2 233 arch/m68k/mac/via.c via2[vT2CH] = 0; via2 234 arch/m68k/mac/via.c via2[vACR] &= ~0xC0; /* setup T1 timer with no PB7 output */ via2 235 arch/m68k/mac/via.c via2[vACR] &= ~0x03; /* disable port A & B latches */ via2 255 arch/m68k/mac/via.c pr_debug("VIA2 vPCR is 0x%02X\n", via2[vPCR]); via2 258 arch/m68k/mac/via.c via2[vPCR] = 0x66; via2 261 arch/m68k/mac/via.c via2[vPCR] = 0x22; via2 275 arch/m68k/mac/via.c if (!via2) via2 279 arch/m68k/mac/via.c (uint) via2[rIFR], (uint) via2[rIER]); via2 281 arch/m68k/mac/via.c (uint) via2[rSIFR], (uint) via2[rSIER]); via2 284 arch/m68k/mac/via.c (uint) via2[vDirA], (uint) via2[vDirB], via2 285 arch/m68k/mac/via.c (uint) via2[vACR]); via2 287 arch/m68k/mac/via.c (uint) via2[vPCR], via2 288 arch/m68k/mac/via.c (uint) via2[vIFR], (uint) via2[vIER]); via2 299 arch/m68k/mac/via.c via2[gBufB] &= ~VIA2B_vMode32; via2 300 arch/m68k/mac/via.c via2[gBufB] |= VIA2B_vMode32; via2 310 arch/m68k/mac/via.c if (!via2) { via2 315 arch/m68k/mac/via.c return (int) via2[gBufB] & VIA2B_vCDis; via2 330 arch/m68k/mac/via.c via2[vDirB] |= 0x02; via2 334 arch/m68k/mac/via.c via2[gBufB] |= 0x02; via2 345 arch/m68k/mac/via.c pr_debug("VIA2 vDirA is 0x%02X\n", via2[vDirA]); via2 349 arch/m68k/mac/via.c via2[rSIER] = 0x7F; via2 364 arch/m68k/mac/via.c via2[vDirA] &= 0xC0 | ~(1 << irq_idx); via2 367 arch/m68k/mac/via.c via2[vDirA] &= 0x80 | ~(1 << irq_idx); via2 438 arch/m68k/mac/via.c events = via2[gIFR] & via2[gIER] & 0x7F; via2 446 arch/m68k/mac/via.c via2[gIFR] = irq_bit | rbv_clear; via2 464 arch/m68k/mac/via.c events = ~via2[gBufA] & 0x7F; via2 466 arch/m68k/mac/via.c events &= via2[rSIER]; via2 468 arch/m68k/mac/via.c events &= ~via2[vDirA]; via2 485 arch/m68k/mac/via.c via2[gIFR] = 0x02 | rbv_clear; via2 486 arch/m68k/mac/via.c events = ~via2[gBufA] & 0x7F; via2 488 arch/m68k/mac/via.c events &= via2[rSIER]; via2 490 arch/m68k/mac/via.c events &= ~via2[vDirA]; via2 520 arch/m68k/mac/via.c via2[gIER] = IER_SET_BIT(irq_idx); via2 528 arch/m68k/mac/via.c via2[gIER] = IER_SET_BIT(1); via2 534 arch/m68k/mac/via.c via2[rSIER] = IER_SET_BIT(irq_idx); via2 547 arch/m68k/mac/via.c via2[gIER] = IER_CLR_BIT(irq_idx); via2 554 arch/m68k/mac/via.c via2[gIER] = IER_CLR_BIT(1); via2 557 arch/m68k/mac/via.c via2[rSIER] = IER_CLR_BIT(irq_idx); via2 574 arch/m68k/mac/via.c return via2[gIFR] & (1 << IRQ_IDX(IRQ_MAC_SCSIDRQ)); via2 159 drivers/macintosh/via-pmu.c static volatile unsigned char __iomem *via2; via2 360 drivers/macintosh/via-pmu.c via1 = via2 = ioremap(taddr, 0x2000); via2 380 drivers/macintosh/via-pmu.c via1 = via2 = NULL; via2 590 drivers/macintosh/via-pmu.c out_8(&via2[B], in_8(&via2[B]) | TREQ); via2 591 drivers/macintosh/via-pmu.c out_8(&via2[DIRB], (in_8(&via2[DIRB]) | TREQ) & ~TACK); via2 1200 drivers/macintosh/via-pmu.c while ((in_8(&via2[B]) & TACK) == 0) { via2 1216 drivers/macintosh/via-pmu.c out_8(&via2[B], in_8(&via2[B]) & ~TREQ); /* assert TREQ */ via2 1217 drivers/macintosh/via-pmu.c (void)in_8(&via2[B]); via2 1225 drivers/macintosh/via-pmu.c out_8(&via2[B], in_8(&via2[B]) & ~TREQ); via2 1226 drivers/macintosh/via-pmu.c (void)in_8(&via2[B]); via2 1485 drivers/macintosh/via-pmu.c if (in_8(&via2[B]) & TREQ) { via2 1486 drivers/macintosh/via-pmu.c printk(KERN_ERR "PMU: spurious SR intr (%x)\n", in_8(&via2[B])); via2 1490 drivers/macintosh/via-pmu.c while ((in_8(&via2[B]) & TACK) != 0) via2 1498 drivers/macintosh/via-pmu.c out_8(&via2[B], in_8(&via2[B]) | TREQ); via2 2512 drivers/macintosh/via-pmu.c via2[B] &= ~TREQ; eieio(); via2 2513 drivers/macintosh/via-pmu.c while ((via2[B] & TACK) != 0) via2 2515 drivers/macintosh/via-pmu.c via2[B] |= TREQ; eieio(); via2 2516 drivers/macintosh/via-pmu.c while ((via2[B] & TACK) == 0) via2 2556 drivers/macintosh/via-pmu.c while ((via2[B] & TACK) == 0)