Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/clock.c
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | static int decr_et_start(struct eventtimer *et, | ||||
sbintime_t first, sbintime_t period); | sbintime_t first, sbintime_t period); | ||||
static int decr_et_stop(struct eventtimer *et); | static int decr_et_stop(struct eventtimer *et); | ||||
static timecounter_get_t decr_get_timecount; | static timecounter_get_t decr_get_timecount; | ||||
struct decr_state { | struct decr_state { | ||||
int mode; /* 0 - off, 1 - periodic, 2 - one-shot. */ | int mode; /* 0 - off, 1 - periodic, 2 - one-shot. */ | ||||
int32_t div; /* Periodic divisor. */ | int32_t div; /* Periodic divisor. */ | ||||
}; | }; | ||||
static DPCPU_DEFINE(struct decr_state, decr_state); | DPCPU_DEFINE_STATIC(struct decr_state, decr_state); | ||||
static struct eventtimer decr_et; | static struct eventtimer decr_et; | ||||
static struct timecounter decr_tc = { | static struct timecounter decr_tc = { | ||||
decr_get_timecount, /* get_timecount */ | decr_get_timecount, /* get_timecount */ | ||||
0, /* no poll_pps */ | 0, /* no poll_pps */ | ||||
~0u, /* counter_mask */ | ~0u, /* counter_mask */ | ||||
0, /* frequency */ | 0, /* frequency */ | ||||
"timebase" /* name */ | "timebase" /* name */ | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |