/* SPDX-License-Identifier: GPL-2.0 */ /* * timer.h: Definitions for the timer chips on the Sparc. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
/* The counter timer register has the value offset by 9 bits. * From sun4m manual: * When a counter reaches the value in the corresponding limit register, * the Limit bit is set and the counter is set to 500 nS (i.e. 0x00000200). * * To compensate for this add one to the value.
*/ staticinlineunsignedint timer_value(unsignedint value)
{ return (value + 1) << TIMER_VALUE_SHIFT;
}
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.