Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 1 | #ifndef __KAREF_H__ |
| 2 | #define __KAREF_H__ |
| 3 | /* |
| 4 | * (C) Copyright 2005 |
| 5 | * Sandburst Corporation |
| 6 | * Travis B. Sawyer |
| 7 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | /* Ka Reference Design OFEM FPGA Registers & definitions */ |
| 12 | #include "hal_ka_sc_auto.h" |
| 13 | #include "hal_ka_of_auto.h" |
| 14 | |
| 15 | typedef struct karef_board_id_s { |
| 16 | const char name[40]; |
| 17 | } KAREF_BOARD_ID_ST, *KAREF_BOARD_ID_PST; |
| 18 | |
| 19 | /* SCAN FPGA */ |
| 20 | typedef struct karef_fpga_regs_s |
| 21 | { |
| 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 */ |
Wolfgang Denk | 77ddac9 | 2005-10-13 16:45:02 +0200 | [diff] [blame] | 44 | } __attribute__((packed)) KAREF_FPGA_REGS_ST , * KAREF_FPGA_REGS_PST; |
Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 45 | |
| 46 | /* OFEM FPGA */ |
| 47 | typedef struct ofem_fpga_regs_s |
| 48 | { |
| 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 */ |
Wolfgang Denk | 77ddac9 | 2005-10-13 16:45:02 +0200 | [diff] [blame] | 57 | } __attribute__((packed)) OFEM_FPGA_REGS_ST , * OFEM_FPGA_REGS_PST; |
Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 58 | |
| 59 | |
| 60 | #endif /* __KAREF_H__ */ |