linux/arch/metag/include/asm/da.h
<<
>>
Prefs
   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_ */
  44