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_ */