summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/shared/mvme
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-09-05 15:49:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-09-05 15:49:28 +0000
commit5a09781f021e57d83bab805b789191f4f9f557a2 (patch)
treea58cadf9c6babd9102036aa504d3fa04ec6f5e7f /c/src/lib/libbsp/m68k/shared/mvme
parentb00a141a84cdad8c688b1224cf04b4668a010825 (diff)
downloadrtems-5a09781f021e57d83bab805b789191f4f9f557a2.tar.bz2
2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* clock/Makefile.am, console/Makefile.am, consolex/Makefile.am, start/Makefile.am, startup/Makefile.am, timer/Makefile.am, tod/Makefile.am, wrapup/Makefile.am, network/Makefile.am: Include compile.am
Diffstat (limited to 'c/src/lib/libbsp/m68k/shared/mvme')
-rw-r--r--c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h48
1 files changed, 34 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h b/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h
index e57008e10f..109b27211f 100644
--- a/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h
+++ b/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h
@@ -204,36 +204,56 @@ typedef volatile struct {
* Representation of 82596CA LAN controller: Memory Map
*/
typedef volatile struct i82596_regs_ {
- unsigned short port_lower; /* 0xFFF46000 */
- unsigned short port_upper; /* 0xFFF46002 */
- unsigned long chan_attn; /* 0xFFF46004 */
+ unsigned short port_lower; /* 0xFFF46000 */
+ unsigned short port_upper; /* 0xFFF46002 */
+ unsigned long chan_attn; /* 0xFFF46004 */
} i82596_regs;
/*
* Base address of the 82596.
*/
+
#define i82596 ((i82596_regs * const) 0xFFF46000)
/*
* Representation of initialization data in NVRAM
*/
+
+#if defined(mvme167)
typedef volatile struct nvram_config_ {
- unsigned char dcache_enable; /* 0xFFFC0000 */
- unsigned char icache_enable; /* 0xFFFC0001 */
- unsigned short cache_mode; /* 0xFFFC0002 */
- unsigned long ipaddr; /* 0xFFFC0004 */
- unsigned long netmask; /* 0xFFFC0008 */
- unsigned char enaddr[6]; /* 0xFFFC000C */
- unsigned short processor_id; /* 0xFFFC0012 */
- unsigned long rma_start; /* 0xFFFC0014 */
- unsigned long vma_start; /* 0xFFFC0018 */
- unsigned long ramsize; /* 0xFFFC001C */
+ unsigned char cache_mode; /* 0xFFFC0000 */
+ unsigned char console_mode; /* 0xFFFC0001 */
+ unsigned char console_printk_port; /* 0xFFFC0002 */
+ unsigned char pad1; /* 0xFFFC0003 */
+ unsigned long ipaddr; /* 0xFFFC0004 */
+ unsigned long netmask; /* 0xFFFC0008 */
+ unsigned char enaddr[6]; /* 0xFFFC000C */
+ unsigned short processor_id; /* 0xFFFC0012 */
+ unsigned long rma_start; /* 0xFFFC0014 */
+ unsigned long vma_start; /* 0xFFFC0018 */
+ unsigned long ramsize; /* 0xFFFC001C */
} nvram_config;
/*
* Pointer to the base of User Area NVRAM
*/
-#define nvram ((nvram_config * const) 0xFFFC0000)
+
+#define nvram ((nvram_config * const) 0xFFFC0000)
+
+#endif
+
+
+/*
+ * Flag to indicate if J1-4 is on (and parameters should be
+ * sought in User Area NVRAM)
+ */
+
+#if defined(mvme167)
+#define NVRAM_CONFIGURE \
+ ( !( ( (unsigned char)(lcsr->vector_base & 0xFF) ) & 0x10 ) )
+#else
+#define NVRAM_CONFIGURE 0
+#endif
#ifdef __cplusplus