mvpkm_comm_ev.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Linux 2.6.32 and later Kernel module for VMware MVP Hypervisor Support
  3. *
  4. * Copyright (C) 2010-2013 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. * This program is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along with
  16. * this program; see the file COPYING. If not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19. #line 5
  20. /**
  21. * @file
  22. *
  23. * @brief mvpkm kernel hooks for comm event signaling
  24. */
  25. #ifndef _MVPKM_COMM_EV_H
  26. #define _MVPKM_COMM_EV_H
  27. extern int (*CommTranspEvProcess)(CommTranspID *id, CommTranspIOEvent event);
  28. /**
  29. * @brief Forward any guest signal requests to the commkm module
  30. * @param id transport channel id
  31. * @param event comm event type
  32. */
  33. static inline void
  34. Mvpkm_CommEvSignal(CommTranspID *id,
  35. CommTranspIOEvent event)
  36. {
  37. if (CommTranspEvProcess)
  38. CommTranspEvProcess(id, event);
  39. }
  40. void
  41. Mvpkm_CommEvRegisterProcessCB(int (*commProcessFunc)(CommTranspID*,
  42. CommTranspIOEvent));
  43. void Mvpkm_CommEvUnregisterProcessCB(void);
  44. #endif