blob: bc9b94815950616db1ca60768a673f964096e3ea [file] [log] [blame]
Michal Simekd5dae852013-04-22 15:43:02 +02001/*
2 * (C) Copyright 2012-2013, Xilinx, Michal Simek
3 *
4 * (C) Copyright 2012
5 * Joe Hershberger <joe.hershberger@ni.com>
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
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
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA
24 */
25
26#ifndef _ZYNQPL_H_
27#define _ZYNQPL_H_
28
29#include <xilinx.h>
30
31extern int zynq_load(Xilinx_desc *desc, const void *image, size_t size);
32extern int zynq_dump(Xilinx_desc *desc, const void *buf, size_t bsize);
33extern int zynq_info(Xilinx_desc *desc);
34
35#define XILINX_ZYNQ_7010 0x2
36#define XILINX_ZYNQ_7020 0x7
37#define XILINX_ZYNQ_7030 0xc
38#define XILINX_ZYNQ_7045 0x11
39
40/* Device Image Sizes */
41#define XILINX_XC7Z010_SIZE 16669920/8
42#define XILINX_XC7Z020_SIZE 32364512/8
43#define XILINX_XC7Z030_SIZE 47839328/8
44#define XILINX_XC7Z045_SIZE 106571232/8
45
46/* Descriptor Macros */
47#define XILINX_XC7Z010_DESC(cookie) \
48{ xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie }
49
50#define XILINX_XC7Z020_DESC(cookie) \
51{ xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie }
52
53#define XILINX_XC7Z030_DESC(cookie) \
54{ xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie }
55
56#define XILINX_XC7Z045_DESC(cookie) \
57{ xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie }
58
59#endif /* _ZYNQPL_H_ */