5 * Sandburst Corporation
8 * SPDX-License-Identifier: GPL-2.0+
11 /* Ka Reference Design OFEM FPGA Registers & definitions */
12 #include "hal_ka_sc_auto.h"
13 #include "hal_ka_of_auto.h"
15 typedef struct karef_board_id_s {
17 } KAREF_BOARD_ID_ST, *KAREF_BOARD_ID_PST;
20 typedef struct karef_fpga_regs_s
22 volatile unsigned long revision_ul; /* Read Only */
23 volatile unsigned long reset_ul; /* Read/Write */
24 volatile unsigned long interrupt_ul; /* Read Only */
25 volatile unsigned long mask_ul; /* Read/Write */
26 volatile unsigned long scratch_ul; /* Read/Write */
27 volatile unsigned long scrmask_ul; /* Read/Write */
28 volatile unsigned long status_ul; /* Read Only */
29 volatile unsigned long control_ul; /* Read/Write */
30 volatile unsigned long boardinfo_ul; /* Read Only */
31 volatile unsigned long scan_from0_ul; /* Read Only */
32 volatile unsigned long scan_from1_ul; /* Read Only */
33 volatile unsigned long scan_to0_ul; /* Read/Write */
34 volatile unsigned long scan_to1_ul; /* Read/Write */
35 volatile unsigned long scan_control_ul; /* Read/Write */
36 volatile unsigned long pll_control_ul; /* Read/Write */
37 volatile unsigned long core_clock_cnt_ul; /* Read/Write */
38 volatile unsigned long dr_clock_cnt_ul; /* Read/Write */
39 volatile unsigned long spi_clock_cnt_ul; /* Read/Write */
40 volatile unsigned long brdout_data_ul; /* Read/Write */
41 volatile unsigned long brdout_enable_ul; /* Read/Write */
42 volatile unsigned long brdin_data_ul; /* Read Only */
43 volatile unsigned long misc_ul; /* Read/Write */
44 } __attribute__((packed)) KAREF_FPGA_REGS_ST , * KAREF_FPGA_REGS_PST;
47 typedef struct ofem_fpga_regs_s
49 volatile unsigned long revision_ul; /* Read Only */
50 volatile unsigned long reset_ul; /* Read/Write */
51 volatile unsigned long interrupt_ul; /* Read Only */
52 volatile unsigned long mask_ul; /* Read/Write */
53 volatile unsigned long scratch_ul; /* Read/Write */
54 volatile unsigned long scrmask_ul; /* Read/Write */
55 volatile unsigned long control_ul; /* Read/Write */
56 volatile unsigned long mac_flow_ctrl_ul; /* Read/Write */
57 } __attribute__((packed)) OFEM_FPGA_REGS_ST , * OFEM_FPGA_REGS_PST;
60 #endif /* __KAREF_H__ */