scan_manager.h 541 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2013 Altera Corporation <www.altera.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _SCAN_MANAGER_H_
  7. #define _SCAN_MANAGER_H_
  8. struct socfpga_scan_manager {
  9. u32 stat;
  10. u32 en;
  11. u32 padding[2];
  12. u32 fifo_single_byte;
  13. u32 fifo_double_byte;
  14. u32 fifo_triple_byte;
  15. u32 fifo_quad_byte;
  16. };
  17. int scan_mgr_configure_iocsr(void);
  18. u32 scan_mgr_get_fpga_id(void);
  19. int iocsr_get_config_table(const unsigned int chain_id,
  20. const unsigned long **table,
  21. unsigned int *table_len);
  22. #endif /* _SCAN_MANAGER_H_ */