Lines Matching refs:MFP
59 #include <machine/mfp.h>
74 * The MFP clock runs at 2457600Hz. We use a {system,stat,prof}clock divider
186 * Initialize Timer-A in the ST-MFP. We use a divisor of 200.
187 * The MFP clock runs at 2457600Hz. Therefore the timer runs
192 MFP->mf_tacr = 0; /* Stop timer */
193 MFP->mf_iera &= ~IA_TIMA; /* Disable timer interrupts */
194 MFP->mf_tadr = divisor; /* Set divisor */
212 MFP->mf_tcdcr &= 0x7; /* Stop timer */
213 MFP->mf_ierb &= ~IB_TIMC; /* Disable timer inter. */
214 MFP->mf_tcdr = CLOCK_HZ/stathz; /* Set divisor */
226 MFP->mf_tacr = T_Q200; /* Start timer */
227 MFP->mf_ipra = (u_int8_t)~IA_TIMA;/* Clear pending interrupts */
228 MFP->mf_iera |= IA_TIMA; /* Enable timer interrupts */
229 MFP->mf_imra |= IA_TIMA; /* ..... */
232 MFP->mf_tcdcr = (MFP->mf_tcdcr & 0x7) | (T_Q200<<4); /* Start */
233 MFP->mf_iprb = (u_int8_t)~IB_TIMC;/* Clear pending interrupts */
234 MFP->mf_ierb |= IB_TIMC; /* Enable timer interrupts */
235 MFP->mf_imrb |= IB_TIMC; /* ..... */
268 MFP->mf_tcdr = clk2min + r;
284 ipra = MFP->mf_ipra;
285 tadr = MFP->mf_tadr;
310 * Initialize Timer-B in the ST-MFP. This timer is used by
316 MFP->mf_tbcr = 0; /* Stop timer */
317 MFP->mf_iera &= ~IA_TIMB; /* Disable timer interrupts */
318 MFP->mf_tbdr = 0;
319 MFP->mf_tbcr = T_Q004; /* Start timer */
324 * Relies on MFP-Timer B counting down from TIMB_LIMIT at TIMB_FREQ Hz.
336 otick = MFP->mf_tbdr;
352 ticks = MFP->mf_tbdr;