From: Arjan van de Ven Date: Sat, 29 Apr 2006 08:59:08 +0000 (+0200) Subject: [PATCH] PCI: Add a "enable" sysfs attribute to the pci devices to allow userspace... X-Git-Tag: v2.6.18-rc1~1081^2~228^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f125d30487cea72542a84b4835c037163c7f3d5;p=pandora-kernel.git [PATCH] PCI: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access This patch adds an "enable" sysfs attribute to each PCI device. When read it shows the "enabled-ness" of the device, but you can write a "0" into it to disable a device, and a "1" to enable it. This later is needed for X and other cases where userspace wants to enable the BARs on a device (typical example: to run the video bios on a secundary head). Right now X does all this "by hand" via bitbanging, that's just evil. This allows X to no longer do that but to just let the kernel do this. Signed-off-by: Arjan van de Ven CC: Peter Jones Acked-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed