2008-08-28 Till Straumann <strauman@slac.stanford.edu>

* shared/vme/vme_universe.c: added implementation for
	BSP_VMEResetBus().
This commit is contained in:
Till Straumann
2008-08-28 15:39:49 +00:00
parent 231680a692
commit 78912b5c6d
2 changed files with 14 additions and 0 deletions

View File

@@ -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> 2008-08-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/flash/flash.c, shared/irq/irq_init.c: Add missing * shared/flash/flash.c, shared/irq/irq_init.c: Add missing

View File

@@ -100,6 +100,7 @@ typedef struct {
int (*inbound_p_cfg) (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long); int (*inbound_p_cfg) (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
void (*outbound_p_show)(FILE*); void (*outbound_p_show)(FILE*);
void (*inbound_p_show) (FILE*); void (*inbound_p_show) (FILE*);
void (*reset_bus)(void);
int (*install_irq_mgr)(int, int, int, ...); int (*install_irq_mgr)(int, int, int, ...);
int irq_mgr_flags; int irq_mgr_flags;
} VMEOpsRec, *VMEOps; } VMEOpsRec, *VMEOps;
@@ -126,6 +127,7 @@ static VMEOpsRec uniOpsRec = {
inbound_p_cfg: vmeUniverseSlavePortCfg, inbound_p_cfg: vmeUniverseSlavePortCfg,
outbound_p_show: vmeUniverseMasterPortsShow, outbound_p_show: vmeUniverseMasterPortsShow,
inbound_p_show: vmeUniverseSlavePortsShow, inbound_p_show: vmeUniverseSlavePortsShow,
reset_bus: vmeUniverseResetBus,
install_irq_mgr: vmeUniverseInstallIrqMgrAlt, install_irq_mgr: vmeUniverseInstallIrqMgrAlt,
irq_mgr_flags: VMEUNIVERSE_IRQ_MGR_FLAG_SHARED | irq_mgr_flags: VMEUNIVERSE_IRQ_MGR_FLAG_SHARED |
VMEUNIVERSE_IRQ_MGR_FLAG_PW_WORKAROUND, VMEUNIVERSE_IRQ_MGR_FLAG_PW_WORKAROUND,
@@ -155,6 +157,7 @@ static VMEOpsRec tsiOpsRec = {
inbound_p_cfg: vmeTsi148InboundPortCfg, inbound_p_cfg: vmeTsi148InboundPortCfg,
outbound_p_show: vmeTsi148OutboundPortsShow, outbound_p_show: vmeTsi148OutboundPortsShow,
inbound_p_show: vmeTsi148InboundPortsShow, inbound_p_show: vmeTsi148InboundPortsShow,
reset_bus: vmeTsi148ResetBus,
install_irq_mgr: vmeTsi148InstallIrqMgrAlt, install_irq_mgr: vmeTsi148InstallIrqMgrAlt,
irq_mgr_flags: VMETSI148_IRQ_MGR_FLAG_SHARED, irq_mgr_flags: VMETSI148_IRQ_MGR_FLAG_SHARED,
}; };
@@ -256,6 +259,12 @@ BSP_VMEInboundPortsShow(FILE *f)
theOps->inbound_p_show(f); theOps->inbound_p_show(f);
} }
void
BSP_VMEResetBus(void)
{
theOps->reset_bus();
}
int int
BSP_VMEDmaSetup(int channel, uint32_t bus_mode, uint32_t xfer_mode, void *custom_setup) BSP_VMEDmaSetup(int channel, uint32_t bus_mode, uint32_t xfer_mode, void *custom_setup)
{ {