1*a7faac3dSIan Romanick /* 2*a7faac3dSIan Romanick * (C) Copyright IBM Corporation 2007 3*a7faac3dSIan Romanick * All Rights Reserved. 4*a7faac3dSIan Romanick * 5*a7faac3dSIan Romanick * Permission is hereby granted, free of charge, to any person obtaining a 6*a7faac3dSIan Romanick * copy of this software and associated documentation files (the "Software"), 7*a7faac3dSIan Romanick * to deal in the Software without restriction, including without limitation 8*a7faac3dSIan Romanick * on the rights to use, copy, modify, merge, publish, distribute, sub 9*a7faac3dSIan Romanick * license, and/or sell copies of the Software, and to permit persons to whom 10*a7faac3dSIan Romanick * the Software is furnished to do so, subject to the following conditions: 11*a7faac3dSIan Romanick * 12*a7faac3dSIan Romanick * The above copyright notice and this permission notice (including the next 13*a7faac3dSIan Romanick * paragraph) shall be included in all copies or substantial portions of the 14*a7faac3dSIan Romanick * Software. 15*a7faac3dSIan Romanick * 16*a7faac3dSIan Romanick * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17*a7faac3dSIan Romanick * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18*a7faac3dSIan Romanick * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 19*a7faac3dSIan Romanick * IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20*a7faac3dSIan Romanick * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21*a7faac3dSIan Romanick * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22*a7faac3dSIan Romanick * DEALINGS IN THE SOFTWARE. 23*a7faac3dSIan Romanick */ 24*a7faac3dSIan Romanick 25*a7faac3dSIan Romanick /** 26*a7faac3dSIan Romanick * \file linux_devmem.h 27*a7faac3dSIan Romanick * Functions and datastructures that are private to the /dev/mem based 28*a7faac3dSIan Romanick * back-end for pciaccess. 29*a7faac3dSIan Romanick * 30*a7faac3dSIan Romanick * \author Ian Romanick <[email protected]> 31*a7faac3dSIan Romanick */ 32*a7faac3dSIan Romanick 33*a7faac3dSIan Romanick extern int pci_device_linux_devmem_read_rom(struct pci_device *dev, 34*a7faac3dSIan Romanick void *buffer); 35