gs_fpgaboot.h 703 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #include <linux/firmware.h>
  3. #define MAX_STR 256
  4. enum fmt_image {
  5. f_bit, /* only bitstream is supported */
  6. f_rbt,
  7. f_bin,
  8. f_mcs,
  9. f_hex,
  10. };
  11. enum mdownload {
  12. m_systemmap, /* only system map is supported */
  13. m_serial,
  14. m_jtag,
  15. };
  16. /*
  17. * xilinx fpgaimage information
  18. * NOTE: use MAX_STR instead of dynamic alloc for simplicity
  19. */
  20. struct fpgaimage {
  21. enum fmt_image fmt_img;
  22. enum mdownload dmethod;
  23. const struct firmware *fw_entry;
  24. /*
  25. * the following can be read from bitstream,
  26. * but other image format should have as well
  27. */
  28. char filename[MAX_STR];
  29. char part[MAX_STR];
  30. char date[MAX_STR];
  31. char time[MAX_STR];
  32. int lendata;
  33. u8 *fpgadata;
  34. };