From db1ee3078d1b44b05c98ea58942b3f69cadb4d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20G=C3=BCnther?= Date: Fri, 18 Dec 2009 21:32:33 +0000 Subject: [PATCH] Partially undoing r34965, as pcivar.h should not have been part of it. Sorry for the noise. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34696 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/compat/freebsd_network/compat/dev/pci/pcivar.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libs/compat/freebsd_network/compat/dev/pci/pcivar.h b/src/libs/compat/freebsd_network/compat/dev/pci/pcivar.h index 1c1e500d5b..310e44f5b8 100644 --- a/src/libs/compat/freebsd_network/compat/dev/pci/pcivar.h +++ b/src/libs/compat/freebsd_network/compat/dev/pci/pcivar.h @@ -51,7 +51,6 @@ int pci_release_msi(device_t dev); int pci_msix_count(device_t dev); int pci_alloc_msix(device_t dev, int *count); -int pci_get_powerstate(device_t dev); static inline int pci_get_vpd_ident(device_t dev, const char **identptr) @@ -67,4 +66,10 @@ pci_set_powerstate(device_t dev, int state) } +static inline int +pci_get_powerstate(device_t dev) +{ + return PCI_POWERSTATE_D0; +} + #endif /* _FBSD_COMPAT_DEV_PCI_PCIVAR_H_ */