summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move VME support to bspsSebastian Huber2018-04-091-2504/+0
| | | | | | | | The VME support is only used by powerpc BSPs. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Use public include pathChris Johns2018-01-041-2/+2
| | | | Update #3254.
* powerpc: Replace BSP_panic() with rtems_panic()Sebastian Huber2017-11-221-4/+4
| | | | | | | | Due to a new rtems_panic() implementation, it is possible to replace the PowerPC-specific BSP_panic() with rtems_panic(). Remove BSP_panic() implementations. Close #3245.
* bsps/powerpc: Fix warningsSebastian Huber2017-02-151-2/+2
|
* libbsp/shared/vmeUniverse: Fix warningsJoel Sherrill2014-10-131-1/+1
|
* Fix C files which had two semi-colons at EOLJoel Sherrill2012-05-311-1/+1
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* Whitespace removal.Ralf Corsepius2009-11-301-35/+35
|
* 2009-10-09 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-091-1/+8
| | | | | | | * shared/vmeUniverse/vmeUniverse.c: print message and let vmeUniverseIntLoopbackTst() fail if odd-numbered vector is used (cannot program the chip to reply with such a vector).
* 2009-06-17 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-06-171-1/+1
| | | | | * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeTsi148.c: include <rtems/pci.h> instead of <bsp/pci.h>.
* 2008-05-22 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-05-221-2/+3
| | | | | * vmeUniverse/vmeUniverse.c: fixed compiler warning; moved struct attributes as directed by gcc warning.
* 2007-12-02 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-12-021-13/+9
| | | | | | * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeTsi148.c: silenced compiler warnings caused by type changes in byteorder.h (volatile unsigned * -> volatile uint32_t *)
* * vmeUniverse/vmeUniverse.c: Changed types to silenceTill Straumann2007-05-111-2/+2
| | | | compiler warnings.
* 2007-03-31 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-03-311-1/+1
| | | | * vmeUniverse/vmeUniverse.c: Use uint32_t for pci_ulong.
* 2007-02-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-02-061-1/+1
| | | | * vmeUniverse/vmeUniverse.c: Use size_t for sizes.
* 2007-01-30 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-01-311-65/+530
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vmeUniverse/README.porting, vmeUniverse/README.universe: updated, added more information for BSP implementors. * vmeUniverse/VMEDMA.h (added): VME DMA API definition. * vmeUniverse/bspVmeDmaList.h (added), vmeUniverse/bspVmeDmaListP.h (added), * vmeUniverse/bspVmeDmaList.c (added): Driver-independent code for linked-list DMA (public + private headers, implementation). * vmeUniverse/vmeUniverseDMA.h (added), vmeUniverse/vmeTsi148DMA.h (added): interface to new DMA features of drivers. * vmeUniverse/vme_amd_defs.h: Added definition for data-width hint bits (VME_MODE_DBWxx). * vmeUniverse/vmeTsi148.c: added DMA support. Added support for data-width hint/modifier bits. * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h: Added support for data-width hint/modifier bits. Added support for xxx_BLT, xxx_MBLT address modifiers. Restrict DBW to 32 in non-MBLT modes (except single-beat; a comment is in README.universe). Updated DMA support to implement new VMEDMA.h API. Added support for non-incrementing VME addresses. Restrict data width to 32 for single-beat AMs when the universe would use MBLT for DMA.
* 2007-01-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-01-171-4/+54
| | | | | | | * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeTsi148.h, * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h, * vmeUniverse/vme_am_defs.h: Added SLAC/Stanford Authorship Note / Copyright + Liability Disclaimer.
* * vmeUniverse/vme_am_defs.h: Added address modifiers for 2eVME. AddedTill Straumann2006-12-131-19/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flags for 2eSST and DBW16. * vmeUniverse/vmeUniverse.h: Removed AM definitions and include vme_am_defs.h instead. Declare new routine vmeUniverseMapCRG(). Export 'irq manager' API only if __INSIDE_RTEMS_BSP__ defined. Renamed 'shared' argument to vmeUniverseInstallIrqMgrAlt() to 'flags' since now more options are available. Added new flag to install 'posted-write' workaround. * vmeUniverse/vmeUniverse.c: Allow BSP to override BSP_PCI2LOCAL_ADDR() macro. Data width of outbound port can now be restricted to 16-bit (if new DBW16 flag set in address modifier). Added vmeUniverseMapCRG() for mapping local registers onto VME. Interrupt manager now implements a workaround (enabled at installation time) which flushes the write-fifo after user ISR returns. This requires the universe's registers to be accessible from VME (either CSR space or CRG mapped to A16/A24/A32), though. * vmeUniverse/vmeTsi148.h: vmeTsi148ClearVMEBusErrors() now returns the fault address as a 32-bit address (not ulonglong anymore). The driver only supports 32-bit addresses. Declare new routine vmeTsi148MapCRG(). Export 'irq manager' API only if __INSIDE_RTEMS_BSP__ defined. Renamed 'shared' argument to vmeTsi148InstallIrqMgrAlt() to 'flags' to allow more options to be supported. Added comments explaining the 'posted-write' workaround implemented by the interrupt manager. * vmeUniverse/vmeTsi148.c: Clear 'SYSFAIL' during initialization. Allow BSP to override BSP_PCI2LOCAL_ADDR() macro. Added support for 2eSST when configuring windows (untested - I have no 2eSST). Added vmeTsi148MapCRG() for mapping local registers onto VME. Implemented 'posted-write' workaround for interrupt manager (consult source for details).
* 2006-01-26 Till Straumann <strauman@slac.stanford.edu>Till Straumann2006-01-271-3/+12
| | | | | | * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h, vmeUniverse/vme_amd_defs.h: Added 2F address modifier for VME64 CSR access.
* * vmeUniverse/vmeTsi148.c, vmeUniverse/vmeTsi148.h,Till Straumann2006-01-121-17/+46
| | | | | | | | | vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h, vmeUniverse/vme_amd_defs.h: No longer enable posted-writes on master windows (creates race-condition on memory-mapped devices). A new flag allows for signalling that a window maps 'ordinary memory'. Disable VME IRQ level if no handler is registered with interrupting vector.
* 2005-11-09 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-11-091-223/+1
| | | | | * vmeUniverse/vmeUniverse.c: Eliminate obsolete types. Remove CVS log.
* 2005-11-04 Till Straumann <strauman@slac.stanford.edu>Till Straumann2005-11-041-156/+919
| | | | | | | | | | | | | | | | | | | | | | | * shared/vmeUniverse/vmeTsi148.c, shared/vmeUniverse/vmeTsi148.h, shared/vmeUniverse/vme_am_defs.h: New files. * Makefile.am, shared/vmeUniverse/README.universe, shared/vmeUniverse/vmeUniverse.c, shared/vmeUniverse/vmeUniverse.h: Several VME related upgrades and fixes, hopefully addressing PR#835: vmeUniverse driver now supports shared interrupts. vmeUniverse now supports up to four wires between universe and PIC. A new irq mgr installation routine has been added allowing to use the new features. (old version is still present for bwd compatibility). Calls have been added to change interrupt routing (e.g., if wires have different priorities at the PIC this feature can be used to configure priorites). Routine for testing VME interrupts has been added (useful during BSP development). A new header defining standard VME address modes has been added so that the VME API doesn't have to #include a particular bridge driver header. For all driver entry points, a 'XX' variant has been added which allows to pass the chip's base address [in case a second universe is sitting on a VME card :-)]. Driver now uses interrupt line as read from PCI config. space (without offset) BSP needs to use PCI fixup if necessary. Added a driver for the tundra tsi148 VME bridge.
* Numerous changes and cleanups to support MVME2100.Eric Norum2005-10-201-1/+1
|
* 2005-04-15 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-04-151-3/+3
| | | | | | PR 779/bsp * vmeUniverse/vmeUniverse.c: add parameter to new exception interrupt handlers in powerpc bsps
* 2005-03-14 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-03-141-1/+1
| | | | | * vmeUniverse/README.porting, vmeUniverse/vmeUniverse.c: Continue PCI API unification. All use pci_find_device().
* 2005-03-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-03-041-1/+1
| | | | | * vmeUniverse/README.porting, vmeUniverse/vmeUniverse.c: Make PCI initialize function part of the unified PCI API as pci_initialize().
* 2004-11-16 Richard Campbell <richard.campbell@OARcorp.com>Joel Sherrill2004-11-161-1/+2
| | | | | | * vmeUniverse/vmeUniverse.c: Use PCI_MEM_BASE_ADJUSTMENT because some boards -- notably the MVME2100 -- return the physical address, not an offset in PCI memory space.
* Remove duplicate white lines.Ralf Corsepius2004-04-211-9/+0
|
* Remove stray white spaces.Ralf Corsepius2004-04-211-17/+17
|
* 2003-04-10 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2003-04-101-11/+11
| | | | | | | PR 380/bsps * vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h: make printk format strings compliant with libcpu/printk. minor fixes and lazy init bugfix.
* Merger from rtems-4-6-branch.Ralf Corsepius2003-03-111-130/+0
|
* 2003-02-20 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2003-02-201-62/+169
| | | | | | | PR 349/bsps * shared/README.universe, shared/vmeUniverse/README.porting shared/vmeUniverse/README.universe, shared/vmeUniverse/vmeUniverse.c, shared/vmeUniverse/vmeUniverse.h: Update of the VME universe driver.
* 2001-05-14 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2002-05-141-0/+1212
* vmeUniverse/README.universe, vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h: New files. * Makefile.am: Modified to reflect addition of files. * Per PR214, contributes a driver for the TUNDRA UNIVERSE VME-PCI bridge to libbsp/shared. NOTE: This driver is maintained _outside_ RTEMS by Till. Please forward future modifications to him.