coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
timer_v2.h File Reference
#include <device/mmio.h>
#include <soc/timer_common.h>
#include <types.h>
Include dependency graph for timer_v2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mtk_gpt_regs
 

Macros

#define GPT_MHZ   13
 
#define GPT6_CLOCK_REG(x)   x->gpt6_con
 

Enumerations

enum  {
  TIE_0_EN = 1 << 3 , COMP_15_EN = 1 << 10 , COMP_20_EN = 1 << 11 , COMP_25_EN = 1 << 12 ,
  COMP_FEATURE_MASK = COMP_15_EN | COMP_20_EN | COMP_25_EN | TIE_0_EN , COMP_15_MASK = COMP_15_EN , COMP_20_MASK = COMP_20_EN | TIE_0_EN , COMP_25_MASK = COMP_20_EN | COMP_25_EN
}
 

Functions

 check_member (mtk_gpt_regs, gpt6_con, 0x00A0)
 
 check_member (mtk_gpt_regs, gpt6_cnt_l, 0x00A8)
 
 check_member (mtk_gpt_regs, gpt6_cnt_h, 0x00B0)
 

Macro Definition Documentation

◆ GPT6_CLOCK_REG

#define GPT6_CLOCK_REG (   x)    x->gpt6_con

Definition at line 42 of file timer_v2.h.

◆ GPT_MHZ

#define GPT_MHZ   13

Definition at line 10 of file timer_v2.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TIE_0_EN 
COMP_15_EN 
COMP_20_EN 
COMP_25_EN 
COMP_FEATURE_MASK 
COMP_15_MASK 
COMP_20_MASK 
COMP_25_MASK 

Definition at line 12 of file timer_v2.h.

Function Documentation

◆ check_member() [1/3]

check_member ( mtk_gpt_regs  ,
gpt6_cnt_h  ,
0x00B0   
)

◆ check_member() [2/3]

check_member ( mtk_gpt_regs  ,
gpt6_cnt_l  ,
0x00A8   
)

◆ check_member() [3/3]

check_member ( mtk_gpt_regs  ,
gpt6_con  ,
0x00A0   
)