blob: d64f496c9abd0d74898be5267f76cd3c26828f52 [file] [log] [blame]
Stefan Roeseb79316f2005-08-15 12:31:23 +02001#ifndef __METROBOX_H__
2#define __METROBOX_H__
3/*
4 * (C) Copyright 2005
5 * Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Stefan Roeseb79316f2005-08-15 12:31:23 +02008 */
9
10typedef 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 Denk3d078ce2005-08-15 16:03:56 +020017typedef 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 Denk77ddac92005-10-13 16:45:02 +020027} __attribute__ ((packed)) OPTO_FPGA_REGS_ST , *OPTO_FPGA_REGS_PST;
Stefan Roeseb79316f2005-08-15 12:31:23 +020028
29#endif /* __METROBOX_H__ */