1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Driver for Virtual PS/2 Mouse on VMware and QEMU hypervisors. 4 * 5 * Copyright (C) 2014, VMware, Inc. All Rights Reserved. 6 */ 7 8 #ifndef _VMMOUSE_H 9 #define _VMMOUSE_H 10 11 #ifdef CONFIG_MOUSE_PS2_VMMOUSE 12 #define VMMOUSE_PSNAME "VirtualPS/2" 13 14 int vmmouse_detect(struct psmouse *psmouse, bool set_properties); 15 int vmmouse_init(struct psmouse *psmouse); 16 #else 17 static inline int vmmouse_detect(struct psmouse *psmouse, bool set_properties) 18 { 19 return -ENOSYS; 20 } 21 static inline int vmmouse_init(struct psmouse *psmouse) 22 { 23 return -ENOSYS; 24 } 25 #endif 26 27 #endif 28