Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/io/vpmtmr.h
| Show All 28 Lines | |||||
| */ | */ | ||||
| #ifndef _VPMTMR_H_ | #ifndef _VPMTMR_H_ | ||||
| #define _VPMTMR_H_ | #define _VPMTMR_H_ | ||||
| #define IO_PMTMR 0x408 | #define IO_PMTMR 0x408 | ||||
| struct vpmtmr; | struct vpmtmr; | ||||
| struct vm_snapshot_meta; | |||||
| struct vpmtmr *vpmtmr_init(struct vm *vm); | struct vpmtmr *vpmtmr_init(struct vm *vm); | ||||
| void vpmtmr_cleanup(struct vpmtmr *pmtmr); | void vpmtmr_cleanup(struct vpmtmr *pmtmr); | ||||
| int vpmtmr_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, | int vpmtmr_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, | ||||
| uint32_t *val); | uint32_t *val); | ||||
| #ifdef BHYVE_SNAPSHOT | |||||
| int vpmtmr_snapshot(struct vpmtmr *vpmtmr, struct vm_snapshot_meta *meta); | |||||
| #endif | |||||
| #endif | #endif | ||||