export.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #define _PCILIB_EXPORT_C
  2. #include <stdio.h>
  3. #include "export.h"
  4. const char *pcilib_data_types[] = { "default", "string", "double", "long" };
  5. #include "protocols/default.h"
  6. #include "protocols/software.h"
  7. #include "protocols/property.h"
  8. const pcilib_register_protocol_description_t pcilib_protocols[] = {
  9. { PCILIB_REGISTER_PROTOCOL_DEFAULT, &pcilib_default_protocol_api, NULL, NULL, "default", "" },
  10. { PCILIB_REGISTER_PROTOCOL_SOFTWARE, &pcilib_software_protocol_api, NULL, NULL, "software_registers", "" },
  11. { PCILIB_REGISTER_PROTOCOL_PROPERTY, &pcilib_property_protocol_api, NULL, NULL, "property_registers", "" },
  12. { 0 }
  13. };
  14. const pcilib_register_bank_description_t pcilib_property_register_bank =
  15. { PCILIB_REGISTER_BANK_PROPERTY, PCILIB_REGISTER_PROTOCOL_PROPERTY, PCILIB_BAR_NOBAR, 0, 0, 32, 0, PCILIB_HOST_ENDIAN, PCILIB_HOST_ENDIAN, "%lu", "property", "Computed registers interfacing properties"};
  16. #include "dma/nwl.h"
  17. #include "dma/ipe.h"
  18. const pcilib_dma_description_t pcilib_ipedma =
  19. { &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" };
  20. const pcilib_dma_description_t pcilib_nwldma =
  21. { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" };
  22. const pcilib_dma_description_t pcilib_dma[] = {
  23. { &ipe_dma_api, ipe_dma_banks, ipe_dma_registers, ipe_dma_engines, NULL, NULL, "ipedma", "DMA engine developed by M. Caselle" },
  24. { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, NULL, NULL, "nwldma", "North West Logic DMA Engine" },
  25. { &nwl_dma_api, nwl_dma_banks, nwl_dma_registers, NULL, "ipecamera", NULL, "nwldma-ipe", "North West Logic DMA Engine" },
  26. { 0 }
  27. };