xf86Pci.h revision 45e9809aff7304721fddb95654901b32195c9c7a
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Copyright 1998 by Concurrent Computer Corporation
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Permission to use, copy, modify, distribute, and sell this software
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * and its documentation for any purpose is hereby granted without fee,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * provided that the above copyright notice appear in all copies and that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * both that copyright notice and this permission notice appear in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * supporting documentation, and that the name of Concurrent Computer
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Corporation not be used in advertising or publicity pertaining to
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * distribution of the software without specific, written prior
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * permission. Concurrent Computer Corporation makes no representations
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * about the suitability of this software for any purpose. It is
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * provided "as is" without express or implied warranty.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * CONCURRENT COMPUTER CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * AND FITNESS, IN NO EVENT SHALL CONCURRENT COMPUTER CORPORATION BE
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * SOFTWARE.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Copyright 1998 by Metro Link Incorporated
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Permission to use, copy, modify, distribute, and sell this software
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * and its documentation for any purpose is hereby granted without fee,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * provided that the above copyright notice appear in all copies and that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * both that copyright notice and this permission notice appear in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * supporting documentation, and that the name of Metro Link
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Incorporated not be used in advertising or publicity pertaining to
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * distribution of the software without specific, written prior
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * permission. Metro Link Incorporated makes no representations
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * about the suitability of this software for any purpose. It is
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * provided "as is" without express or implied warranty.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * METRO LINK INCORPORATED DISCLAIMS ALL WARRANTIES WITH REGARD
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * AND FITNESS, IN NO EVENT SHALL METRO LINK INCORPORATED BE
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * SOFTWARE.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * This file is derived in part from the original xf86_PCI.h that included
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * following copyright message:
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Copyright 1995 by Robin Cutshaw <robin@XFree86.Org>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Permission to use, copy, modify, distribute, and sell this software and its
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * documentation for any purpose is hereby granted without fee, provided that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * the above copyright notice appear in all copies and that both that
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * copyright notice and this permission notice appear in supporting
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * documentation, and that the names of the above listed copyright holder(s)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * not be used in advertising or publicity pertaining to distribution of
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * the software without specific, written prior permission. The above listed
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * copyright holder(s) make(s) no representations about the suitability of this
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * software for any purpose. It is provided "as is" without express or
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * implied warranty.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Copyright (c) 1999-2003 by The XFree86 Project, Inc.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * copy of this software and associated documentation files (the "Software"),
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * to deal in the Software without restriction, including without limitation
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * and/or sell copies of the Software, and to permit persons to whom the
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Software is furnished to do so, subject to the following conditions:
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * The above copyright notice and this permission notice shall be included in
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * all copies or substantial portions of the Software.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * OTHER DEALINGS IN THE SOFTWARE.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Except as contained in this notice, the name of the copyright holder(s)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * and author(s) shall not be used in advertising or otherwise to promote
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * the sale, use or other dealings in this Software without prior written
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * authorization from the copyright holder(s) and author(s).
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * This file contains just the public interface to the PCI code.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Drivers should use this file rather than Pci.h.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * PCI cfg space definitions (e.g. stuff right out of the PCI spec)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Device identification register */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Command and status register */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* base class */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* base class values */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* sub class */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Sub class values */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* 0x00 prehistoric subclasses */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* 0x03 display subclasses */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* 0x04 multimedia subclasses */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* 0x06 bridge subclasses */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* 0x0b processor subclasses */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* PCI-PCI bridge mapping registers */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Subsystem identification register */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* User defined cfg space regs */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync * Typedefs, etc...
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Primitive Types */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctypedef unsigned long ADDRESS; /* Memory/PCI address */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctypedef unsigned long IOADDRESS; /* Must be large enough for a pointer */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctypedef unsigned long PCITAG;
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctypedef enum {
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Public PCI access functions */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncextern _X_EXPORT PCITAG pciTag(int busnum, int devnum, int funcnum);
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync/* Domain access functions. Some of these probably shouldn't be public */
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncextern _X_EXPORT pointer xf86MapDomainMemory(int ScreenNum, int Flags, struct pci_device *dev,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncextern _X_EXPORT IOADDRESS xf86MapLegacyIO(struct pci_device *dev);
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#endif /* _XF86PCI_H */