1 /* SPDX-License-Identifier: GPL-2.0-or-later */
7 * Copyright (C) Altera Corporation 1998-2001
8 * Copyright (C) 2010 NetUP Inc.
9 * Copyright (C) 2010 Igor M. Liplianin <liplianin@netup.ru>
15 struct altera_config {
18 int (*jtag_io) (void *dev, int tms, int tdi, int tdo);
21 #if defined(CONFIG_ALTERA_STAPL) || \
22 (defined(CONFIG_ALTERA_STAPL_MODULE) && defined(MODULE))
24 extern int altera_init(struct altera_config *config, const struct firmware *fw);
27 static inline int altera_init(struct altera_config *config,
28 const struct firmware *fw)
30 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
33 #endif /* CONFIG_ALTERA_STAPL */
35 #endif /* _ALTERA_H_ */