summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/pci (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move PCI drivers to bspsSebastian Huber2018-04-234-1112/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* Remove make preinstallChris Johns2018-01-251-84/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* powerpc: Replace BSP_panic() with rtems_panic()Sebastian Huber2017-11-221-1/+1
| | | | | | | | 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.
* shared/pci/detect_raven_bridge.c: Fix printf() format warningsJoel Sherrill2017-04-241-1/+1
|
* libbsp/powerpc/./pci/detect_raven_bridge.c: Use inttypes.h to fix 1 warning.Cillian O'Donnell2017-04-141-1/+2
|
* bsps/powerpc: Fix warningsSebastian Huber2017-02-151-1/+1
|
* Use fixed-width C99 types for PowerPC in_be16() and co.Nick Withers2014-12-231-9/+9
| | | | | | Also use the const qualifier on the address pointer's target in in_*() Closes #2128
* libbsp/powerpc/shared: Fix warningsJoel Sherrill2014-10-131-14/+24
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* pci.h cleanup - Consolidate common defines to cpukit pci.hJoel Sherrill2012-05-162-8/+3
| | | | | | | | | | | | | + libbsp/sparc/shared/include/pci.h was largely a copy of an older version of the cpukit pci.h. Removed much of the contents and included <rtems/pci.h>. + sparc/*/pci*.c - Move to <rtems/pci.h> required updating to use uint32_t for dword accesses. + Rename PCI_MULTI_FUNCTION to PCI_HEADER_TYPE_MULTI_FUNCTION + Define PCI_HEADER_TYPE_MULTI_FUNCTION in cpukit pci.h and remove PCI_MULTI_FUNCTION definitions in C files. + Move PCI_INVALID_VENDORDEVICEID definitions from various C files to cpukit pci.h
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-115-15/+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.
* 2011-07-15 Till Straumann <strauman@slac.stanford.edu>Till Straumann2011-07-161-0/+4
| | | | | | | | * shared/irq/init_irq.c, shared/irq/openpic_i8259_irq.c, shared/pci/detect_raven_bridge.c: conditionally compile ISA and PCI-interrupt related stuff only if BSP defines BSP_ISA_IRQ_NUMBER > 0 and/or BSP_PCI_IRQ_NUMBER > 0, respectively.
* 2011-01-28 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2011-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * beatnik/include/bsp.h, beatnik/irq/irq.h, beatnik/pci/gt_pci_init.c, ep1a/console/polled_io.c, ep1a/irq/openpic_xxx_irq.c, gen5200/include/irq.h, gen5200/irq/irq.c, gen5200/startup/bspstart.c, haleakala/irq/irq.c, mbx8xx/irq/irq.c, mbx8xx/irq/irq.h, motorola_powerpc/include/bsp.h, mpc8260ads/irq/irq.c, mpc8260ads/irq/irq.h, mvme3100/include/bsp.h, mvme3100/irq/irq.h, mvme3100/start/start.S, mvme5500/include/bsp.h, mvme5500/irq/irq.h, psim/include/bsp.h, psim/include/coverhd.h, psim/irq/irq.h, psim/shmsupp/addrconv.c, psim/shmsupp/getcfg.c, psim/startup/linkcmds, psim/tools/psim-gdb-top.in, psim/tools/psim-top.in, psim/tools/runtest-top.in, qemuppc/irq/irq.h, score603e/irq/irq.c, shared/bootloader/bootldr.h, shared/bootloader/em86.c, shared/bootloader/em86real.S, shared/bootloader/exception.S, shared/bootloader/head.S, shared/bootloader/lib.c, shared/bootloader/misc.c, shared/bootloader/mm.c, shared/bootloader/pci.c, shared/console/console.c, shared/console/consoleIo.h, shared/console/inch.c, shared/console/keyboard.h, shared/console/polled_io.c, shared/irq/i8259.c, shared/irq/irq.h, shared/irq/openpic_i8259_irq.c, shared/motorola/motorola.c, shared/motorola/motorola.h, shared/openpic/openpic.c, shared/openpic/openpic.h, shared/pci/pci.c, shared/residual/residual.c, shared/start/start.S, ss555/irq/irq.h: Fix typo where license said found in found in.
* 2011-01-19 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2011-01-191-1/+1
| | | | * shared/pci/detect_raven_bridge.c: Fix spelling.
* 2011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-01-171-1/+1
| | | | * shared/pci/detect_raven_bridge.c: Fix spelling.
* 2009-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-12-111-1/+1
| | | | | PR 1483/cpukit * shared/pci/pci.c: Rename pci_config into rtems_pci_config_t.
* Whitespace removal.Ralf Corsepius2009-11-303-13/+13
|
* 2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2009-05-051-3/+5
| | | | * shared/pci/pci.c: Removed warnings.
* Add missing prototypes.Ralf Corsepius2008-08-201-2/+2
|
* 2007-12-01 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-12-011-1/+1
| | | | | | | * shared/pci/detect_raven_bridge.c: use ifdef mvme2100 rather than ifdef mpc824x so that we don't depend on compile-time CPU flavor. Eventually, this should become a run-time check.
* 2007-11-21 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-11-212-48/+68
| | | | | | | | * Makefile.am, motorola_powerpc/Makefile.am, * shared/pci/detect_raven_bridge.c, Makefile.am, * shared/pci/generic_clear_hberrs.c: separated the generic version of _BSP_clear_hostbridge_errors() into its own file.
* 2007-11-06 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-11-061-12/+18
| | | | | * shared/pci/pci.c: converted access to pci_config_addr to conditionally defined macros so that bsp.h can override details.
* adapted BSP "motorola_powerpc" to support MVME24xxThomas Doerfler2007-04-092-6/+15
|
* More stdint.h fixed-size types.Ralf Corsepius2007-04-021-8/+8
|
* Use stdint.h fixed-size types.Ralf Corsepius2007-03-313-15/+19
|
* 2007-01-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-01-171-2/+44
| | | | | | | | | | | * ep1a/vme/vmeconfig.c, mvme5500/pci/pcifinddevice.c, * mvme5500/startup/pgtbl_activate.c, mvme5500/vectors/bspException.h, * mvme5500/vectors/exceptionhandler.c, mvme5500/vme/VME.h, * mvme5500/vme/vmeconfig.c, score603e/vme/vmeconfig.c, shared/pci/pcifinddevice.c, * shared/startup/pgtbl_activate.c, shared/startup/pgtbl_setup.c, * shared/startup/probeMemEnd.c, shared/startup/sbrk.c, shared/vme/VME.h, * shared/vme/VMEConfig.h, shared/vme/vme_universe.c, shared/vme/vmeconfig.c: Added SLAC/Stanford Authorship Note / Copyright + Liability Disclaimer.
* 2005-11-03 Till Straumann <strauman@slac.stanford.edu>Till Straumann2005-11-044-195/+420
| | | | | | | | | | | | | | * shared/motorola/motorola.c, shared/pci/detect_raven_bridge.c, shared/pci/pci.c, shared/pci/pci.h, shared/pci/pcifinddevice.c: Several PCI enhancements and fixes: all BSP flavors now use the generic clear_hostbridge_errors() routine (this means that only polling memory probing is possible [see detect_raven_bridge.c for details]). Interrupt fixup routine now supports multi-function devices. Interrupt fixup routine now honours a flag/option so that wrong firmware values can be overridden. Fixed irq routing table for mvme2100 [PMC]. Added irq routing table for mvme2300. Added a BSP_pciScan() routine that executes a user callback on each non-empty slot/fun. Added BSP_pciConfigDump() to display basic config headers.
* Numerous changes and cleanups to support MVME2100.Eric Norum2005-10-201-14/+38
|
* 2005-05-06 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-05-061-0/+3
| | | | * pci/pci.h: Add pci_bus_count().
* 2005-05-04 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-05-042-4/+4
| | | | | * irq/irq_init.c, pci/pci.c, pci/pcifinddevice.c, startup/bspstart.c: Name change to support common PCI interface
* 2005-03-14 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-03-143-473/+475
| | | | | * pci/pci.c, pci/pci.h, pci/pcifinddevice.c: Continue PCI API unification. All use pci_find_device(). Also reformat to remove tabs.
* 2005-03-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-03-042-3/+3
| | | | | * pci/pci.c, pci/pcifinddevice.c, startup/bspstart.c: Make PCI initialize function part of the unified PCI API as pci_initialize().
* 2005-02-12 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-02-121-1137/+4
| | | | | * pci/pci.h: Remove contents that are duplicates of the pci.h in cpukit and include rtems/pci.h for the base set of PCI functionality.
* 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>Joel Sherrill2004-11-102-31/+51
| | | | | | | | | | | | * Makefile.am, bootloader/misc.c, bootloader/pci.c, bootloader/pci.h, console/console.c, console/inch.c, console/reboot.c, console/uart.c, console/uart.h, irq/irq.c, irq/irq.h, irq/irq_init.c, motorola/motorola.c, motorola/motorola.h, openpic/openpic.c, openpic/openpic.h, pci/detect_raven_bridge.c, pci/pci.c, start/start.S, startup/bspstart.c, vectors/vectors_init.c, vme/vmeconfig.c: Add MVME2100 BSP and MPC8240 support. There was also a significant amount of spelling and whitespace cleanup. * tod/todcfg.c: New file.
* 2003-11-01 Greg Menke <gregory.menke@gsfc.nasa.gov>Joel Sherrill2004-09-271-4/+24
| | | | | | | | | | PR 606/bsps * bootloader/pci.c: Fixed IO remapping so buses >= 1 are remapped. Reduced PCI space to match bat2. Fixed incorrect region size calculation in pci_read_bases. Set PCI latency timers to known sane values. Changed bridge PCI settings to minimum sane instead of whatever sounded neat in the PCI spec. Force pf regions to memory mapped to preserve byte access.
* 2004-04-09 Greg Menke <gregory.menke@gsfc.nasa.gov>Joel Sherrill2004-09-271-0/+2
| | | | | PR 608/bsps * pci/pcibios.c: Added BusCountPCI()
* Remove duplicate white lines.Ralf Corsepius2004-04-212-42/+0
|
* Remove stray white spaces.Ralf Corsepius2004-04-214-66/+66
|
* 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-311-3/+3
| | | | | | * bootloader/misc.c, bootloader/pci.c, console/inch.c, include/bsp.h, pci/pci.c, startup/bspstart.c, startup/sbrk.c: Convert to using c99 fixed size types.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-052-3/+4
| | | | | | | * bootloader/pci.c: Remove warnings by adding include <string.h>. * irq/irq.c: Clean up includes to remove warnings. * pci/pci.c, pci/pci.h, startup/bspstart.c: Better use of const on struct _int_map.
* 2004-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2004-02-032-31/+0
| | | | | | | | | | | | | * Makefile.am: Merge-in bootloader/Makefile.am, clock/Makefile.am, console/Makefile.am, include/Makefile.am, irq/Makefile.am, motorola/Makefile.am, openpic/Makefile.am, pci/Makefile.am, residual/Makefile.am, start/Makefile.am, startup/Makefile.am, vectors/Makefile.am, vme/Makefile.am. Use automake compilation rules. * bootloader/Makefile.am, clock/Makefile.am, console/Makefile.am, include/Makefile.am, irq/Makefile.am, motorola/Makefile.am, openpic/Makefile.am, pci/Makefile.am, residual/Makefile.am, start/Makefile.am, startup/Makefile.am, vectors/Makefile.am, vme/Makefile.am: Remove.
* 2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2004-01-211-1/+3
| | | | | | | | | | * console/Makefile.am: Add PREINSTALL_DIRS. * irq/Makefile.am: Add PREINSTALL_DIRS. * motorola/Makefile.am: Add PREINSTALL_DIRS. * openpic/Makefile.am: Add PREINSTALL_DIRS. * pci/Makefile.am: Add PREINSTALL_DIRS. * residual/Makefile.am: Add PREINSTALL_DIRS. * vectors/Makefile.am: Add PREINSTALL_DIRS.
* 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2004-01-141-0/+3
| | | | | | | | | | | * console/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. Add PRE/TMPINSTALL_FILES to CLEANFILES. * irq/Makefile.am: Ditto. * motorola/Makefile.am: Ditto. * openpic/Makefile.am: Ditto. * pci/Makefile.am: Ditto. * residual/Makefile.am: Ditto. * vectors/Makefile.am: Ditto.
* 2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-12-121-2/+1
| | | | | | | | | | * console/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. * irq/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. * motorola/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. * openpic/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. * pci/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. * residual/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. * vectors/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
* 2003-12-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-12-021-10/+12
| | | | | | | | | | | | | | | | | * bootloader/Makefile.am: Put all files into EXTRA_DIST. * vme/Makefile.am: Ditto. * console/Makefile.am: Move H_FILES to include_bsp_HEADERS. Add preinstallation dirstamp support. * irq/Makefile.am: Ditto. * motorola/Makefile.am: Ditto. * openpic/Makefile.am: Ditto. * pci/Makefile.am: Ditto. * residual/Makefile.am: Ditto. * vectors/Makefile.am: Ditto. * Makefile.am: Remove empty lines. * clock/Makefile.am: Ditto. * include/Makefile.am: Ditto. * startup/Makefile.am: Ditto.
* 2003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-041-1/+1
| | | | | | | | | | | | | * bootloader/bootldr.h, bootloader/em86.c, bootloader/em86real.S, bootloader/exception.S, bootloader/head.S, bootloader/lib.c, bootloader/misc.c, bootloader/mm.c, bootloader/pci.c, clock/p_clock.c, console/console.c, console/consoleIo.h, console/inch.c, console/keyboard.h, console/polled_io.c, include/bsp.h, irq/i8259.c, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, motorola/motorola.c, motorola/motorola.h, openpic/openpic.c, openpic/openpic.h, pci/pci.c, residual/residual.c, start/start.S, startup/bspstart.c, vectors/vectors.h, vectors/vectors_init.c: URL for license changed.
* 2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-08-161-1/+1
| | | | | | | | | | | | | | | | | Makefile.am: Reflect having moved automake. bootloader/Makefile.am: Reflect having moved automake. clock/Makefile.am: Reflect having moved automake. console/Makefile.am: Reflect having moved automake. include/Makefile.am: Reflect having moved automake. irq/Makefile.am: Reflect having moved automake. motorola/Makefile.am: Reflect having moved automake. openpic/Makefile.am: Reflect having moved automake. pci/Makefile.am: Reflect having moved automake. residual/Makefile.am: Reflect having moved automake. start/Makefile.am: Reflect having moved automake. startup/Makefile.am: Reflect having moved automake. vectors/Makefile.am: Reflect having moved automake. vme/Makefile.am: Reflect having moved automake.
* 2003-08-05 Till Strauman <strauman@slac.stanford.edu>Jennifer Averett2003-08-051-3/+4
| | | | | | | | PR 437/bsps * irq/irc.c: calls to bspIo/printk must not use '%i' format which is apparently not supported * pci/pci.c: calls to bspIo/printk must not use '%i' format which is apparently not supported
* 2003-07-18 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2003-07-181-12/+5
| | | | | | | | PR 415/bsps * pci/detect_raven_bridge.c, startup/bspstart.c: This patch reverts enabling MCP interrupts for the motorola_powerpc BSPs. REASON: pci config space scanning (as e.g. done by the DEC Ethernet driver) would raise machine check exceptions.
* 2003-07-16 Greg Menke <gregory.menke@gsfc.nasa.gov>Joel Sherrill2003-07-181-5/+7
| | | | | | | | | | | PR 428/bsps PR 432/bsps * bootloader/pci.c: Re-instated code that prevents remapping small IO regions, which if remapped would cause i8259 registers to move out from under the #define'd base addresses. * startup/bspstart.c: Reduced BAT2 PCI memory allocation to 256 megs, I incorrectly had extended it which would cause problems with PCI devices that defined prefetchable memory.