summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2008-08-28 15:39:49 +0000
committerTill Straumann <strauman@slac.stanford.edu>2008-08-28 15:39:49 +0000
commit78912b5c6dc880aef68aaae05696733e33c09205 (patch)
treeea62326cdedd83940a4cd7062c440179da144ffe
parent2008-08-28 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-78912b5c6dc880aef68aaae05696733e33c09205.tar.bz2
2008-08-28 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/vme_universe.c: added implementation for BSP_VMEResetBus().
-rw-r--r--c/src/lib/libbsp/powerpc/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/shared/vme/vme_universe.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/ChangeLog b/c/src/lib/libbsp/powerpc/ChangeLog
index 318bc1bf20..8fb1e3cf1a 100644
--- a/c/src/lib/libbsp/powerpc/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-28 Till Straumann <strauman@slac.stanford.edu>
+
+ * shared/vme/vme_universe.c: added implementation for
+ BSP_VMEResetBus().
+
2008-08-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/flash/flash.c, shared/irq/irq_init.c: Add missing
diff --git a/c/src/lib/libbsp/powerpc/shared/vme/vme_universe.c b/c/src/lib/libbsp/powerpc/shared/vme/vme_universe.c
index c2e79b936f..b219474d38 100644
--- a/c/src/lib/libbsp/powerpc/shared/vme/vme_universe.c
+++ b/c/src/lib/libbsp/powerpc/shared/vme/vme_universe.c
@@ -100,6 +100,7 @@ typedef struct {
int (*inbound_p_cfg) (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
void (*outbound_p_show)(FILE*);
void (*inbound_p_show) (FILE*);
+ void (*reset_bus)(void);
int (*install_irq_mgr)(int, int, int, ...);
int irq_mgr_flags;
} VMEOpsRec, *VMEOps;
@@ -126,6 +127,7 @@ static VMEOpsRec uniOpsRec = {
inbound_p_cfg: vmeUniverseSlavePortCfg,
outbound_p_show: vmeUniverseMasterPortsShow,
inbound_p_show: vmeUniverseSlavePortsShow,
+ reset_bus: vmeUniverseResetBus,
install_irq_mgr: vmeUniverseInstallIrqMgrAlt,
irq_mgr_flags: VMEUNIVERSE_IRQ_MGR_FLAG_SHARED |
VMEUNIVERSE_IRQ_MGR_FLAG_PW_WORKAROUND,
@@ -155,6 +157,7 @@ static VMEOpsRec tsiOpsRec = {
inbound_p_cfg: vmeTsi148InboundPortCfg,
outbound_p_show: vmeTsi148OutboundPortsShow,
inbound_p_show: vmeTsi148InboundPortsShow,
+ reset_bus: vmeTsi148ResetBus,
install_irq_mgr: vmeTsi148InstallIrqMgrAlt,
irq_mgr_flags: VMETSI148_IRQ_MGR_FLAG_SHARED,
};
@@ -256,6 +259,12 @@ BSP_VMEInboundPortsShow(FILE *f)
theOps->inbound_p_show(f);
}
+void
+BSP_VMEResetBus(void)
+{
+ theOps->reset_bus();
+}
+
int
BSP_VMEDmaSetup(int channel, uint32_t bus_mode, uint32_t xfer_mode, void *custom_setup)
{