Update of /cvsroot/alsa/alsa-driver/acore
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14862/acore

Modified Files:
        pci_compat_22.c memalloc.inc1 
Log Message:
define pci_save_state()/pci_restore_state() functions for 2.2.x

Index: pci_compat_22.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/acore/pci_compat_22.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- pci_compat_22.c     31 Mar 2004 16:07:09 -0000      1.13
+++ pci_compat_22.c     12 May 2004 12:23:48 -0000      1.14
@@ -359,6 +359,20 @@
                snd_pci_compat_release_region(pdev, i);
 }
 
+void snd_pci_compat_save_state(struct pci_dev *pdev, u32 *buffer)
+{
+       int i;
+       for (i = 0; i < 16; i++)
+               pci_read_config_dword(pdev, i * 4, &buffer[i]);
+}
+
+void snd_pci_compat_restore_state(struct pci_dev *pdev, u32 *buffer)
+{
+       int i;
+       for (i = 0; i < 16; i++)
+               pci_write_config_dword(pdev, i * 4, buffer[i]);
+}
+
 #endif /* CONFIG_PCI */
 
 /* these functions are outside of CONFIG_PCI */

Index: memalloc.inc1
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/acore/memalloc.inc1,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- memalloc.inc1       30 Mar 2004 13:50:31 -0000      1.4
+++ memalloc.inc1       12 May 2004 12:23:48 -0000      1.5
@@ -22,6 +22,8 @@
 EXPORT_SYMBOL(snd_pci_compat_release_region);
 EXPORT_SYMBOL(snd_pci_compat_request_regions);
 EXPORT_SYMBOL(snd_pci_compat_release_regions);
+EXPORT_SYMBOL(snd_pci_compat_save_state);
+EXPORT_SYMBOL(snd_pci_compat_restore_state);
 #endif
 #endif
 



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to