- add support for new sysfs structure
This commit is contained in:
parent
fe18327b3c
commit
0028e5389b
@ -156,10 +156,10 @@ index 230f54c..7b41860 100644
|
||||
extern drmVersionPtr drmGetLibVersion(int fd);
|
||||
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
|
||||
new file mode 100644
|
||||
index 0000000..07b14db
|
||||
index 0000000..f86cc48
|
||||
--- /dev/null
|
||||
+++ b/libdrm/xf86drmMode.c
|
||||
@@ -0,0 +1,594 @@
|
||||
@@ -0,0 +1,613 @@
|
||||
+/*
|
||||
+ * \file xf86drmMode.c
|
||||
+ * Header for DRM modesetting interface.
|
||||
@ -730,6 +730,25 @@ index 0000000..07b14db
|
||||
+ if (ret != 4)
|
||||
+ return -EINVAL;
|
||||
+
|
||||
+ sprintf(pci_dev_dir, "/sys/bus/pci/devices/%04x:%02x:%02x.%d/drm",
|
||||
+ domain, bus, dev, func);
|
||||
+
|
||||
+ sysdir = opendir(pci_dev_dir);
|
||||
+ if (sysdir) {
|
||||
+ dent = readdir(sysdir);
|
||||
+ while (dent) {
|
||||
+ if (!strncmp(dent->d_name, "controlD", 8)) {
|
||||
+ found = 1;
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ dent = readdir(sysdir);
|
||||
+ }
|
||||
+ closedir(sysdir);
|
||||
+ if (found)
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ sprintf(pci_dev_dir, "/sys/bus/pci/devices/%04x:%02x:%02x.%d/",
|
||||
+ domain, bus, dev, func);
|
||||
+
|
||||
|
@ -3,7 +3,7 @@
|
||||
Summary: Direct Rendering Manager runtime library
|
||||
Name: libdrm
|
||||
Version: 2.4.0
|
||||
Release: 0.8%{?dist}
|
||||
Release: 0.9%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://dri.sourceforge.net
|
||||
@ -92,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/pkgconfig/libdrm.pc
|
||||
|
||||
%changelog
|
||||
* Fri Mar 07 2008 Dave Airlie <airlied@redhat.com> 2.4.0-0.9
|
||||
- add support for new sysfs structure
|
||||
|
||||
* Thu Mar 06 2008 Dave Airlie <airlied@redhat.com> 2.4.0-0.8
|
||||
- add modprobe.d file so i915 modesetting can be specified on kernel command
|
||||
line
|
||||
|
Loading…
Reference in New Issue
Block a user