1
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86DoProbe.c,v 1.11 2002/07/02 02:00:03 tsi Exp $ */
3
* finish setting up the server
4
* Load the driver modules and call their probe functions.
6
* Copyright 1999 by The XFree86 Project, Inc.
16
#include "loaderProcs.h"
17
#include "xf86Config.h"
18
#endif /* XFree86LOADER */
23
DoProbeArgs(int argc, char **argv, int i)
34
/* Find the list of video driver modules. */
35
char **list = xf86DriverlistFromCompile();
39
ErrorF("List of video driver modules:\n");
40
for (l = list; *l; l++)
43
ErrorF("No video driver modules found\n");
46
/* Load all the drivers that were found. */
47
xf86LoadModules(list, NULL);
48
#endif /* XFree86LOADER */
50
/* Disable PCI devices */
53
/* Call all of the probe functions, reporting the results. */
54
for (i = 0; i < xf86NumDrivers; i++) {
55
if (xf86DriverList[i]->Probe == NULL) continue;
57
xf86MsgVerb(X_INFO, 3, "Probing in driver %s\n",
58
xf86DriverList[i]->driverName);
60
(*xf86DriverList[i]->Probe)(xf86DriverList[i], PROBE_DETECT);
62
xf86ErrorF("Probe in driver `%s' returns FALSE\n",
63
xf86DriverList[i]->driverName);
65
xf86ErrorF("Probe in driver `%s' returns TRUE\n",
66
xf86DriverList[i]->driverName);
68
/* If we have a result, then call driver's Identify function */
69
if (xf86DriverList[i]->Identify != NULL) {
70
int verbose = xf86Verbose;
73
(*xf86DriverList[i]->Identify)(0);
74
xf86Verbose = verbose;