pr_info("\r\n\nCalled bvme6000_reset\r\n" "\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r"); /* The string of returns is to delay the reset until the whole
* message is output. */ /* Enable the watchdog, via PIT port C bit 4 */
/* * This function is called during kernel startup to initialize * the bvme6000 IRQ handling routines.
*/ staticvoid __init bvme6000_init_IRQ(void)
{
m68k_setup_user_interrupt(VEC_USER, 192);
}
/* Board type is only set by newer versions of vmelilo/tftplilo */ if (!vme_brdtype) { if (m68k_cputype == CPU_68060)
vme_brdtype = VME_TYPE_BVME6000; else
vme_brdtype = VME_TYPE_BVME4000;
} #if 0 /* Call bvme6000_set_vectors() so ABORT will work, along with BVMBug * debugger. Note trap_init() will splat the abort vector, but
* bvme6000_init_IRQ() will put it back again. Hopefully. */
/* * Set up the RTC timer 1 to mode 2, so T1 output toggles every 5ms * (40000 x 125ns). It will interrupt every 10ms, when T1 goes low. * So, when reading the elapsed time, you should read timer1, * subtract it from 39999, and then add 40000 if T1 is high. * That gives you the number of 125ns ticks in to the 10ms period, * so divide by 8 to get the microsecond result.
*/
/* * NOTE: Don't accept any readings within 5us of rollover, as * the T1INT bit may be a little slow getting set. There is also * a fault in the chip, meaning that reads may produce invalid * results...
*/
v = RTC_TIMER_COUNT - v; if (!t1op) /* If in second half cycle.. */
v += RTC_TIMER_CYCLES / 2; if (msb > 0 && t1int)
clk_offset = RTC_TIMER_CYCLES;
rtc->msr = msr;
v += clk_offset + clk_total;
local_irq_restore(flags);
return v;
}
/* * Looks like op is non-zero for setting the clock, and zero for * reading the clock. * * struct hwclk_time { * unsigned sec; 0..59 * unsigned min; 0..59 * unsigned hour; 0..23 * unsigned day; 1..31 * unsigned mon; 0..11 * unsigned year; 00... * int wday; 0..6, 0 is Sunday, -1 means unknown/don't set * };
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.