zynqpl.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  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. #ifndef _ZYNQPL_H_
  26. #define _ZYNQPL_H_
  27. #include <xilinx.h>
  28. extern int zynq_load(Xilinx_desc *desc, const void *image, size_t size);
  29. extern int zynq_dump(Xilinx_desc *desc, const void *buf, size_t bsize);
  30. extern int zynq_info(Xilinx_desc *desc);
  31. #define XILINX_ZYNQ_7010 0x2
  32. #define XILINX_ZYNQ_7020 0x7
  33. #define XILINX_ZYNQ_7030 0xc
  34. #define XILINX_ZYNQ_7045 0x11
  35. /* Device Image Sizes */
  36. #define XILINX_XC7Z010_SIZE 16669920/8
  37. #define XILINX_XC7Z020_SIZE 32364512/8
  38. #define XILINX_XC7Z030_SIZE 47839328/8
  39. #define XILINX_XC7Z045_SIZE 106571232/8
  40. /* Descriptor Macros */
  41. #define XILINX_XC7Z010_DESC(cookie) \
  42. { xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie, "7z010" }
  43. #define XILINX_XC7Z020_DESC(cookie) \
  44. { xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie, "7z020" }
  45. #define XILINX_XC7Z030_DESC(cookie) \
  46. { xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie, "7z030" }
  47. #define XILINX_XC7Z045_DESC(cookie) \
  48. { xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie, "7z045" }
  49. #endif /* _ZYNQPL_H_ */