Go to the documentation of this file.
35 #define hpet_mc _u0._hpet_mc
36 #define hpet_compare _u1._hpet_compare
38 #define HPET_MAX_TIMERS (32)
39 #define HPET_MAX_IRQ (32)
45 #define HPET_COUNTER_CLK_PERIOD_MASK (0xffffffff00000000ULL)
46 #define HPET_COUNTER_CLK_PERIOD_SHIFT (32UL)
47 #define HPET_VENDOR_ID_MASK (0x00000000ffff0000ULL)
48 #define HPET_VENDOR_ID_SHIFT (16ULL)
49 #define HPET_LEG_RT_CAP_MASK (0x8000)
50 #define HPET_COUNTER_SIZE_MASK (0x2000)
51 #define HPET_NUM_TIM_CAP_MASK (0x1f00)
52 #define HPET_NUM_TIM_CAP_SHIFT (8ULL)
58 #define HPET_LEG_RT_CNF_MASK (2UL)
59 #define HPET_ENABLE_CNF_MASK (1UL)
66 #define Tn_INT_ROUTE_CAP_MASK (0xffffffff00000000ULL)
67 #define Tn_INT_ROUTE_CAP_SHIFT (32UL)
68 #define Tn_FSB_INT_DELCAP_MASK (0x8000UL)
69 #define Tn_FSB_INT_DELCAP_SHIFT (15)
70 #define Tn_FSB_EN_CNF_MASK (0x4000UL)
71 #define Tn_FSB_EN_CNF_SHIFT (14)
72 #define Tn_INT_ROUTE_CNF_MASK (0x3e00UL)
73 #define Tn_INT_ROUTE_CNF_SHIFT (9)
74 #define Tn_32MODE_CNF_MASK (0x0100UL)
75 #define Tn_VAL_SET_CNF_MASK (0x0040UL)
76 #define Tn_SIZE_CAP_MASK (0x0020UL)
77 #define Tn_PER_INT_CAP_MASK (0x0010UL)
78 #define Tn_TYPE_CNF_MASK (0x0008UL)
79 #define Tn_INT_ENB_CNF_MASK (0x0004UL)
80 #define Tn_INT_TYPE_CNF_MASK (0x0002UL)
86 #define Tn_FSB_INT_ADDR_MASK (0xffffffff00000000ULL)
87 #define Tn_FSB_INT_ADDR_SHIFT (32UL)
88 #define Tn_FSB_INT_VAL_MASK (0x00000000ffffffffULL)
102 static inline void hpet_reserve_timer(
struct hpet_data *hd,
int timer)