blob: 5ca6843557577b691f677ab28e744eb4cd6822ed [file] [log] [blame]
Chin Liang See63550242014-06-10 01:17:42 -05001/*
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
10struct socfpga_scan_manager {
11 u32 stat;
12 u32 en;
13 u32 padding[2];
14 u32 fifo_single_byte;
15 u32 fifo_double_byte;
Dinh Nguyencd9440b2014-11-26 12:14:32 -060016 u32 fifo_triple_byte;
Chin Liang See63550242014-06-10 01:17:42 -050017 u32 fifo_quad_byte;
18};
19
Chin Liang See112cb0d2014-07-22 04:28:35 -050020int scan_mgr_configure_iocsr(void);
Dinh Nguyenb640cae2015-07-31 11:06:50 -050021u32 scan_mgr_get_fpga_id(void);
Marek Vasut9c3e0062015-07-25 09:53:23 +020022int iocsr_get_config_table(const unsigned int chain_id,
23 const unsigned long **table,
24 unsigned int *table_len);
Chin Liang See112cb0d2014-07-22 04:28:35 -050025
Chin Liang See63550242014-06-10 01:17:42 -050026#endif /* _SCAN_MANAGER_H_ */