blob: 4d8d649be06836fa68e22e2c3bec32875a05883e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Chin Liang See63550242014-06-10 01:17:42 -05002/*
3 * Copyright (C) 2013 Altera Corporation <www.altera.com>
Chin Liang See63550242014-06-10 01:17:42 -05004 */
5
6#ifndef _SCAN_MANAGER_H_
7#define _SCAN_MANAGER_H_
8
9struct socfpga_scan_manager {
10 u32 stat;
11 u32 en;
12 u32 padding[2];
13 u32 fifo_single_byte;
14 u32 fifo_double_byte;
Dinh Nguyencd9440b2014-11-26 12:14:32 -060015 u32 fifo_triple_byte;
Chin Liang See63550242014-06-10 01:17:42 -050016 u32 fifo_quad_byte;
17};
18
Chin Liang See112cb0d2014-07-22 04:28:35 -050019int scan_mgr_configure_iocsr(void);
Dinh Nguyenb640cae2015-07-31 11:06:50 -050020u32 scan_mgr_get_fpga_id(void);
Marek Vasut9c3e0062015-07-25 09:53:23 +020021int iocsr_get_config_table(const unsigned int chain_id,
22 const unsigned long **table,
23 unsigned int *table_len);
Chin Liang See112cb0d2014-07-22 04:28:35 -050024
Chin Liang See63550242014-06-10 01:17:42 -050025#endif /* _SCAN_MANAGER_H_ */