mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-12 20:29:12 +00:00
Fix autoconfiguration for accelerated drivers on sparc/sparc64. Currently
limited to sunffb; others will need to be added to bsd_sbus.c if we start shipping them. ok matthieu@, oga@
This commit is contained in:
@@ -468,7 +468,7 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#if defined(__sparc__) && !defined(__OpenBSD__)
|
||||
#if defined(__sparc__)
|
||||
{
|
||||
char *sbusDriver = sparcDriverName();
|
||||
if (sbusDriver)
|
||||
|
||||
@@ -190,3 +190,14 @@ void
|
||||
sparcPromClose(void)
|
||||
{
|
||||
}
|
||||
|
||||
char *
|
||||
sparcDriverName(void)
|
||||
{
|
||||
switch (sbusInfo.devId) {
|
||||
case SBUS_DEVICE_FFB:
|
||||
return "sunffb";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user