2004-10-11 06:27:30 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2004, Psyent Corporation <www.psyent.com>
|
|
|
|
* Scott McNutt <smcnutt@psyent.com>
|
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_NIOS2_GLOBALDATA_H_
|
|
|
|
#define __ASM_NIOS2_GLOBALDATA_H_
|
|
|
|
|
|
|
|
typedef struct global_data {
|
|
|
|
bd_t *bd;
|
|
|
|
unsigned long flags;
|
|
|
|
unsigned long baudrate;
|
|
|
|
unsigned long cpu_clk; /* CPU clock in Hz! */
|
|
|
|
unsigned long have_console; /* serial_init() was called */
|
2011-09-01 09:48:27 +09:00
|
|
|
#ifdef CONFIG_PRE_CONSOLE_BUFFER
|
|
|
|
unsigned long precon_buf_idx; /* Pre-Console buffer index */
|
|
|
|
#endif
|
2008-06-10 10:37:16 +09:00
|
|
|
phys_size_t ram_size; /* RAM size */
|
2004-10-11 06:27:30 +09:00
|
|
|
unsigned long env_addr; /* Address of Environment struct */
|
|
|
|
unsigned long env_valid; /* Checksum of Environment valid */
|
|
|
|
#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
|
|
|
|
unsigned long post_log_word; /* Record POST activities */
|
2011-08-03 11:37:01 +09:00
|
|
|
unsigned long post_log_res; /* success of POST test */
|
2004-10-11 06:27:30 +09:00
|
|
|
unsigned long post_init_f_time; /* When post_init_f started */
|
|
|
|
#endif
|
|
|
|
void **jt; /* Standalone app jump table */
|
2010-07-25 03:22:02 +09:00
|
|
|
char env_buf[32]; /* buffer for getenv() before reloc. */
|
2004-10-11 06:27:30 +09:00
|
|
|
} gd_t;
|
|
|
|
|
2012-03-18 23:31:24 +09:00
|
|
|
#include <asm-generic/global_data_flags.h>
|
2004-10-11 06:27:30 +09:00
|
|
|
|
2010-05-21 12:08:03 +09:00
|
|
|
#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp")
|
2004-10-11 06:27:30 +09:00
|
|
|
|
|
|
|
#endif /* __ASM_NIOS2_GLOBALDATA_H_ */
|