vmm: Add _KERNEL guards for io headers shared with userspace.
Reviewed by: corvink, markj Differential Revision: https://reviews.freebsd.org/D37159
This commit is contained in:
parent
2b4fe856f4
commit
0f435e6476
@ -35,6 +35,7 @@
|
||||
#define VHPET_BASE 0xfed00000
|
||||
#define VHPET_SIZE 1024
|
||||
|
||||
#ifdef _KERNEL
|
||||
struct vm_snapshot_meta;
|
||||
|
||||
struct vhpet *vhpet_init(struct vm *vm);
|
||||
@ -49,4 +50,6 @@ int vhpet_snapshot(struct vhpet *vhpet, struct vm_snapshot_meta *meta);
|
||||
int vhpet_restore_time(struct vhpet *vhpet);
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _VHPET_H_ */
|
||||
|
@ -32,11 +32,12 @@
|
||||
#ifndef _VIOAPIC_H_
|
||||
#define _VIOAPIC_H_
|
||||
|
||||
struct vm_snapshot_meta;
|
||||
|
||||
#define VIOAPIC_BASE 0xFEC00000
|
||||
#define VIOAPIC_SIZE 4096
|
||||
|
||||
#ifdef _KERNEL
|
||||
struct vm_snapshot_meta;
|
||||
|
||||
struct vioapic *vioapic_init(struct vm *vm);
|
||||
void vioapic_cleanup(struct vioapic *vioapic);
|
||||
|
||||
@ -56,4 +57,6 @@ int vioapic_snapshot(struct vioapic *vioapic,
|
||||
struct vm_snapshot_meta *meta);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _VIOAPIC_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user