search for: busidstring

Displaying 1 result from an estimated 1 matches for "busidstring".

Did you mean: basicstring
2010 May 23
1
[PATCH] nv: improve KMS detection
...nv_driver.c index e10ae0c..6651cd4 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -836,18 +836,13 @@ NVIsSupported(CARD32 id) } #ifdef HAVE_KMS -static Bool NVKernelModesettingEnabled(struct pci_device *device) +static Bool NVKernelModesettingEnabled(struct pci_device *dev) { - char *busIdString; + char busIdString[20]; int ret; - if (!xf86LoaderCheckSymbol("DRICreatePCIBusID")) - return FALSE; - - busIdString = DRICreatePCIBusID(device); - + snprintf(busIdString, 20, "pci:%04x:%02x:%02x.%d", dev->domain, dev->bus, dev->dev, dev->fu...