diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-08-28 17:59:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-08-28 17:59:02 +0000 |
commit | a364fb16dcfe379a2b344fc6aea36bc90b63e892 (patch) | |
tree | a04333cab82ff01d99a89b77a63314d5a9cda595 /xserver/hw | |
parent | 618684cff0e57ad903e2139d00631abeb82d8427 (diff) |
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@
Diffstat (limited to 'xserver/hw')
-rw-r--r-- | xserver/hw/xfree86/common/xf86AutoConfig.c | 2 | ||||
-rw-r--r-- | xserver/hw/xfree86/os-support/bsd/bsd_sbus.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/xserver/hw/xfree86/common/xf86AutoConfig.c b/xserver/hw/xfree86/common/xf86AutoConfig.c index 2e10eb5eb..c15a6fd21 100644 --- a/xserver/hw/xfree86/common/xf86AutoConfig.c +++ b/xserver/hw/xfree86/common/xf86AutoConfig.c @@ -468,7 +468,7 @@ listPossibleVideoDrivers(char *matches[], int nmatches) } } #endif -#if defined(__sparc__) && !defined(__OpenBSD__) +#if defined(__sparc__) { char *sbusDriver = sparcDriverName(); if (sbusDriver) diff --git a/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c b/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c index 385ac51f1..d518ece17 100644 --- a/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c +++ b/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c @@ -190,3 +190,14 @@ void sparcPromClose(void) { } + +char * +sparcDriverName(void) +{ + switch (sbusInfo.devId) { + case SBUS_DEVICE_FFB: + return "sunffb"; + default: + return NULL; + } +} |