mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jaco Kroon <jaco@kroon.co.za>
To: davej@codemonkey.org.uk
Cc: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Cc: Pavel Machek <pavel@suse.cz>
Subject: [PATCH] ati-agp suspend/resume support
Date: Tue, 27 Dec 2005 21:39:17 +0200	[thread overview]
Message-ID: <20051227193157.20CC586F7A@belrog.fns.co.za> (raw)

Add suspend/resume support for the ati-agp module

Signed-off-by: Jaco Kroon <jaco@kroon.co.za>
ACKed-by: Pavel Machek <pavel@suse.cz>

--- linux-2.6.15-rc6/drivers/char/agp/ati-agp.c.orig	2005-12-27 21:14:10.000000000 +0200
+++ linux-2.6.15-rc6/drivers/char/agp/ati-agp.c	2005-12-27 21:14:58.000000000 +0200
@@ -244,6 +244,22 @@
 }
 
 
+#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
  * to get the gatt table once
@@ -525,6 +541,10 @@
 	.id_table	= agp_ati_pci_table,
 	.probe		= agp_ati_probe,
 	.remove		= agp_ati_remove,
+#ifdef CONFIG_PM
+	.resume		= agp_ati_resume,
+	.suspend	= agp_ati_suspend,
+#endif
 };
 
 static int __init agp_ati_init(void)

             reply	other threads:[~2005-12-27 19:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-27 19:39 Jaco Kroon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-12-25 20:29 Jaco Kroon
2005-12-25 21:14 ` Pavel Machek
2005-12-26  4:52   ` Jaco Kroon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051227193157.20CC586F7A@belrog.fns.co.za \
    --to=jaco@kroon.co.za \
    --cc=akpm@osdl.org \
    --cc=davej@codemonkey.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®