/Ethereal-msm8939-beta9/arch/metag/include/asm/da.h

https://bitbucket.org/MilosStamenkovic95/etherealos · C Header · 43 lines · 16 code · 10 blank · 17 comment · 1 complexity · fb343e36f5ef964630cddb97ed4914f6 MD5 · raw file

  1. /*
  2. * Meta DA JTAG debugger control.
  3. *
  4. * Copyright 2012 Imagination Technologies Ltd.
  5. */
  6. #ifndef _METAG_DA_H_
  7. #define _METAG_DA_H_
  8. #ifdef CONFIG_METAG_DA
  9. #include <linux/init.h>
  10. #include <linux/types.h>
  11. extern bool _metag_da_present;
  12. /**
  13. * metag_da_enabled() - Find whether a DA is currently enabled.
  14. *
  15. * Returns: true if a DA was detected, false if not.
  16. */
  17. static inline bool metag_da_enabled(void)
  18. {
  19. return _metag_da_present;
  20. }
  21. /**
  22. * metag_da_probe() - Try and detect a connected DA.
  23. *
  24. * This is used at start up to detect whether a DA is active.
  25. *
  26. * Returns: 0 on detection, -err otherwise.
  27. */
  28. int __init metag_da_probe(void);
  29. #else /* !CONFIG_METAG_DA */
  30. #define metag_da_enabled() false
  31. #define metag_da_probe() do {} while (0)
  32. #endif
  33. #endif /* _METAG_DA_H_ */