Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013 Altera Corporation <www.altera.com> |
Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 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; |
Dinh Nguyen | cd9440b | 2014-11-26 12:14:32 -0600 | [diff] [blame] | 15 | u32 fifo_triple_byte; |
Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 16 | u32 fifo_quad_byte; |
| 17 | }; |
| 18 | |
Chin Liang See | 112cb0d | 2014-07-22 04:28:35 -0500 | [diff] [blame] | 19 | int scan_mgr_configure_iocsr(void); |
Dinh Nguyen | b640cae | 2015-07-31 11:06:50 -0500 | [diff] [blame] | 20 | u32 scan_mgr_get_fpga_id(void); |
Marek Vasut | 9c3e006 | 2015-07-25 09:53:23 +0200 | [diff] [blame] | 21 | int iocsr_get_config_table(const unsigned int chain_id, |
| 22 | const unsigned long **table, |
| 23 | unsigned int *table_len); |
Chin Liang See | 112cb0d | 2014-07-22 04:28:35 -0500 | [diff] [blame] | 24 | |
Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 25 | #endif /* _SCAN_MANAGER_H_ */ |