mantis_link.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. Mantis PCI bridge driver
  3. Copyright (C) 2005, 2006 Manu Abraham (abraham.manu@gmail.com)
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #ifndef __MANTIS_LINK_H
  17. #define __MANTIS_LINK_H
  18. enum mantis_sbuf_status {
  19. MANTIS_SBUF_DATA_AVAIL = 1,
  20. MANTIS_SBUF_DATA_EMPTY = 2,
  21. MANTIS_SBUF_DATA_OVFLW = 3
  22. };
  23. struct mantis_slot {
  24. u32 timeout;
  25. };
  26. struct mantis_ca {
  27. struct mantis_slot slot;
  28. struct tasklet_struct hif_evm_tasklet;
  29. u32 hif_event;
  30. wait_queue_head_t hif_opdone_wq;
  31. wait_queue_head_t hif_brrdyw_wq;
  32. wait_queue_head_t hif_data_wq;
  33. u32 hif_job_queue;
  34. enum mantis_sbuf_status sbuf_status;
  35. struct dvb_device *ca_dev;
  36. void *ca_priv;
  37. };
  38. #endif // __MANTIS_LINK_H