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:
parent
27f425c1a6
commit
1fb6d3c868
@ -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)
|
||||||
|
@ -190,3 +190,14 @@ void
|
|||||||
sparcPromClose(void)
|
sparcPromClose(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *
|
||||||
|
sparcDriverName(void)
|
||||||
|
{
|
||||||
|
switch (sbusInfo.devId) {
|
||||||
|
case SBUS_DEVICE_FFB:
|
||||||
|
return "sunffb";
|
||||||
|
default:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user