xf86Pci.h revision a2760a4d593af57a19ec32cdfd1723b68495df8c
* Copyright 1998 by Concurrent Computer Corporation * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Concurrent Computer * Corporation not be used in advertising or publicity pertaining to * distribution of the software without specific, written prior * permission. Concurrent Computer Corporation makes no representations * about the suitability of this software for any purpose. It is * provided "as is" without express or implied warranty. * CONCURRENT COMPUTER CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL CONCURRENT COMPUTER CORPORATION BE * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * Copyright 1998 by Metro Link Incorporated * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Metro Link * Incorporated not be used in advertising or publicity pertaining to * distribution of the software without specific, written prior * permission. Metro Link Incorporated makes no representations * about the suitability of this software for any purpose. It is * provided "as is" without express or implied warranty. * METRO LINK INCORPORATED DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL METRO LINK INCORPORATED BE * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * This file is derived in part from the original xf86_PCI.h that included * following copyright message: * Copyright 1995 by Robin Cutshaw <robin@XFree86.Org> * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the names of the above listed copyright holder(s) * not be used in advertising or publicity pertaining to distribution of * the software without specific, written prior permission. The above listed * copyright holder(s) make(s) no representations about the suitability of this * software for any purpose. It is provided "as is" without express or * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * Copyright (c) 1999-2003 by The XFree86 Project, Inc. * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * Except as contained in this notice, the name of the copyright holder(s) * and author(s) shall not be used in advertising or otherwise to promote * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). * This file contains just the public interface to the PCI code. * Drivers should use this file rather than Pci.h. * PCI cfg space definitions (e.g. stuff right out of the PCI spec) /* Device identification register */ /* Command and status register */ /* 0x00 prehistoric subclasses */ /* 0x01 mass storage subclasses */ /* 0x02 network subclasses */ /* 0x03 display subclasses */ /* 0x04 multimedia subclasses */ /* 0x05 memory subclasses */ /* 0x06 bridge subclasses */ /* 0x07 communications controller subclasses */ /* 0x08 generic system peripherals subclasses */ /* 0x09 input device subclasses */ /* 0x0a docking station subclasses */ /* 0x0b processor subclasses */ /* 0x0c serial bus controller subclasses */ /* 0x0d wireless controller subclasses */ /* 0x0e intelligent I/O controller subclasses */ /* 0x0f satellite communications controller subclasses */ /* 0x11 data acquisition and signal processing controller subclasses */ /* Interrupt configration register */ /* PCI-PCI bridge mapping registers */ /* header type 2 extensions */ /* Subsystem identification register */ /* User defined cfg space regs */ typedef unsigned long IOADDRESS;
/* Must be large enough for a pointer */ * PCI configuration space /* start of official PCI config space header */ union {
/* Offset 0x0 - 0x3 */ union {
/* Offset 0x4 - 0x8 */ union {
/* Offset 0x8 - 0xb */ union {
/* Offset 0xc - 0xf */ union {
/* Offset 0x10 - 0x3b */ struct {
/* header type 2 */ union {
/* Offset 0x10 - 0x27 */ struct {
/* header type 0 */ struct {
/* header type 1 */ union {
/* Offset 0x28 - 0x2b */ union {
/* Offset 0x2c - 0x2f */ union {
/* Offset 0x30 - 0x33 */ union {
/* Offset 0x3c - 0x3f */ union {
/* header type 0 */ struct {
/* header type 1 */ union {
/* Offset 0x40 - 0xff */ * Data structure returned by xf86scanpci including contents of * PCI config space header int basesize[
7];
/* number of bits in base addr allocations */ /* Public PCI access functions */ /* Domain access functions. Some of these probably shouldn't be public */