Lines Matching refs:via2
39 volatile __u8 *via1, *via2; variable
121 via2 = NULL; in via_init()
125 via2 = (void *) RBV_BASE; in via_init()
148 via2 = (void *) VIA2_BASE; in via_init()
163 printk(KERN_INFO "VIA2 at %p is ", via2); in via_init()
232 via2[gIER] = 0x7F; in via_init()
233 via2[gIFR] = 0x7F | rbv_clear; in via_init()
235 via2[vT1LL] = 0; in via_init()
236 via2[vT1LH] = 0; in via_init()
237 via2[vT1CL] = 0; in via_init()
238 via2[vT1CH] = 0; in via_init()
239 via2[vT2CL] = 0; in via_init()
240 via2[vT2CH] = 0; in via_init()
241 via2[vACR] &= ~0xC0; /* setup T1 timer with no PB7 output */ in via_init()
242 via2[vACR] &= ~0x03; /* disable port A & B latches */ in via_init()
260 pr_debug("VIA2 vPCR is 0x%02X\n", via2[vPCR]); in via_init()
263 via2[vPCR] = 0x66; in via_init()
266 via2[vPCR] = 0x22; in via_init()
284 (uint) via2[rIFR], (uint) via2[rIER]); in via_debug_dump()
286 (uint) via2[rSIFR], (uint) via2[rSIER]); in via_debug_dump()
289 (uint) via2[vDirA], (uint) via2[vDirB], in via_debug_dump()
290 (uint) via2[vACR]); in via_debug_dump()
292 (uint) via2[vPCR], in via_debug_dump()
293 (uint) via2[vIFR], (uint) via2[vIER]); in via_debug_dump()
307 via2[gBufB] &= ~VIA2B_vMode32; in via_l2_flush()
308 via2[gBufB] |= VIA2B_vMode32; in via_l2_flush()
319 if (!via2) { in via_get_cache_disable()
324 return (int) via2[gBufB] & VIA2B_vCDis; in via_get_cache_disable()
339 via2[vDirB] |= 0x02; in via_nubus_init()
343 via2[gBufB] |= 0x02; in via_nubus_init()
354 pr_debug("VIA2 vDirA is 0x%02X\n", via2[vDirA]); in via_nubus_init()
358 via2[rSIER] = 0x7F; in via_nubus_init()
373 via2[vDirA] &= 0xC0 | ~(1 << irq_idx); in via_nubus_irq_startup()
376 via2[vDirA] &= 0x80 | ~(1 << irq_idx); in via_nubus_irq_startup()
447 events = via2[gIFR] & via2[gIER] & 0x7F; in via2_irq()
455 via2[gIFR] = irq_bit | rbv_clear; in via2_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()
494 via2[gIFR] = 0x02 | rbv_clear; in via_nubus_irq()
495 events = ~via2[gBufA] & 0x7F; in via_nubus_irq()
497 events &= via2[rSIER]; in via_nubus_irq()
499 events &= ~via2[vDirA]; in via_nubus_irq()
533 via2[gIER] = IER_SET_BIT(irq_idx); in via_irq_enable()
541 via2[gIER] = IER_SET_BIT(1); in via_irq_enable()
547 via2[rSIER] = IER_SET_BIT(irq_idx); in via_irq_enable()
564 via2[gIER] = IER_CLR_BIT(irq_idx); in via_irq_disable()
571 via2[gIER] = IER_CLR_BIT(1); in via_irq_disable()
574 via2[rSIER] = IER_CLR_BIT(irq_idx); in via_irq_disable()
591 return via2[gIFR] & (1 << IRQ_IDX(IRQ_MAC_SCSIDRQ)); in via2_scsi_drq_pending()