Lines Matching refs:via2
41 volatile __u8 *via1, *via2; variable
117 via2 = NULL; in via_init()
125 via2 = (void *)RBV_BASE; in via_init()
126 pr_debug("VIA2 (RBV) detected at %p\n", via2); in via_init()
146 via2 = (void *) VIA2_BASE; in via_init()
147 pr_debug("VIA2 detected at %p\n", via2); in via_init()
223 via2[gIER] = 0x7F; in via_init()
224 via2[gIFR] = 0x7F | rbv_clear; in via_init()
226 via2[vT1CL] = 0; in via_init()
227 via2[vT1CH] = 0; in via_init()
228 via2[vT2CL] = 0; in via_init()
229 via2[vT2CH] = 0; in via_init()
230 via2[vACR] &= ~0xC0; /* setup T1 timer with no PB7 output */ in via_init()
231 via2[vACR] &= ~0x03; /* disable port A & B latches */ in via_init()
251 pr_debug("VIA2 vPCR is 0x%02X\n", via2[vPCR]); in via_init()
254 via2[vPCR] = 0x66; in via_init()
257 via2[vPCR] = 0x22; in via_init()
271 if (!via2) in via_debug_dump()
275 (uint) via2[rIFR], (uint) via2[rIER]); in via_debug_dump()
277 (uint) via2[rSIFR], (uint) via2[rSIER]); in via_debug_dump()
280 (uint) via2[vDirA], (uint) via2[vDirB], in via_debug_dump()
281 (uint) via2[vACR]); in via_debug_dump()
283 (uint) via2[vPCR], in via_debug_dump()
284 (uint) via2[vIFR], (uint) via2[vIER]); in via_debug_dump()
298 via2[gBufB] &= ~VIA2B_vMode32; in via_l2_flush()
299 via2[gBufB] |= VIA2B_vMode32; in via_l2_flush()
315 via2[vDirB] |= 0x02; in via_nubus_init()
319 via2[gBufB] |= 0x02; in via_nubus_init()
330 pr_debug("VIA2 vDirA is 0x%02X\n", via2[vDirA]); in via_nubus_init()
334 via2[rSIER] = 0x7F; in via_nubus_init()
349 via2[vDirA] &= 0xC0 | ~(1 << irq_idx); in via_nubus_irq_startup()
352 via2[vDirA] &= 0x80 | ~(1 << irq_idx); in via_nubus_irq_startup()
423 events = via2[gIFR] & via2[gIER] & 0x7F; in via2_irq()
431 via2[gIFR] = irq_bit | rbv_clear; in via2_irq()
449 events = ~via2[gBufA] & 0x7F; in via_nubus_irq()
451 events &= via2[rSIER]; in via_nubus_irq()
453 events &= ~via2[vDirA]; in via_nubus_irq()
470 via2[gIFR] = 0x02 | rbv_clear; in via_nubus_irq()
471 events = ~via2[gBufA] & 0x7F; in via_nubus_irq()
473 events &= via2[rSIER]; in via_nubus_irq()
475 events &= ~via2[vDirA]; in via_nubus_irq()
505 via2[gIER] = IER_SET_BIT(irq_idx); in via_irq_enable()
513 via2[gIER] = IER_SET_BIT(1); in via_irq_enable()
519 via2[rSIER] = IER_SET_BIT(irq_idx); in via_irq_enable()
532 via2[gIER] = IER_CLR_BIT(irq_idx); in via_irq_disable()
539 via2[gIER] = IER_CLR_BIT(1); in via_irq_disable()
542 via2[rSIER] = IER_CLR_BIT(irq_idx); in via_irq_disable()
559 return via2[gIFR] & (1 << IRQ_IDX(IRQ_MAC_SCSIDRQ)); in via2_scsi_drq_pending()