1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 230088b09SMasahiro Yamada /* 330088b09SMasahiro Yamada * Copyright (C) 2013 Altera Corporation <www.altera.com> 430088b09SMasahiro Yamada */ 530088b09SMasahiro Yamada 630088b09SMasahiro Yamada #ifndef _SCAN_MANAGER_H_ 730088b09SMasahiro Yamada #define _SCAN_MANAGER_H_ 830088b09SMasahiro Yamada 930088b09SMasahiro Yamada struct socfpga_scan_manager { 1030088b09SMasahiro Yamada u32 stat; 1130088b09SMasahiro Yamada u32 en; 1230088b09SMasahiro Yamada u32 padding[2]; 1330088b09SMasahiro Yamada u32 fifo_single_byte; 1430088b09SMasahiro Yamada u32 fifo_double_byte; 1530088b09SMasahiro Yamada u32 fifo_triple_byte; 1630088b09SMasahiro Yamada u32 fifo_quad_byte; 1730088b09SMasahiro Yamada }; 1830088b09SMasahiro Yamada 1930088b09SMasahiro Yamada int scan_mgr_configure_iocsr(void); 20bd0f5a91SDinh Nguyen u32 scan_mgr_get_fpga_id(void); 21575d7415SMarek Vasut int iocsr_get_config_table(const unsigned int chain_id, 22575d7415SMarek Vasut const unsigned long **table, 23575d7415SMarek Vasut unsigned int *table_len); 2430088b09SMasahiro Yamada 2530088b09SMasahiro Yamada #endif /* _SCAN_MANAGER_H_ */ 26