Lines Matching refs:via2

43 volatile __u8 *via1, *via2;  variable
119 via2 = NULL; in via_init()
127 via2 = (void *)RBV_BASE; in via_init()
128 pr_debug("VIA2 (RBV) detected at %p\n", via2); in via_init()
148 via2 = (void *) VIA2_BASE; in via_init()
149 pr_debug("VIA2 detected at %p\n", via2); in via_init()
225 via2[gIER] = 0x7F; in via_init()
226 via2[gIFR] = 0x7F | rbv_clear; in via_init()
228 via2[vT1CL] = 0; in via_init()
229 via2[vT1CH] = 0; in via_init()
230 via2[vT2CL] = 0; in via_init()
231 via2[vT2CH] = 0; in via_init()
232 via2[vACR] &= ~0xC0; /* setup T1 timer with no PB7 output */ in via_init()
233 via2[vACR] &= ~0x03; /* disable port A & B latches */ in via_init()
253 pr_debug("VIA2 vPCR is 0x%02X\n", via2[vPCR]); in via_init()
256 via2[vPCR] = 0x66; in via_init()
259 via2[vPCR] = 0x22; in via_init()
273 if (!via2) in via_debug_dump()
277 (uint) via2[rIFR], (uint) via2[rIER]); in via_debug_dump()
279 (uint) via2[rSIFR], (uint) via2[rSIER]); in via_debug_dump()
282 (uint) via2[vDirA], (uint) via2[vDirB], in via_debug_dump()
283 (uint) via2[vACR]); in via_debug_dump()
285 (uint) via2[vPCR], in via_debug_dump()
286 (uint) via2[vIFR], (uint) via2[vIER]); in via_debug_dump()
300 via2[gBufB] &= ~VIA2B_vMode32; in via_l2_flush()
301 via2[gBufB] |= VIA2B_vMode32; in via_l2_flush()
317 via2[vDirB] |= 0x02; in via_nubus_init()
321 via2[gBufB] |= 0x02; in via_nubus_init()
332 pr_debug("VIA2 vDirA is 0x%02X\n", via2[vDirA]); in via_nubus_init()
336 via2[rSIER] = 0x7F; in via_nubus_init()
351 via2[vDirA] &= 0xC0 | ~(1 << irq_idx); in via_nubus_irq_startup()
354 via2[vDirA] &= 0x80 | ~(1 << irq_idx); in via_nubus_irq_startup()
425 events = via2[gIFR] & via2[gIER] & 0x7F; in via2_irq()
433 via2[gIFR] = irq_bit | rbv_clear; in via2_irq()
451 events = ~via2[gBufA] & 0x7F; in via_nubus_irq()
453 events &= via2[rSIER]; in via_nubus_irq()
455 events &= ~via2[vDirA]; in via_nubus_irq()
472 via2[gIFR] = 0x02 | rbv_clear; in via_nubus_irq()
473 events = ~via2[gBufA] & 0x7F; in via_nubus_irq()
475 events &= via2[rSIER]; in via_nubus_irq()
477 events &= ~via2[vDirA]; in via_nubus_irq()
507 via2[gIER] = IER_SET_BIT(irq_idx); in via_irq_enable()
515 via2[gIER] = IER_SET_BIT(1); in via_irq_enable()
521 via2[rSIER] = IER_SET_BIT(irq_idx); in via_irq_enable()
534 via2[gIER] = IER_CLR_BIT(irq_idx); in via_irq_disable()
541 via2[gIER] = IER_CLR_BIT(1); in via_irq_disable()
544 via2[rSIER] = IER_CLR_BIT(irq_idx); in via_irq_disable()
561 return via2[gIFR] & (1 << IRQ_IDX(IRQ_MAC_SCSIDRQ)); in via2_scsi_drq_pending()