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