summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h b/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
index 0f0b805a1e..a94603146f 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h
@@ -30,6 +30,30 @@ extern "C" {
#include <mpc8xx/mmu.h>
#include <mpc8xx/console.h>
+
+/*
+ * Representation of initialization data in NVRAM
+ */
+typedef volatile struct nvram_config_ {
+ unsigned char cache_mode; /* 0xFA001000 */
+ unsigned char console_mode; /* 0xFA001001 */
+ unsigned char console_printk_port; /* 0xFA001002 */
+ unsigned char eppcbug_smc1; /* 0xFA001003 */
+ unsigned long ipaddr; /* 0xFA001004 */
+ unsigned long netmask; /* 0xFA001008 */
+ unsigned char enaddr[6]; /* 0xFA00100C */
+ unsigned short processor_id; /* 0xFA001012 */
+ unsigned long rma_start; /* 0xFA001014 */
+ unsigned long vma_start; /* 0xFA001018 */
+ unsigned long ramsize; /* 0xFA00101C */
+} nvram_config;
+
+/*
+ * Pointer to the base of User Area NVRAM
+ */
+#define nvram ((nvram_config * const) 0xFA001000)
+
+
/*
* Network driver configuration
*/
@@ -70,11 +94,6 @@ extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int a
#define Lower_tm27_intr()
-/* Constants -- THESE SHOULD BE DEFINED IN THE LINKER SCRIPT */
-
-#define RAM_START 0
-#define RAM_END 0x100000
-
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;