Update of /cvsroot/alsa/alsa-driver/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12394/include
Modified Files:
adriver.h
Log Message:
- fixes for build with 2.2 kernels.
- moved local stuffs for memalloc from adriver.h to memalloc.inc.
Index: adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- adriver.h 4 Mar 2004 14:02:26 -0000 1.74
+++ adriver.h 5 Mar 2004 11:54:05 -0000 1.75
@@ -438,46 +438,12 @@
#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);
-
-static inline struct pci_dev *to_pci_dev(struct device *dev)
-{
- return dev->d.pci;
-}
-
-static inline void *dma_alloc_coherent(struct device *dev, size_t size,
- dma_addr_t *dma_handle, int flag)
-{
- return pci_alloc_consistent(to_pci_dev(dev), size, dma_handle);
-}
-
-static inline void dma_free_coherent(struct device *dev, size_t size,
- void *vaddr, dma_addr_t dma_handle)
-{
- pci_free_consistent(to_pci_dev(dev), size, vaddr, dma_handle);
-}
-
-#else
-
-static inline struct device *snd_kdevice_pci(struct pci_dev *pci)
-{
- return &pci->dev;
-}
-
-#endif
-
-#ifndef __GFP_NOWARN
-#define __GFP_NOWARN 0
#endif
#endif /* __SOUND_LOCAL_DRIVER_H */
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog