aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-07-27 16:37:48 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-09 16:29:24 -0400
commit711d57796f5ce2d02d6e62c9034afbb16aedda31 (patch)
tree935861fee775b171cafc96de57fe4fbfa19892eb /include
parent5228a828ee044834d78abdf25306bf46b19dcc4d (diff)
PCI: expose function reset capability in sysfs
Some devices allow an individual function to be reset without affecting other functions in the same device: that's what pci_reset_function does. For devices that have this support, expose reset attribite in sysfs. This is useful e.g. for virtualization, where a qemu userspace process wants to reset the device when the guest is reset, to emulate machine reboot as closely as possible. Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 115fb7ba5089..a90f94020798 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -276,6 +276,7 @@ struct pci_dev {
276 unsigned int state_saved:1; 276 unsigned int state_saved:1;
277 unsigned int is_physfn:1; 277 unsigned int is_physfn:1;
278 unsigned int is_virtfn:1; 278 unsigned int is_virtfn:1;
279 unsigned int reset_fn:1;
279 pci_dev_flags_t dev_flags; 280 pci_dev_flags_t dev_flags;
280 atomic_t enable_cnt; /* pci_enable_device has been called */ 281 atomic_t enable_cnt; /* pci_enable_device has been called */
281 282