coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
arch_timer.c File Reference
#include <timer.h>
#include <delay.h>
#include <cpu/power/spr.h>
Include dependency graph for arch_timer.c:

Go to the source code of this file.

Data Structures

struct  monotonic_counter
 

Macros

#define TB_TICKS_PER_USEC   512
 

Functions

__weak void init_timer (void)
 
void timer_monotonic_get (struct mono_time *mt)
 

Variables

static struct monotonic_counter mono_counter
 

Macro Definition Documentation

◆ TB_TICKS_PER_USEC

#define TB_TICKS_PER_USEC   512

Definition at line 10 of file arch_timer.c.

Function Documentation

◆ init_timer()

int init_timer ( void  )

Definition at line 12 of file arch_timer.c.

Referenced by bootblock_main(), and main().

Here is the caller graph for this function:

◆ timer_monotonic_get()

void timer_monotonic_get ( struct mono_time mt)

Variable Documentation

◆ mono_counter

struct monotonic_counter mono_counter
static

Referenced by timer_monotonic_get().