03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync/*
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Copyright (c) 1999-2003 by The XFree86 Project, Inc.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * copy of this software and associated documentation files (the "Software"),
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * to deal in the Software without restriction, including without limitation
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * and/or sell copies of the Software, and to permit persons to whom the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Software is furnished to do so, subject to the following conditions:
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * The above copyright notice and this permission notice shall be included in
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * all copies or substantial portions of the Software.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * OTHER DEALINGS IN THE SOFTWARE.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Except as contained in this notice, the name of the copyright holder(s)
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * and author(s) shall not be used in advertising or otherwise to promote
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * the sale, use or other dealings in this Software without prior written
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * authorization from the copyright holder(s) and author(s).
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync */
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#ifdef HAVE_XORG_CONFIG_H
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#include <xorg-config.h>
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#endif
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#ifndef _XF86_PCI_BUS_H
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#define _XF86_PCI_BUS_H
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncvoid xf86PciProbe(void);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncBool xf86PciAddMatchingDev(DriverPtr drvp);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncBool xf86PciProbeDev(DriverPtr drvp);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncvoid xf86PciIsolateDevice(char *argument);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncint xf86PciMatchDriver(char *matches[], int nmatches);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncBool xf86PciConfigure(void *busData, struct pci_device *pDev);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncvoid xf86PciConfigureNewDev(void *busData, struct pci_device *pVideo,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync GDevRec * GDev, int *chipset);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#define MATCH_PCI_DEVICES(x, y) (((x)->domain == (y)->domain) && \
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync ((x)->bus == (y)->bus) && \
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync ((x)->func == (y)->func) && \
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync ((x)->dev == (y)->dev))
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncvoid
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncxf86MatchDriverFromFiles(char **matches, uint16_t match_vendor, uint16_t match_chip);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncint
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsyncxf86VideoPtrToDriverList(struct pci_device *dev,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync char *returnList[], int returnListMax);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#endif /* _XF86_PCI_BUS_H */