Bug#16501: autodetection of sbus graphic cards

Add automatic detection of the graphic driver to load for sbus devices.
This allows xorg to work on those devices without a "Device" section.

Debian bug#483942.

Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
Bernhard R. Link 2008-10-26 00:19:34 +02:00 • committed by Julien Cristau
commit 24e863b0eb
3 changed files with 80 additions and 14 deletions

View file

@ -39,6 +39,9 @@
#include "xf86Config.h"
#include "xf86Priv.h"
#include "xf86_OSlib.h"
#ifdef __sparc__
# include "xf86sbusBus.h"
#endif
#include "dirent.h"
#ifdef sun
@ -472,6 +475,13 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
}
}
#endif
#ifdef __sparc__
{
char *sbusDriver = sparcDriverName();
if (sbusDriver)
matches[i++] = xnfstrdup(sbusDriver);
}
#endif
/* Find the primary device, and get some information about it. */
iter = pci_slot_match_iterator_create(NULL);