Lines Matching defs:via1
39 volatile __u8 *via1, *via2;
106 via1 = (void *) VIA1_BASE;
134 via1 = (void *) VIA1_BASE;
148 printk(KERN_INFO "VIA1 at %p is a 6522 or clone\n", via1);
168 via1[vIER] = 0x7F;
169 via1[vIFR] = 0x7F;
170 via1[vT1LL] = 0;
171 via1[vT1LH] = 0;
172 via1[vT1CL] = 0;
173 via1[vT1CH] = 0;
174 via1[vT2CL] = 0;
175 via1[vT2CH] = 0;
176 via1[vACR] &= ~0xC0; /* setup T1 timer with no PB7 output */
177 via1[vACR] &= ~0x03; /* disable port A & B latches */
181 via1[vDirB] |= 0x40;
182 via1[vBufB] |= 0x40;
190 via1[vDirB] |= (VIA1B_vRTCEnb | VIA1B_vRTCClk | VIA1B_vRTCData);
191 via1[vBufB] |= (VIA1B_vRTCEnb | VIA1B_vRTCClk);
226 via1[vDirB] |= 0x40;
227 via1[vBufB] &= ~0x40;
274 via1[vACR] |= 0x40;
275 via1[vT1LL] = MAC_CLOCK_LOW;
276 via1[vT1LH] = MAC_CLOCK_HIGH;
277 via1[vT1CL] = MAC_CLOCK_LOW;
278 via1[vT1CH] = MAC_CLOCK_HIGH;
293 (void *) via1))
296 IRQ_FLG_LOCK|IRQ_FLG_FAST, "via1",
297 (void *) via1))
298 pr_err("Couldn't register %s interrupt\n", "via1");
301 IRQ_FLG_LOCK|IRQ_FLG_FAST, "via1",
302 (void *) via1))
303 pr_err("Couldn't register %s interrupt\n", "via1");
320 (uint) via1[vDirA], (uint) via1[vDirB], (uint) via1[vACR]);
322 (uint) via1[vPCR], (uint) via1[vIFR], (uint) via1[vIER]);
351 ticks = via1[vT1CL] | (via1[vT1CH] << 8);
355 if (via1[vIFR] & 0x40) offset = TICK_SIZE;
450 events = via1[vIFR] & via1[vIER] & 0x7F;
458 via1[vIFR] = irq_bit;
539 via1[vIER] = IER_SET_BIT(irq_idx);
578 via1[vIER] = IER_CLR_BIT(irq_idx);
606 via1[vIFR] = irq_bit;
625 return via1[vIFR] & irq_bit;
638 via1[vBufA] &= ~VIA1A_vHeadSel;
640 via1[vBufA] |= VIA1A_vHeadSel;