mantis_core.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. Mantis PCI bridge driver
  3. Copyright (C) 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_CORE_H
  17. #define __MANTIS_CORE_H
  18. #include "mantis_common.h"
  19. #define FE_TYPE_SAT 0
  20. #define FE_TYPE_CAB 1
  21. #define FE_TYPE_TER 2
  22. #define FE_TYPE_TS204 0
  23. #define FE_TYPE_TS188 1
  24. struct vendorname {
  25. u8 *sub_vendor_name;
  26. u32 sub_vendor_id;
  27. };
  28. struct devicetype {
  29. u8 *sub_device_name;
  30. u32 sub_device_id;
  31. u8 device_type;
  32. u32 type_flags;
  33. };
  34. extern int mantis_dma_init(struct mantis_pci *mantis);
  35. extern int mantis_dma_exit(struct mantis_pci *mantis);
  36. extern void mantis_dma_start(struct mantis_pci *mantis);
  37. extern void mantis_dma_stop(struct mantis_pci *mantis);
  38. extern int mantis_i2c_init(struct mantis_pci *mantis);
  39. extern int mantis_i2c_exit(struct mantis_pci *mantis);
  40. extern int mantis_core_init(struct mantis_pci *mantis);
  41. extern int mantis_core_exit(struct mantis_pci *mantis);
  42. #endif /* __MANTIS_CORE_H */