}
}
-#ifdef notyet
-
static int amdgpu_pmops_prepare(struct device *dev)
{
struct drm_device *drm_dev = dev_get_drvdata(dev);
return r;
}
+#ifdef notyet
+
static int amdgpu_pmops_freeze(struct device *dev)
{
struct drm_device *drm_dev = dev_get_drvdata(dev);
struct drm_gem_object *obj;
struct amdgpu_bo *rbo;
+ dev_set_drvdata(self, dev);
+
r = amdgpu_driver_load_kms(adev, adev->flags);
if (r)
goto out;
switch (act) {
case DVACT_QUIESCE:
rv = config_activate_children(self, act);
- amdgpu_device_prepare(dev);
- amdgpu_device_suspend(dev, true);
+ amdgpu_pmops_prepare(self);
+ amdgpu_pmops_suspend(self);
break;
case DVACT_SUSPEND:
+ amdgpu_pmops_suspend_noirq(self);
break;
case DVACT_RESUME:
break;
case DVACT_WAKEUP:
- amdgpu_device_resume(dev, true);
+ amdgpu_pmops_resume(self);
rv = config_activate_children(self, act);
break;
}
-/* $OpenBSD: pci.h,v 1.16 2024/01/16 23:38:13 jsg Exp $ */
+/* $OpenBSD: pci.h,v 1.17 2024/08/16 10:46:46 kettenis Exp $ */
/*
* Copyright (c) 2015 Mark Kettenis
*
#define PCI_CLASS_ACCELERATOR_PROCESSING \
(PCI_CLASS_ACCELERATOR << 8)
+static inline int
+pci_device_is_present(struct pci_dev *pdev)
+{
+ return 1;
+}
+
#endif /* _LINUX_PCI_H_ */