diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-21 16:10:24 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-21 16:10:24 +1000 |
commit | 4bc9292ff9338e759eb9a73f12edfa5ca87353e0 (patch) | |
tree | 657cdfbc0008e28ed942e158fe8b5b7bc1faa4ff /src/common_interface.c | |
parent | ded8326f2adadc773b34889474a0d4fc20ef387a (diff) |
linux: add pci_device_enable entrypoint and sysfs support for it
Diffstat (limited to 'src/common_interface.c')
-rw-r--r-- | src/common_interface.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common_interface.c b/src/common_interface.c index aee2754..663ab44 100644 --- a/src/common_interface.c +++ b/src/common_interface.c @@ -604,3 +604,14 @@ pci_device_cfg_write_bits( struct pci_device * dev, uint32_t mask, return err; } + +void +pci_device_enable(struct pci_device *dev) +{ + if (dev == NULL) { + return; + } + + if (pci_sys->methods->enable) + pci_sys->methods->enable(dev); +} |