2 * Meta DA JTAG debugger control.
4 * Copyright 2012 Imagination Technologies Ltd.
10 #ifdef CONFIG_METAG_DA
12 #include <linux/init.h>
13 #include <linux/types.h>
15 extern bool _metag_da_present;
18 * metag_da_enabled() - Find whether a DA is currently enabled.
20 * Returns: true if a DA was detected, false if not.
22 static inline bool metag_da_enabled(void)
24 return _metag_da_present;
28 * metag_da_probe() - Try and detect a connected DA.
30 * This is used at start up to detect whether a DA is active.
32 * Returns: 0 on detection, -err otherwise.
34 int __init metag_da_probe(void);
36 #else /* !CONFIG_METAG_DA */
38 #define metag_da_enabled() false
39 #define metag_da_probe() do {} while (0)
43 #endif /* _METAG_DA_H_ */