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

Modified Files:
        adriver.h 
Log Message:
Big DMA cleanup originated by Russell King <[EMAIL PROTECTED]>
* Russel
  - introduced 'struct device' support for 2.6 dma_alloc_coherent()
* Jaroslav
  - removed all bus-specific allocation functions
  - extended snd_dma_alloc_pages/snd_dma_free_pages to handle all bus types
  - recoded all (or almost all) device drivers
  - sgbuf functions are bus independent now


Index: adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- adriver.h   24 Feb 2004 09:17:30 -0000      1.71
+++ adriver.h   2 Mar 2004 15:32:35 -0000       1.72
@@ -437,4 +437,31 @@
 #define snd_card_set_dev(card,dev) /* no struct device */
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
+
+struct device {
+       struct {
+#ifdef CONFIG_PCI
+               struct pci_dev *pci;
+#endif
+       } d;
+       u64 *dma_mask;
+};
+
+struct device *snd_kdevice_pci(struct pci_dev *pci);
+
+void *dma_alloc_coherent(struct device *dev, size_t size,
+                        dma_addr_t *dma_handle, int flag);
+void dma_free_coherent(struct device *dev, size_t size,
+                       void *vaddr, dma_addr_t dma_handle);
+
+#else
+
+static inline struct device *snd_kdevice_pci(struct pci_dev *pci)
+{
+       return &pci->dev;
+}
+
+#endif
+
 #endif /* __SOUND_LOCAL_DRIVER_H */



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to