Commit 6bae3476 authored by Matthias Hopf's avatar Matthias Hopf
Browse files

Fixed leftover PCIACCESS -> XSERVER_LIBPCIACCESS.

parent a9a7763c
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "xf86xv.h" #include "xf86xv.h"
#ifdef PCIACCESS #ifdef XSERVER_LIBPCIACCESS
#include <pciaccess.h> #include <pciaccess.h>
#endif #endif
...@@ -53,7 +53,7 @@ static Bool debug = 0; ...@@ -53,7 +53,7 @@ static Bool debug = 0;
static const OptionInfoRec * FBDevAvailableOptions(int chipid, int busid); static const OptionInfoRec * FBDevAvailableOptions(int chipid, int busid);
static void FBDevIdentify(int flags); static void FBDevIdentify(int flags);
static Bool FBDevProbe(DriverPtr drv, int flags); static Bool FBDevProbe(DriverPtr drv, int flags);
#ifdef PCIACCESS #ifdef XSERVER_LIBPCIACCESS
static Bool FBDevPciProbe(DriverPtr drv, int entity_num, static Bool FBDevPciProbe(DriverPtr drv, int entity_num,
struct pci_device *dev, intptr_t match_data); struct pci_device *dev, intptr_t match_data);
#endif #endif
...@@ -84,7 +84,7 @@ static int pix24bpp = 0; ...@@ -84,7 +84,7 @@ static int pix24bpp = 0;
#define FBDEV_NAME "FBDEV" #define FBDEV_NAME "FBDEV"
#define FBDEV_DRIVER_NAME "fbdev" #define FBDEV_DRIVER_NAME "fbdev"
#ifdef PCIACCESS #ifdef XSERVER_LIBPCIACCESS
static const struct pci_id_match fbdev_device_match[] = { static const struct pci_id_match fbdev_device_match[] = {
{ {
PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY,
...@@ -108,7 +108,7 @@ _X_EXPORT DriverRec FBDEV = { ...@@ -108,7 +108,7 @@ _X_EXPORT DriverRec FBDEV = {
0, 0,
FBDevDriverFunc, FBDevDriverFunc,
#ifdef PCIACCESS #ifdef XSERVER_LIBPCIACCESS
fbdev_device_match, fbdev_device_match,
FBDevPciProbe FBDevPciProbe
#endif #endif
...@@ -298,7 +298,7 @@ FBDevIdentify(int flags) ...@@ -298,7 +298,7 @@ FBDevIdentify(int flags)
} }
#ifdef PCIACCESS #ifdef XSERVER_LIBPCIACCESS
static Bool FBDevPciProbe(DriverPtr drv, int entity_num, static Bool FBDevPciProbe(DriverPtr drv, int entity_num,
struct pci_device *dev, intptr_t match_data) struct pci_device *dev, intptr_t match_data)
{ {
...@@ -373,13 +373,13 @@ FBDevProbe(DriverPtr drv, int flags) ...@@ -373,13 +373,13 @@ FBDevProbe(DriverPtr drv, int flags)
for (i = 0; i < numDevSections; i++) { for (i = 0; i < numDevSections; i++) {
Bool isIsa = FALSE; Bool isIsa = FALSE;
#ifndef PCIACCESS #ifndef XSERVER_LIBPCIACCESS
Bool isPci = FALSE; Bool isPci = FALSE;
#endif #endif
dev = xf86FindOptionValue(devSections[i]->options,"fbdev"); dev = xf86FindOptionValue(devSections[i]->options,"fbdev");
if (devSections[i]->busID) { if (devSections[i]->busID) {
#ifndef PCIACCESS #ifndef XSERVER_LIBPCIACCESS
if (xf86ParsePciBusString(devSections[i]->busID,&bus,&device, if (xf86ParsePciBusString(devSections[i]->busID,&bus,&device,
&func)) { &func)) {
if (!xf86CheckPciSlot(bus,device,func)) if (!xf86CheckPciSlot(bus,device,func))
...@@ -393,7 +393,7 @@ FBDevProbe(DriverPtr drv, int flags) ...@@ -393,7 +393,7 @@ FBDevProbe(DriverPtr drv, int flags)
} }
if (fbdevHWProbe(NULL,dev,NULL)) { if (fbdevHWProbe(NULL,dev,NULL)) {
pScrn = NULL; pScrn = NULL;
#ifndef PCIACCESS #ifndef XSERVER_LIBPCIACCESS
if (isPci) { if (isPci) {
/* XXX what about when there's no busID set? */ /* XXX what about when there's no busID set? */
int entity; int entity;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment