blob: 0247ef61cce1354b336a711319f6cab058261be5 [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) \
Michal Simek6631db42013-04-26 15:04:48 +020048{ xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie, "7z010" }
Michal Simekd5dae852013-04-22 15:43:02 +020049
50#define XILINX_XC7Z020_DESC(cookie) \
Michal Simek6631db42013-04-26 15:04:48 +020051{ xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie, "7z020" }
Michal Simekd5dae852013-04-22 15:43:02 +020052
53#define XILINX_XC7Z030_DESC(cookie) \
Michal Simek6631db42013-04-26 15:04:48 +020054{ xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie, "7z030" }
Michal Simekd5dae852013-04-22 15:43:02 +020055
56#define XILINX_XC7Z045_DESC(cookie) \
Michal Simek6631db42013-04-26 15:04:48 +020057{ xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie, "7z045" }
Michal Simekd5dae852013-04-22 15:43:02 +020058
59#endif /* _ZYNQPL_H_ */