Avoid beyond bounds copy while caching ACL
[zen-stable.git] / include / misc / altera.h
blob94c0c6181daf13e416347886b83b6048833b7ccd
1 /*
2 * altera.h
4 * altera FPGA driver
6 * Copyright (C) Altera Corporation 1998-2001
7 * Copyright (C) 2010 NetUP Inc.
8 * Copyright (C) 2010 Igor M. Liplianin <liplianin@netup.ru>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef _ALTERA_H_
27 #define _ALTERA_H_
29 struct altera_config {
30 void *dev;
31 u8 *action;
32 int (*jtag_io) (void *dev, int tms, int tdi, int tdo);
35 #if defined(CONFIG_ALTERA_STAPL) || \
36 (defined(CONFIG_ALTERA_STAPL_MODULE) && defined(MODULE))
38 extern int altera_init(struct altera_config *config, const struct firmware *fw);
39 #else
41 static inline int altera_init(struct altera_config *config,
42 const struct firmware *fw)
44 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
45 return 0;
47 #endif /* CONFIG_ALTERA_STAPL */
49 #endif /* _ALTERA_H_ */