cx25821-video.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Driver for the Conexant CX25821 PCIe bridge
  3. *
  4. * Copyright (C) 2009 Conexant Systems Inc.
  5. * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com>
  6. * Based on Steven Toth <stoth@linuxtv.org> cx23885 driver
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. *
  17. * GNU General Public License for more details.
  18. */
  19. #ifndef CX25821_VIDEO_H_
  20. #define CX25821_VIDEO_H_
  21. #include <linux/init.h>
  22. #include <linux/list.h>
  23. #include <linux/module.h>
  24. #include <linux/moduleparam.h>
  25. #include <linux/kmod.h>
  26. #include <linux/kernel.h>
  27. #include <linux/slab.h>
  28. #include <linux/interrupt.h>
  29. #include <linux/delay.h>
  30. #include <linux/kthread.h>
  31. #include <asm/div64.h>
  32. #include "cx25821.h"
  33. #include <media/v4l2-common.h>
  34. #include <media/v4l2-ioctl.h>
  35. #include <media/v4l2-event.h>
  36. #define VIDEO_DEBUG 0
  37. #define dprintk(level, fmt, arg...) \
  38. do { \
  39. if (VIDEO_DEBUG >= level) \
  40. printk(KERN_DEBUG "%s/0: " fmt, dev->name, ##arg); \
  41. } while (0)
  42. #define FORMAT_FLAGS_PACKED 0x01
  43. extern void cx25821_video_wakeup(struct cx25821_dev *dev,
  44. struct cx25821_dmaqueue *q, u32 count);
  45. extern int cx25821_start_video_dma(struct cx25821_dev *dev,
  46. struct cx25821_dmaqueue *q,
  47. struct cx25821_buffer *buf,
  48. const struct sram_channel *channel);
  49. extern int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status);
  50. extern void cx25821_video_unregister(struct cx25821_dev *dev, int chan_num);
  51. extern int cx25821_video_register(struct cx25821_dev *dev);
  52. #endif