summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-13 14:26:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-13 14:26:24 +0000
commitee732739bf9021a7a22de95eca9095c49b1d9169 (patch)
treed6a0c82767bb25fdec2fd02d1f09ae71324917e3 /c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h
parent2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ee732739bf9021a7a22de95eca9095c49b1d9169.tar.bz2
2007-09-07 Kate Feng <feng1@bnl.gov>
* ChangeLog, Makefile.am, README, README.booting, README.irq, preinstall.am, GT64260/MVME5500I2C.c, include/bsp.h, irq/irq.c, irq/irq.h, irq/irq_init.c, pci/detect_host_bridge.c, pci/pci.c, pci/pci_interface.c, pci/pcifinddevice.c, start/preload.S, startup/bspclean.c, startup/bspstart.c, startup/pgtbl_activate.c, startup/reboot.c, vectors/bspException.h, vectors/exceptionhandler.c: Merge my improvements in this BSP including a new network driver for the 1GHz NIC. * network/if_100MHz/GT64260eth.c, network/if_100MHz/GT64260eth.h, network/if_100MHz/GT64260ethreg.h, network/if_100MHz/Makefile.am, network/if_1GHz/Makefile.am, network/if_1GHz/POSSIBLEBUG, network/if_1GHz/if_wm.c, network/if_1GHz/if_wmreg.h, network/if_1GHz/pci_map.c, network/if_1GHz/pcireg.h: New files.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h')
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h b/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h
index 219f1b1511..043536ead7 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h
@@ -7,7 +7,7 @@
* found in found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
- * S. Kate Feng 12/03 : Modified it to support the MVME5500 board.
+ * S. Kate Feng 2003-2007 : Modified it to support the mvme5500 BSP.
*
*/
@@ -53,6 +53,13 @@
#define BSP_MAX_PCI_BUS (BSP_MAX_PCI_BUS_ON_PCI0+BSP_MAX_PCI_BUS_ON_PCI1)
+/* The glues to Till's vmeUniverse, although the name does not
+ * actually reflect the relevant architect of the MVME5500.
+ * Till TODO ? : BSP_PCI_DO_EOI instead ?
+ * BSP_EXT_IRQ0 instead of BSP_PCI_IRQ0 ?
+ *
+ */
+#define BSP_PIC_DO_EOI inl(0xc34) /* PCI IACK */
#define BSP_PCI_IRQ0 BSP_GPP_IRQ_LOWEST_OFFSET
/*
@@ -103,11 +110,29 @@ extern int BSP_connect_clock_handler (void);
extern unsigned long _BSP_clear_hostbridge_errors();
+extern unsigned int BSP_heap_start;
+
+#if 0
#define RTEMS_BSP_NETWORK_DRIVER_NAME "gt1"
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_GT64260eth_driver_attach
+#else
+#define RTEMS_BSP_NETWORK_DRIVER_NAME "wmG1"
+#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_i82544EI_driver_attach
+#endif
extern int
RTEMS_BSP_NETWORK_DRIVER_ATTACH(/* struct rtems_bsdnet_ifconfig * */);
+/* As per Linux, This should be in the ppc/system.h */
+
+static inline void memBar()
+{
+ asm volatile("sync":::"memory");
+}
+
+static inline void ioBar()
+{
+ asm volatile("eieio");
+}
#endif