vmmouse.h 740 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Driver for Virtual PS/2 Mouse on VMware and QEMU hypervisors.
  3. *
  4. * Copyright (C) 2014, VMware, Inc. All Rights Reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published by
  8. * the Free Software Foundation.
  9. */
  10. #ifndef _VMMOUSE_H
  11. #define _VMMOUSE_H
  12. #ifdef CONFIG_MOUSE_PS2_VMMOUSE
  13. #define VMMOUSE_PSNAME "VirtualPS/2"
  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. #endif