1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
10 #ifdef CONFIG_GDSYS_LEGACY_DRIVERS
11 int init_func_fpga(void);
14 FPGA_STATE_DONE_FAILED
= 1 << 0,
15 FPGA_STATE_REFLECTION_FAILED
= 1 << 1,
16 FPGA_STATE_PLATFORM
= 1 << 2,
19 int get_fpga_state(unsigned dev
);
21 int fpga_set_reg(u32 fpga
, u16
*reg
, off_t regoff
, u16 data
);
22 int fpga_get_reg(u32 fpga
, u16
*reg
, off_t regoff
, u16
*data
);
24 extern struct ihs_fpga
*fpga_ptr
[];
26 #define FPGA_SET_REG(ix, fld, val) \
29 offsetof(struct ihs_fpga, fld), \
32 #define FPGA_GET_REG(ix, fld, val) \
35 offsetof(struct ihs_fpga, fld), \
48 u16 write_mailbox_ext
;
82 u16 reflection_low
; /* 0x0000 */
83 u16 versions
; /* 0x0002 */
84 u16 fpga_features
; /* 0x0004 */
85 u16 fpga_version
; /* 0x0006 */
86 u16 reserved_0
[8187]; /* 0x0008 */
87 u16 reflection_high
; /* 0x3ffe */