summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-08-15 13:38:28 -0400
committerAdam Jackson <ajax@redhat.com>2012-08-15 13:38:28 -0400
commitcdf522f5992adf7b76f9153c777e6dddcf7758a6 (patch)
tree432b22ed0834e7dfe4b20129bf0cb0578d851ecb /src
parent763f387ccac2399f1d58ec112c8bed45196bea5e (diff)
Implement ->driverFunc
Copied from fbdev, makes it so we can run without iopl. Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_probe.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/radeon_probe.c b/src/radeon_probe.c
index 8044b45a..6ddfa885 100644
--- a/src/radeon_probe.c
+++ b/src/radeon_probe.c
@@ -240,6 +240,21 @@ radeon_pci_probe(
#endif /* XSERVER_LIBPCIACCESS */
+static Bool
+RADEONDriverFunc(ScrnInfoPtr scrn, xorgDriverFuncOp op, void *data)
+{
+ xorgHWFlags *flag;
+
+ switch (op) {
+ case GET_REQUIRED_HW_INTERFACES:
+ flag = (CARD32 *)data;
+ (*flag) = 0;
+ return TRUE;
+ default:
+ return FALSE;
+ }
+}
+
_X_EXPORT DriverRec RADEON =
{
RADEON_VERSION_CURRENT,
@@ -253,7 +268,7 @@ _X_EXPORT DriverRec RADEON =
RADEONAvailableOptions,
NULL,
0,
- NULL,
+ RADEONDriverFunc,
#ifdef XSERVER_LIBPCIACCESS
radeon_device_match,
radeon_pci_probe