mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
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:
parent
fd97ff1bdd
commit
24e863b0eb
3 changed files with 80 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue