Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/io/vatpit.h
Show All 30 Lines | |||||
#ifndef _VATPIT_H_ | #ifndef _VATPIT_H_ | ||||
#define _VATPIT_H_ | #define _VATPIT_H_ | ||||
#include <machine/timerreg.h> | #include <machine/timerreg.h> | ||||
#define NMISC_PORT 0x61 | #define NMISC_PORT 0x61 | ||||
struct vm_snapshot_meta; | |||||
struct vatpit *vatpit_init(struct vm *vm); | struct vatpit *vatpit_init(struct vm *vm); | ||||
void vatpit_cleanup(struct vatpit *vatpit); | void vatpit_cleanup(struct vatpit *vatpit); | ||||
int vatpit_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, | int vatpit_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, | ||||
uint32_t *eax); | uint32_t *eax); | ||||
int vatpit_nmisc_handler(struct vm *vm, int vcpuid, bool in, int port, | int vatpit_nmisc_handler(struct vm *vm, int vcpuid, bool in, int port, | ||||
int bytes, uint32_t *eax); | int bytes, uint32_t *eax); | ||||
#ifdef BHYVE_SNAPSHOT | |||||
int vatpit_snapshot(struct vatpit *vatpit, struct vm_snapshot_meta *meta); | |||||
#endif | |||||
#endif /* _VATPIT_H_ */ | #endif /* _VATPIT_H_ */ |