esplink.h 514 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Common header file for ESP32 and RV32 sides of link
  3. */
  4. #ifndef ESPLINK_H
  5. #define ESPLINK_H 1
  6. #include <inttypes.h>
  7. #include <stddef.h>
  8. #define FPGA_HDR_ADDR 0x40000000
  9. #define DRAM_IO_MAGIC 0x3648dec4
  10. struct dram_io_head {
  11. uint32_t magic;
  12. size_t hlen;
  13. void *dptr;
  14. size_t dlen;
  15. uint32_t board;
  16. const char *signature;
  17. size_t signature_len;
  18. uint32_t resv[1];
  19. };
  20. #define RV_IRQ_UNDERRUN 0
  21. #define RV_IRQ_HELLO 1
  22. #define ESP_IRQ_READY 1
  23. #endif