提交 5dda4986 编写于 作者: A akpm@osdl.org 提交者: Dave Jones

[AGPGART] Suspend/Resume support for ATI GART

Add suspend/resume support for the ati-agp module
Signed-off-by: NJaco Kroon <jaco@kroon.co.za>
Acked-by: NPavel Machek <pavel@suse.cz>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NDave Jones <davej@redhat.com>
上级 90be4b49
...@@ -244,6 +244,22 @@ static int ati_configure(void) ...@@ -244,6 +244,22 @@ static int ati_configure(void)
} }
#ifdef CONFIG_PM
static int agp_ati_resume(struct pci_dev *dev)
{
pci_restore_state(dev);
return ati_configure();
}
static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state)
{
pci_save_state(dev);
return 0;
}
#endif
/* /*
*Since we don't need contigious memory we just try *Since we don't need contigious memory we just try
* to get the gatt table once * to get the gatt table once
...@@ -525,6 +541,10 @@ static struct pci_driver agp_ati_pci_driver = { ...@@ -525,6 +541,10 @@ static struct pci_driver agp_ati_pci_driver = {
.id_table = agp_ati_pci_table, .id_table = agp_ati_pci_table,
.probe = agp_ati_probe, .probe = agp_ati_probe,
.remove = agp_ati_remove, .remove = agp_ati_remove,
#ifdef CONFIG_PM
.resume = agp_ati_resume,
.suspend = agp_ati_suspend,
#endif
}; };
static int __init agp_ati_init(void) static int __init agp_ati_init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册