summaryrefslogtreecommitdiff
path: root/libdrm/xf86drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdrm/xf86drm.c')
-rw-r--r--libdrm/xf86drm.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 4cc66937..e70a659a 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -882,11 +882,16 @@ int drmAgpRelease(int fd)
return 0;
}
-int drmAgpEnable(int fd, unsigned long mode)
+int drmAgpEnable(int fd, unsigned int mode, unsigned int bus, unsigned int slot,
+ unsigned int func)
{
- drm_agp_mode_t m;
+ drm_agp_setup_t m;
+
+ m.agp_mode = mode;
+ m.bus = bus;
+ m.slot = slot;
+ m.func = func;
- m.mode = mode;
if (ioctl(fd, DRM_IOCTL_AGP_ENABLE, &m)) return -errno;
return 0;
}