summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/pci/pci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move PCI drivers to bspsSebastian Huber2018-04-231-640/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* 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
* 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-161-5/+2
| | | | | | | | | | | | | + 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-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.
* 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.
* 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-301-1/+1
|
* 2009-05-05 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2009-05-051-3/+5
| | | | * shared/pci/pci.c: Removed warnings.
* 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-091-4/+6
|
* More stdint.h fixed-size types.Ralf Corsepius2007-04-021-8/+8
|
* Use stdint.h fixed-size types.Ralf Corsepius2007-03-311-5/+6
|
* 2005-11-03 Till Straumann <strauman@slac.stanford.edu>Till Straumann2005-11-041-172/+192
| | | | | | | | | | | | | | * 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.
* 2005-05-04 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-05-041-3/+3
| | | | | * 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-141-428/+437
| | | | | * 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-041-1/+1
| | | | | * pci/pci.c, pci/pcifinddevice.c, startup/bspstart.c: Make PCI initialize function part of the unified PCI API as pci_initialize().
* 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>Joel Sherrill2004-11-101-6/+10
| | | | | | | | | | | | * 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-211-40/+0
|
* Remove stray white spaces.Ralf Corsepius2004-04-211-38/+38
|
* 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-051-2/+3
| | | | | | | * 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.
* 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-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-06-13 Greg Menke <gregory.menke@gsfc.nasa.gov>Joel Sherrill2003-06-131-0/+315
| | | | | | | | | | | | | | | | | PR 405/bsps * bootloader/pci.c: Added support for configuring devices for pci busses > 0 * pci/pci.c, pci/pci.h: Added FixupPCI() to store vectors in the INTERRUPT_LINE register of pci devices any # of hops away from the host processor. * motorola/motorola.c, motorola/motorola.h: Added interrupt routing tables in support of FixupPCI. This is board-specific, each board will have to supply information for FixupPCI() to do anything for it. * startup/bspstart.c: Extended bat2 to cover entire PCI address space. * irq/irq.c, irq/irq.h: Added support for shared interrupts. Existing single hander vectors are undisturbed, a new function added to allow adding/removing handlers from a vector.
* 2001-05-14 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2002-05-141-102/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootloader/misc.c, console/Makefile.am, console/console.c, console/consoleIo.h, console/inch.c, console/polled_io.c, console/uart.c, console/uart.h, include/bsp.h, irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_init.c, openpic/openpic.c, openpic/openpic.h, pci/Makefile.am, pci/pci.c, pci/pci.h, residual/Makefile.am, start/start.S, startup/bspstart.c, vectors/vectors.S, vectors/vectors.h, vectors/vectors_init.c: Per PR216, "libbsp/powerpc/shared" BSP has been modified considerably with the goal to make it more flexible and reusable by other BSPs. The main strategies were: - eliminate hardcoded base addresses; devices use offsets and a BSP defined base address. - separate functionality into different files (e.g. reboot from inch.c to reboot.c) which can be overridden by a 'derived' BSP. - separate initialization code into separate files (e.g. PCI bridge detection/initialization was separated from the more generic PCI access routines), also to make it easier for 'derived' BSPs to substitute their own initialization code. There are also a couple of enhancements and fixes: - IRQ handling code now has a hook for attaching a VME bridge. - OpenPIC is now explicitely initialized (polarities, senses). Eliminated the implicit assumption on the presence of an ISA PIC. - UART and console driver now supports more than 1 port. The current maximum of 2 can easily be extended by enlarging a table (it would even be easier if the ISR API was not broken by design). - fixed polled_io.c so it correctly supports console on COM2 - fixed TLB invalidation code (start.S). - exception handler prints a stack backtrace. - added BSP_pciFindDevice() to scan the pci bus for a particular vendor/device/instance.
* Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.Joel Sherrill1999-12-021-0/+388
As part of this effort, the mpc750 libcpu code is now shared with the ppc6xx.