source: rtems/bsps/powerpc/beatnik/pci/pci_io_remap.h @ 5a4e3dc0

5
Last change on this file since 5a4e3dc0 was 5a4e3dc0, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 23, 2018 at 10:50:58 AM

bsps: Move PCI drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1#ifndef RTEMS_PCI_IO_REMAP_H
2#define RTEMS_PCI_IO_REMAP_H
3/* Reconfigure all I/O base address registers for a range of PCI busses
4 * (from and including 'bus_from' up to and not including 'bus_to').
5 * adding an offset. This involves adjusting the base and limit registers
6 * of PCI-PCI bridges, too.
7 *
8 * RESTRICTIONS: 'offset' must be 4k aligned (PCI req.); no argument check
9 *                      on the bus numbers is done.
10 *
11 * RETURNS: 0 on success and a number > 0 indicating the number of
12 *          non-32bit bridges found where the offset couldn't be added.
13 *          Devices behind such a bridge are not accessible through I/O
14 *          and should probably be switched off (not done by this code).
15 */
16
17int
18rtems_pci_io_remap(int bus_from, int bus_to, uint32_t offset);
19
20/*
21 * Authorship
22 * ----------
23 * This software ('beatnik' RTEMS BSP for MVME6100 and MVME5500) was
24 *     created by Till Straumann <strauman@slac.stanford.edu>, 2005-2007,
25 *         Stanford Linear Accelerator Center, Stanford University.
26 *
27 * Acknowledgement of sponsorship
28 * ------------------------------
29 * The 'beatnik' BSP was produced by
30 *     the Stanford Linear Accelerator Center, Stanford University,
31 *         under Contract DE-AC03-76SFO0515 with the Department of Energy.
32 *
33 * Government disclaimer of liability
34 * ----------------------------------
35 * Neither the United States nor the United States Department of Energy,
36 * nor any of their employees, makes any warranty, express or implied, or
37 * assumes any legal liability or responsibility for the accuracy,
38 * completeness, or usefulness of any data, apparatus, product, or process
39 * disclosed, or represents that its use would not infringe privately owned
40 * rights.
41 *
42 * Stanford disclaimer of liability
43 * --------------------------------
44 * Stanford University makes no representations or warranties, express or
45 * implied, nor assumes any liability for the use of this software.
46 *
47 * Stanford disclaimer of copyright
48 * --------------------------------
49 * Stanford University, owner of the copyright, hereby disclaims its
50 * copyright and all other rights in this software.  Hence, anyone may
51 * freely use it for any purpose without restriction. 
52 *
53 * Maintenance of notices
54 * ----------------------
55 * In the interest of clarity regarding the origin and status of this
56 * SLAC software, this and all the preceding Stanford University notices
57 * are to remain affixed to any copy or derivative of this software made
58 * or distributed by the recipient and are to be affixed to any copy of
59 * software made or distributed by the recipient that contains a copy or
60 * derivative of this software.
61 *
62 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
63 */ 
64
65#endif
66
Note: See TracBrowser for help on using the repository browser.