mantis_ioc.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_IOC_H
  17. #define __MANTIS_IOC_H
  18. #define GPIF_A00 0x00
  19. #define GPIF_A01 0x01
  20. #define GPIF_A02 0x02
  21. #define GPIF_A03 0x03
  22. #define GPIF_A04 0x04
  23. #define GPIF_A05 0x05
  24. #define GPIF_A06 0x06
  25. #define GPIF_A07 0x07
  26. #define GPIF_A08 0x08
  27. #define GPIF_A09 0x09
  28. #define GPIF_A10 0x0a
  29. #define GPIF_A11 0x0b
  30. #define GPIF_A12 0x0c
  31. #define GPIF_A13 0x0d
  32. #define GPIF_A14 0x0e
  33. enum mantis_stream_control {
  34. STREAM_TO_HIF = 0,
  35. STREAM_TO_CAM
  36. };
  37. extern int mantis_get_mac(struct mantis_pci *mantis);
  38. extern void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value);
  39. extern int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl);
  40. #endif /* __MANTIS_IOC_H */