Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:52

0001 #ifndef RTEMS_PCI_IO_REMAP_H
0002 #define RTEMS_PCI_IO_REMAP_H
0003 /* Reconfigure all I/O base address registers for a range of PCI busses
0004  * (from and including 'bus_from' up to and not including 'bus_to').
0005  * adding an offset. This involves adjusting the base and limit registers
0006  * of PCI-PCI bridges, too.
0007  *
0008  * RESTRICTIONS: 'offset' must be 4k aligned (PCI req.); no argument check
0009  *          on the bus numbers is done.
0010  *
0011  * RETURNS: 0 on success and a number > 0 indicating the number of
0012  *          non-32bit bridges found where the offset couldn't be added.
0013  *          Devices behind such a bridge are not accessible through I/O
0014  *          and should probably be switched off (not done by this code).
0015  */
0016 
0017 int
0018 rtems_pci_io_remap(int bus_from, int bus_to, uint32_t offset);
0019 
0020 /* 
0021  * Authorship
0022  * ----------
0023  * This software ('beatnik' RTEMS BSP for MVME6100 and MVME5500) was
0024  *     created by Till Straumann <strauman@slac.stanford.edu>, 2005-2007,
0025  *     Stanford Linear Accelerator Center, Stanford University.
0026  * 
0027  * Acknowledgement of sponsorship
0028  * ------------------------------
0029  * The 'beatnik' BSP was produced by
0030  *     the Stanford Linear Accelerator Center, Stanford University,
0031  *     under Contract DE-AC03-76SFO0515 with the Department of Energy.
0032  * 
0033  * Government disclaimer of liability
0034  * ----------------------------------
0035  * Neither the United States nor the United States Department of Energy,
0036  * nor any of their employees, makes any warranty, express or implied, or
0037  * assumes any legal liability or responsibility for the accuracy,
0038  * completeness, or usefulness of any data, apparatus, product, or process
0039  * disclosed, or represents that its use would not infringe privately owned
0040  * rights.
0041  * 
0042  * Stanford disclaimer of liability
0043  * --------------------------------
0044  * Stanford University makes no representations or warranties, express or
0045  * implied, nor assumes any liability for the use of this software.
0046  * 
0047  * Stanford disclaimer of copyright
0048  * --------------------------------
0049  * Stanford University, owner of the copyright, hereby disclaims its
0050  * copyright and all other rights in this software.  Hence, anyone may
0051  * freely use it for any purpose without restriction.  
0052  * 
0053  * Maintenance of notices
0054  * ----------------------
0055  * In the interest of clarity regarding the origin and status of this
0056  * SLAC software, this and all the preceding Stanford University notices
0057  * are to remain affixed to any copy or derivative of this software made
0058  * or distributed by the recipient and are to be affixed to any copy of
0059  * software made or distributed by the recipient that contains a copy or
0060  * derivative of this software.
0061  * 
0062  * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
0063  */ 
0064 
0065 #endif
0066