]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: expose boot VGA device via sysfs.
authorDave Airlie <airlied@linux.ie>
Wed, 4 Mar 2009 05:57:05 +0000 (05:57 +0000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 17:48:17 +0000 (10:48 -0700)
commit58485768ae6493c3162ff04b0f18045ab103fce4
tree8994d8e8e76d5a339ba9e9e3f6403b8005083e11
parent725ef6515f3f49575c04a7bd1dcedd3be04adb42
PCI: expose boot VGA device via sysfs.

X really would like to know which VGA device was considered the boot
device by the system. The x86 PCI fixups have support for discovering
this but we provide no way to expose it to userspace.

This adds a sysfs file per VGA class device which has the value 0 for
non the boot device or unknown, and 1 if the VGA device is the boot
device.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-sysfs.c