Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_hpet.c
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
hpet_vdso_timehands(struct vdso_timehands *vdso_th, struct timecounter *tc) | hpet_vdso_timehands(struct vdso_timehands *vdso_th, struct timecounter *tc) | ||||
{ | { | ||||
struct hpet_softc *sc; | struct hpet_softc *sc; | ||||
sc = tc->tc_priv; | sc = tc->tc_priv; | ||||
vdso_th->th_algo = VDSO_TH_ALGO_X86_HPET; | vdso_th->th_algo = VDSO_TH_ALGO_X86_HPET; | ||||
vdso_th->th_x86_shift = 0; | vdso_th->th_x86_shift = 0; | ||||
vdso_th->th_x86_hpet_idx = device_get_unit(sc->dev); | vdso_th->th_x86_hpet_idx = device_get_unit(sc->dev); | ||||
vdso_th->th_x86_pvc_last_systime = 0; | |||||
vdso_th->th_x86_pvc_stable_mask = 0; | |||||
bzero(vdso_th->th_res, sizeof(vdso_th->th_res)); | bzero(vdso_th->th_res, sizeof(vdso_th->th_res)); | ||||
return (sc->mmap_allow != 0); | return (sc->mmap_allow != 0); | ||||
} | } | ||||
#ifdef COMPAT_FREEBSD32 | #ifdef COMPAT_FREEBSD32 | ||||
uint32_t | uint32_t | ||||
hpet_vdso_timehands32(struct vdso_timehands32 *vdso_th32, | hpet_vdso_timehands32(struct vdso_timehands32 *vdso_th32, | ||||
struct timecounter *tc) | struct timecounter *tc) | ||||
{ | { | ||||
struct hpet_softc *sc; | struct hpet_softc *sc; | ||||
sc = tc->tc_priv; | sc = tc->tc_priv; | ||||
vdso_th32->th_algo = VDSO_TH_ALGO_X86_HPET; | vdso_th32->th_algo = VDSO_TH_ALGO_X86_HPET; | ||||
vdso_th32->th_x86_shift = 0; | vdso_th32->th_x86_shift = 0; | ||||
vdso_th32->th_x86_hpet_idx = device_get_unit(sc->dev); | vdso_th32->th_x86_hpet_idx = device_get_unit(sc->dev); | ||||
vdso_th32->th_x86_pvc_last_systime = 0; | |||||
vdso_th32->th_x86_pvc_stable_mask = 0; | |||||
bzero(vdso_th32->th_res, sizeof(vdso_th32->th_res)); | bzero(vdso_th32->th_res, sizeof(vdso_th32->th_res)); | ||||
return (sc->mmap_allow != 0); | return (sc->mmap_allow != 0); | ||||
} | } | ||||
#endif | #endif | ||||
static void | static void | ||||
hpet_enable(struct hpet_softc *sc) | hpet_enable(struct hpet_softc *sc) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 814 Lines • Show Last 20 Lines |