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:
kettenis 2010-08-28 17:59:01 +00:00
parent 27f425c1a6
commit 1fb6d3c868
2 changed files with 12 additions and 1 deletions

View File

@ -468,7 +468,7 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
} }
} }
#endif #endif
#if defined(__sparc__) && !defined(__OpenBSD__) #if defined(__sparc__)
{ {
char *sbusDriver = sparcDriverName(); char *sbusDriver = sparcDriverName();
if (sbusDriver) if (sbusDriver)

View File

@ -190,3 +190,14 @@ void
sparcPromClose(void) sparcPromClose(void)
{ {
} }
char *
sparcDriverName(void)
{
switch (sbusInfo.devId) {
case SBUS_DEVICE_FFB:
return "sunffb";
default:
return NULL;
}
}