Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/io/vhpet.h
Show All 29 Lines | |||||
*/ | */ | ||||
#ifndef _VHPET_H_ | #ifndef _VHPET_H_ | ||||
#define _VHPET_H_ | #define _VHPET_H_ | ||||
#define VHPET_BASE 0xfed00000 | #define VHPET_BASE 0xfed00000 | ||||
#define VHPET_SIZE 1024 | #define VHPET_SIZE 1024 | ||||
struct vm_snapshot_meta; | |||||
struct vhpet *vhpet_init(struct vm *vm); | struct vhpet *vhpet_init(struct vm *vm); | ||||
void vhpet_cleanup(struct vhpet *vhpet); | void vhpet_cleanup(struct vhpet *vhpet); | ||||
int vhpet_mmio_write(void *vm, int vcpuid, uint64_t gpa, uint64_t val, | int vhpet_mmio_write(void *vm, int vcpuid, uint64_t gpa, uint64_t val, | ||||
int size, void *arg); | int size, void *arg); | ||||
int vhpet_mmio_read(void *vm, int vcpuid, uint64_t gpa, uint64_t *val, | int vhpet_mmio_read(void *vm, int vcpuid, uint64_t gpa, uint64_t *val, | ||||
int size, void *arg); | int size, void *arg); | ||||
int vhpet_getcap(struct vm_hpet_cap *cap); | int vhpet_getcap(struct vm_hpet_cap *cap); | ||||
#ifdef BHYVE_SNAPSHOT | |||||
int vhpet_snapshot(struct vhpet *vhpet, struct vm_snapshot_meta *meta); | |||||
int vhpet_restore_time(struct vhpet *vhpet); | |||||
#endif | |||||
#endif /* _VHPET_H_ */ | #endif /* _VHPET_H_ */ |