|
@@ -151,6 +151,7 @@
|
|
#define DMA_AUTOINIT 0x10
|
|
#define DMA_AUTOINIT 0x10
|
|
|
|
|
|
|
|
|
|
|
|
+#ifdef CONFIG_ISA_DMA_API
|
|
extern spinlock_t dma_spin_lock;
|
|
extern spinlock_t dma_spin_lock;
|
|
|
|
|
|
static inline unsigned long claim_dma_lock(void)
|
|
static inline unsigned long claim_dma_lock(void)
|
|
@@ -164,6 +165,7 @@ static inline void release_dma_lock(unsigned long flags)
|
|
{
|
|
{
|
|
spin_unlock_irqrestore(&dma_spin_lock, flags);
|
|
spin_unlock_irqrestore(&dma_spin_lock, flags);
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_ISA_DMA_API */
|
|
|
|
|
|
/* enable/disable a specific DMA channel */
|
|
/* enable/disable a specific DMA channel */
|
|
static inline void enable_dma(unsigned int dmanr)
|
|
static inline void enable_dma(unsigned int dmanr)
|
|
@@ -303,9 +305,11 @@ static inline int get_dma_residue(unsigned int dmanr)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-/* These are in kernel/dma.c: */
|
|
|
|
|
|
+/* These are in kernel/dma.c because x86 uses CONFIG_GENERIC_ISA_DMA */
|
|
|
|
+#ifdef CONFIG_ISA_DMA_API
|
|
extern int request_dma(unsigned int dmanr, const char *device_id);
|
|
extern int request_dma(unsigned int dmanr, const char *device_id);
|
|
extern void free_dma(unsigned int dmanr);
|
|
extern void free_dma(unsigned int dmanr);
|
|
|
|
+#endif
|
|
|
|
|
|
/* From PCI */
|
|
/* From PCI */
|
|
|
|
|