Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750914AbVLYUaO (ORCPT ); Sun, 25 Dec 2005 15:30:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750916AbVLYUaO (ORCPT ); Sun, 25 Dec 2005 15:30:14 -0500 Received: from mailspool.ops.uunet.co.za ([196.7.0.140]:12295 "EHLO mailspool.ops.uunet.co.za") by vger.kernel.org with ESMTP id S1750914AbVLYUaM (ORCPT ); Sun, 25 Dec 2005 15:30:12 -0500 Message-ID: <43AF0122.9030904@kroon.co.za> Date: Sun, 25 Dec 2005 22:29:22 +0200 From: Jaco Kroon User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20051007 X-Accept-Language: en, af, en-gb, en-us MIME-Version: 1.0 To: davej@codemonkey.org.uk Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ati-agp suspend/resume support X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms030005060508070700020206" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5933 Lines: 118 This is a cryptographically signed message in MIME format. --------------ms030005060508070700020206 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Based on the patch at http://unixhead.org/docs/thinkpad/ati-agp/ati-agp.diff, add support for suspend/resume in the ati-agp module. Signed-of-by: Jaco Kroon --- linux-2.6.15-rc6/drivers/char/agp/ati-agp.c.orig 2005-12-25 22:21:32.000000000 +0200 +++ linux-2.6.15-rc6/drivers/char/agp/ati-agp.c 2005-12-25 22:23:33.000000000 +0200 @@ -243,6 +243,15 @@ return 0; } +static int ati_resume(struct pci_dev *dev) +{ + return ati_configure(); +} + +static int ati_suspend(struct pci_dev *dev, pm_message_t state) +{ + return 0; +} /* *Since we don't need contigious memory we just try @@ -525,6 +534,8 @@ .id_table = agp_ati_pci_table, .probe = agp_ati_probe, .remove = agp_ati_remove, + .resume = ati_resume, + .suspend = ati_suspend, }; static int __init agp_ati_init(void) -- There are only 10 kinds of people in this world, those that understand binary and those that don't. http://www.kroon.co.za/ --------------ms030005060508070700020206 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII5TCC As0wggI2oAMCAQICAw3p1jANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDUwMTI4MjExMjIzWhcNMDYwMTI4MjExMjIz WjBCMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBq YWNvQGtyb29uLmNvLnphMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4CsLuOWD wimwAv4QLdlT99frJCwzUBVQNL7c7x4ufEquAH6RamWfQyQHzykEJM8NeMIrfb+k3fZEi+ZU g5sq2uIqzOuCJsIj0x3LnoydXTikbv1AFWQDEuqITlroA8bGJE/mMlbPrKyDACPo5cQAzUQz LAg7LQQQVkKNWH4eeXUwZ5lOZEWWno0P5DXHdSLQxCshgWVPRrbtKe25WGObqJMa//1T5qX8 0mKIdAbHlz90BwgX/MjLp0BpXTii2653ScOujCLTC3cPdDUDK68qG7RqatVw5+HE/npJIWa1 0TxJUp5Ii8nPbGPzpEWQmZ8TjkjMs26w80PPPKh2Vh2siQIDAQABoy0wKzAbBgNVHREEFDAS gRBqYWNvQGtyb29uLmNvLnphMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAqXNX QEMTVQoj3JoE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MaZvpOaRkKOZ7ttrkONXyPRCIXUG49Ij53J3xw3Xrj0D U2kpPt1uJj+3C549unEAwgESnCXXnYMW9cAZDc26YwleTYRMQyX+DJJ4NaIgwLgsViWi9mx1 dSZnJ5fVrDKcz5aTdpy+fKrGONj+6osw/B8NygAAAAAAAA== --------------ms030005060508070700020206-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/