PageRenderTime 16ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 7#ifndef _METAG_DA_H_
 8#define _METAG_DA_H_
 9
10#ifdef CONFIG_METAG_DA
11
12#include <linux/init.h>
13#include <linux/types.h>
14
15extern bool _metag_da_present;
16
17/**
18 * metag_da_enabled() - Find whether a DA is currently enabled.
19 *
20 * Returns:	true if a DA was detected, false if not.
21 */
22static inline bool metag_da_enabled(void)
23{
24	return _metag_da_present;
25}
26
27/**
28 * metag_da_probe() - Try and detect a connected DA.
29 *
30 * This is used at start up to detect whether a DA is active.
31 *
32 * Returns:	0 on detection, -err otherwise.
33 */
34int __init metag_da_probe(void);
35
36#else /* !CONFIG_METAG_DA */
37
38#define metag_da_enabled() false
39#define metag_da_probe() do {} while (0)
40
41#endif
42
43#endif /* _METAG_DA_H_ */