Lines Matching refs:via2
155 static volatile unsigned char __iomem *via2; variable
348 via1 = via2 = ioremap(taddr, 0x2000); in find_via_pmu()
368 via1 = via2 = NULL; in find_via_pmu()
576 out_8(&via2[B], in_8(&via2[B]) | TREQ); in init_pmu()
577 out_8(&via2[DIRB], (in_8(&via2[DIRB]) | TREQ) & ~TACK); in init_pmu()
1187 while ((in_8(&via2[B]) & TACK) == 0) { in wait_for_ack()
1203 out_8(&via2[B], in_8(&via2[B]) & ~TREQ); /* assert TREQ */ in send_byte()
1204 (void)in_8(&via2[B]); in send_byte()
1212 out_8(&via2[B], in_8(&via2[B]) & ~TREQ); in recv_byte()
1213 (void)in_8(&via2[B]); in recv_byte()
1472 if (in_8(&via2[B]) & TREQ) { in pmu_sr_intr()
1473 printk(KERN_ERR "PMU: spurious SR intr (%x)\n", in_8(&via2[B])); in pmu_sr_intr()
1477 while ((in_8(&via2[B]) & TACK) != 0) in pmu_sr_intr()
1485 out_8(&via2[B], in_8(&via2[B]) | TREQ); in pmu_sr_intr()
2498 via2[B] &= ~TREQ; eieio(); in polled_handshake()
2499 while ((via2[B] & TACK) != 0) in polled_handshake()
2501 via2[B] |= TREQ; eieio(); in polled_handshake()
2502 while ((via2[B] & TACK) == 0) in polled_handshake()
2542 while ((via2[B] & TACK) == 0) in pmu_polled_request()