Searched refs:VIA1 (Results 1 - 13 of 13) sorted by relevance
/netbsd-current/sys/arch/mac68k/mac68k/ |
H A D | clock.c | 125 * We use VIA1 timer 1. 135 via_reg(VIA1, vIER) = V1IF_T1 | V1IF_T2; 138 via_reg(VIA1, vACR) |= ACR_T1LATCH; 141 via_reg(VIA1, vT1L) = CLK_INTL; 142 via_reg(VIA1, vT1LH) = CLK_INTH; 145 via_reg(VIA1, vT1C) = CLK_INTL; 146 via_reg(VIA1, vT1CH) = CLK_INTH; 149 * Set & start VIA1 timer 2 free-running for timecounter support. 153 via_reg(VIA1, vT2C) = 0x0ff; 154 via_reg(VIA1, vT2C [all...] |
H A D | via.c | 74 /* VIA1 interrupt handler table */ 85 /* Arg array for VIA1 interrupts. */ 149 /* Initialize VIA1 */ 151 via_reg(VIA1, vT1L) = 0; 152 via_reg(VIA1, vT1LH) = 0; 153 via_reg(VIA1, vT1C) = 0; 154 via_reg(VIA1, vT1CH) = 0; 155 via_reg(VIA1, vT2C) = 0; 156 via_reg(VIA1, vT2CH) = 0; 159 via_reg(VIA1, vAC [all...] |
H A D | iop.c | 395 printf("loading msg to iop: cs: 0x%x V1-%x- ", (unsigned) iop->iop->control_status, (unsigned)via_reg(VIA1, vIFR)); 397 printf("msg loaded to iop: cs: 0x%x V1-%x- ", (unsigned) iop->iop->control_status, (unsigned)via_reg(VIA1, vIFR)); 401 printf(" cs: 0x%x V1-%x- ", (unsigned) iop->iop->control_status, (unsigned)via_reg(VIA1, vIFR));
|
H A D | machdep.c | 1980 via_reg(VIA1, vIER) = 0x7f; /* disable VIA1 int */ 1990 via_reg(VIA1, vIER) = 0x6f; /* disable VIA1 int */ 2008 via_reg(VIA1, vIER) = 0x6f; /* disable VIA1 int */ 2020 via_reg(VIA1, vIER) = 0x7f; /* disable VIA1 int */ 2032 via_reg(VIA1, vBufB) &= (0xff ^ DB1O_AuxIntEnb); 2033 via_reg(VIA1, vDir [all...] |
H A D | pramasm.s | 354 moveal _C_LABEL(Via1Base),%a1 | move VIA1 addr in reference reg 355 moveq #0,%d2 | zero out %d2 (it'll hold VIA1 reg B contents) 356 moveb %a1@,%d2 | and get VIA1 reg B contents 395 moveb %d2,%a1@ | set our VIA1 reg B contents to match 405 bclr #0,%a1@(0x0400) | set VIA1 reg B data line to input
|
H A D | macrom.c | 1115 via_reg(VIA1, vIFR) = 0x4; 1116 via_reg(VIA1, vIER) = 0x84;
|
/netbsd-current/sys/arch/macppc/dev/ |
H A D | adb_direct.c | 119 #define ADB_SET_STATE_IDLE_CUDA() via_reg_or(VIA1, vBufB, (vPB4 | vPB5)) 120 #define ADB_SET_STATE_TIP() via_reg_and(VIA1, vBufB, ~vPB5) 121 #define ADB_CLR_STATE_TIP() via_reg_or(VIA1, vBufB, vPB5) 122 #define ADB_TOGGLE_STATE_ACK_CUDA() via_reg_xor(VIA1, vBufB, vPB4) 123 #define ADB_SET_STATE_ACKOFF_CUDA() via_reg_or(VIA1, vBufB, vPB4) 124 #define ADB_SET_SR_INPUT() via_reg_and(VIA1, vACR, ~vSR_OUT) 125 #define ADB_SET_SR_OUTPUT() via_reg_or(VIA1, vACR, vSR_OUT) 126 #define ADB_SR() read_via_reg(VIA1, vSR) 127 #define ADB_VIA_INTR_ENABLE() write_via_reg(VIA1, vIER, 0x84) 128 #define ADB_VIA_INTR_DISABLE() write_via_reg(VIA1, vIE [all...] |
H A D | pm_direct.c | 72 #define PM_SR() read_via_reg(VIA1, vSR) 73 #define PM_VIA_INTR_ENABLE() write_via_reg(VIA1, vIER, 0x90) 74 #define PM_VIA_INTR_DISABLE() write_via_reg(VIA1, vIER, 0x10) 75 #define PM_VIA_CLR_INTR() write_via_reg(VIA1, vIFR, 0x90) 405 via_reg_or(VIA1, vACR, 0x0c); 406 via_reg_and(VIA1, vACR, ~0x10); 425 via_reg_or(VIA1, vACR, 0x1c); 440 via_reg_or(VIA1, vACR, 0x1c); 441 write_via_reg(VIA1, vSR, data); /* PM_SR() = data; */ 448 via_reg_or(VIA1, vAC [all...] |
H A D | viareg.h | 45 /* VIA1 data register A */ 56 /* VIA1 data register B */ 93 * VIA1 interrupts 103 /* VIA1 interrupt bits */ 148 #define VIA1 0 macro
|
/netbsd-current/sys/arch/mac68k/dev/ |
H A D | pm_direct.c | 71 #define PM_SR() via_reg(VIA1, vSR) 72 #define PM_VIA_INTR_ENABLE() via_reg(VIA1, vIER) = 0x90 73 #define PM_VIA_INTR_DISABLE() via_reg(VIA1, vIER) = 0x10 74 #define PM_VIA_CLR_INTR() via_reg(VIA1, vIFR) = 0x90 414 via1_vIER = via_reg(VIA1, vIER); 417 via1_vDirA = via_reg(VIA1, vDirA); 428 via_reg(VIA1, vDirA) = via1_vDirA; 429 via_reg(VIA1, vIER) = via1_vIER; 450 via_reg(VIA1, vIER) = via1_vIER; 458 via1_vDirA = via_reg(VIA1, vDir [all...] |
H A D | adb_direct.c | 131 #define ADB_SET_STATE_IDLE_II() via_reg(VIA1, vBufB) |= (vPB4 | vPB5) 132 #define ADB_SET_STATE_IDLE_IISI() via_reg(VIA1, vBufB) &= ~(vPB4 | vPB5) 133 #define ADB_SET_STATE_IDLE_CUDA() via_reg(VIA1, vBufB) |= (vPB4 | vPB5) 134 #define ADB_SET_STATE_CMD() via_reg(VIA1, vBufB) &= ~(vPB4 | vPB5) 135 #define ADB_SET_STATE_EVEN() via_reg(VIA1, vBufB) = ((via_reg(VIA1, \ 137 #define ADB_SET_STATE_ODD() via_reg(VIA1, vBufB) = ((via_reg(VIA1, \ 139 #define ADB_SET_STATE_ACTIVE() via_reg(VIA1, vBufB) |= vPB5 140 #define ADB_SET_STATE_INACTIVE() via_reg(VIA1, vBuf [all...] |
H A D | akbd.c | 535 intbits = via_reg(VIA1, vIFR); 539 via_reg(VIA1, vIFR) = V1IF_ADBRDY; 543 via_reg(VIA1, vIFR) = 0x10;
|
/netbsd-current/sys/arch/mac68k/include/ |
H A D | viareg.h | 45 /* VIA1 data register A */ 56 /* VIA1 data register B */ 94 * VIA1 interrupts 104 /* VIA1 interrupt bits */ 152 #define VIA1 0 macro
|
Completed in 242 milliseconds