Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Altera Corporation <www.altera.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef _SCAN_MANAGER_H_ |
| 8 | #define _SCAN_MANAGER_H_ |
| 9 | |
| 10 | struct socfpga_scan_manager { |
| 11 | u32 stat; |
| 12 | u32 en; |
| 13 | u32 padding[2]; |
| 14 | u32 fifo_single_byte; |
| 15 | u32 fifo_double_byte; |
Dinh Nguyen | cd9440b | 2014-11-26 12:14:32 -0600 | [diff] [blame] | 16 | u32 fifo_triple_byte; |
Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 17 | u32 fifo_quad_byte; |
| 18 | }; |
| 19 | |
Chin Liang See | 112cb0d | 2014-07-22 04:28:35 -0500 | [diff] [blame] | 20 | int scan_mgr_configure_iocsr(void); |
Dinh Nguyen | b640cae | 2015-07-31 11:06:50 -0500 | [diff] [blame] | 21 | u32 scan_mgr_get_fpga_id(void); |
Marek Vasut | 9c3e006 | 2015-07-25 09:53:23 +0200 | [diff] [blame] | 22 | int iocsr_get_config_table(const unsigned int chain_id, |
| 23 | const unsigned long **table, |
| 24 | unsigned int *table_len); |
Chin Liang See | 112cb0d | 2014-07-22 04:28:35 -0500 | [diff] [blame] | 25 | |
Chin Liang See | 6355024 | 2014-06-10 01:17:42 -0500 | [diff] [blame] | 26 | #endif /* _SCAN_MANAGER_H_ */ |