mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 01:20:47 +09:00
62a0c9cff3
Clean up the horrible macros present in the scan_manager.h . Firstly, the function scan_mgr_io_scan_chain_prg() is static, yet all the macros are used only within it, thus there is no point in having them in the header file. Moreover, the macros are just making the code much less readable, so remove them instead. Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
26 lines
509 B
C
26 lines
509 B
C
/*
|
|
* Copyright (C) 2013 Altera Corporation <www.altera.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _SCAN_MANAGER_H_
|
|
#define _SCAN_MANAGER_H_
|
|
|
|
struct socfpga_scan_manager {
|
|
u32 stat;
|
|
u32 en;
|
|
u32 padding[2];
|
|
u32 fifo_single_byte;
|
|
u32 fifo_double_byte;
|
|
u32 fifo_triple_byte;
|
|
u32 fifo_quad_byte;
|
|
};
|
|
|
|
int scan_mgr_configure_iocsr(void);
|
|
int iocsr_get_config_table(const unsigned int chain_id,
|
|
const unsigned long **table,
|
|
unsigned int *table_len);
|
|
|
|
#endif /* _SCAN_MANAGER_H_ */
|