omap_irq.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * omap_irq.h -- OMAP DRM IRQ Handling
  3. *
  4. * Copyright (C) 2011 Texas Instruments
  5. * Author: Rob Clark <rob@ti.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful, but WITHOUT
  12. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  14. * more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __OMAPDRM_IRQ_H__
  20. #define __OMAPDRM_IRQ_H__
  21. #include <linux/types.h>
  22. struct drm_crtc;
  23. struct drm_device;
  24. struct omap_irq_wait;
  25. int omap_irq_enable_vblank(struct drm_crtc *crtc);
  26. void omap_irq_disable_vblank(struct drm_crtc *crtc);
  27. void omap_drm_irq_uninstall(struct drm_device *dev);
  28. int omap_drm_irq_install(struct drm_device *dev);
  29. struct omap_irq_wait *omap_irq_wait_init(struct drm_device *dev,
  30. u32 irqmask, int count);
  31. int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait,
  32. unsigned long timeout);
  33. #endif /* __OMAPDRM_IRQ_H__ */