diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-08-25 17:24:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-08-25 17:24:49 +0000 |
commit | 00ff4cd6ac02a24f2c18d12a283edfc2144ef8a4 (patch) | |
tree | 8a38d4346d94d491f13d4bed8012f1fe2f3fea24 /c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h | |
parent | 2000-08-11 Charles-Antoine Gauthier <charles.gauthier@nrc.ca> (diff) | |
download | rtems-00ff4cd6ac02a24f2c18d12a283edfc2144ef8a4.tar.bz2 |
2000-08-11 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
* README:
* console/console.c:
* include/bsp.h:
* network/network.c:
* startup/bspstart.c:
Add support for configuration parameters in NVRAM
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h | 29 |
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; |