Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 1 | #ifndef __METROBOX_H__ |
| 2 | #define __METROBOX_H__ |
| 3 | /* |
| 4 | * (C) Copyright 2005 |
| 5 | * Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com |
| 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | typedef struct metrobox_board_id_s { |
| 11 | const char name[40]; |
| 12 | } METROBOX_BOARD_ID_ST, *METROBOX_BOARD_ID_PST; |
| 13 | |
| 14 | |
| 15 | /* Metrobox Opto-FPGA registers and definitions */ |
| 16 | #include "hal_xc_auto.h" |
Wolfgang Denk | 3d078ce | 2005-08-15 16:03:56 +0200 | [diff] [blame] | 17 | typedef struct opto_fpga_regs_s { |
| 18 | volatile unsigned long revision_ul; /* Read Only */ |
| 19 | volatile unsigned long reset_ul; /* Read/Write */ |
| 20 | volatile unsigned long status_ul; /* Read Only */ |
| 21 | volatile unsigned long interrupt_ul; /* Read Only */ |
| 22 | volatile unsigned long mask_ul; /* Read/Write */ |
| 23 | volatile unsigned long scratch_ul; /* Read/Write */ |
| 24 | volatile unsigned long scrmask_ul; /* Read/Write */ |
| 25 | volatile unsigned long control_ul; /* Read/Write */ |
| 26 | volatile unsigned long boardinfo_ul; /* Read Only */ |
Wolfgang Denk | 77ddac9 | 2005-10-13 16:45:02 +0200 | [diff] [blame] | 27 | } __attribute__ ((packed)) OPTO_FPGA_REGS_ST , *OPTO_FPGA_REGS_PST; |
Stefan Roese | b79316f | 2005-08-15 12:31:23 +0200 | [diff] [blame] | 28 | |
| 29 | #endif /* __METROBOX_H__ */ |