mantis_ioc.h 865 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. Mantis PCI bridge driver
  4. Copyright (C) Manu Abraham ([email protected])
  5. */
  6. #ifndef __MANTIS_IOC_H
  7. #define __MANTIS_IOC_H
  8. #define GPIF_A00 0x00
  9. #define GPIF_A01 0x01
  10. #define GPIF_A02 0x02
  11. #define GPIF_A03 0x03
  12. #define GPIF_A04 0x04
  13. #define GPIF_A05 0x05
  14. #define GPIF_A06 0x06
  15. #define GPIF_A07 0x07
  16. #define GPIF_A08 0x08
  17. #define GPIF_A09 0x09
  18. #define GPIF_A10 0x0a
  19. #define GPIF_A11 0x0b
  20. #define GPIF_A12 0x0c
  21. #define GPIF_A13 0x0d
  22. #define GPIF_A14 0x0e
  23. enum mantis_stream_control {
  24. STREAM_TO_HIF = 0,
  25. STREAM_TO_CAM
  26. };
  27. extern int mantis_get_mac(struct mantis_pci *mantis);
  28. extern void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value);
  29. extern int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl);
  30. #endif /* __MANTIS_IOC_H */