Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/ps2mouse.h
| Show All 26 Lines | |||||
| * | * | ||||
| * $FreeBSD$ | * $FreeBSD$ | ||||
| */ | */ | ||||
| #ifndef _PS2MOUSE_H_ | #ifndef _PS2MOUSE_H_ | ||||
| #define _PS2MOUSE_H_ | #define _PS2MOUSE_H_ | ||||
| struct atkbdc_softc; | struct atkbdc_softc; | ||||
| struct vm_snapshot_meta; | |||||
| struct ps2mouse_softc *ps2mouse_init(struct atkbdc_softc *sc); | struct ps2mouse_softc *ps2mouse_init(struct atkbdc_softc *sc); | ||||
| int ps2mouse_read(struct ps2mouse_softc *sc, uint8_t *val); | int ps2mouse_read(struct ps2mouse_softc *sc, uint8_t *val); | ||||
| void ps2mouse_write(struct ps2mouse_softc *sc, uint8_t val, int insert); | void ps2mouse_write(struct ps2mouse_softc *sc, uint8_t val, int insert); | ||||
| void ps2mouse_toggle(struct ps2mouse_softc *sc, int enable); | void ps2mouse_toggle(struct ps2mouse_softc *sc, int enable); | ||||
| int ps2mouse_fifocnt(struct ps2mouse_softc *sc); | int ps2mouse_fifocnt(struct ps2mouse_softc *sc); | ||||
| #ifdef BHYVE_SNAPSHOT | |||||
| int ps2mouse_snapshot(struct ps2mouse_softc *sc, struct vm_snapshot_meta *meta); | |||||
| #endif | |||||
| #endif /* _PS2MOUSE_H_ */ | #endif /* _PS2MOUSE_H_ */ | ||||