|
@@ -25,13 +25,14 @@
|
|
|
#include <dma-coherence.h>
|
|
|
|
|
|
#ifdef CONFIG_DMA_MAYBE_COHERENT
|
|
|
-int coherentio = 0; /* User defined DMA coherency from command line. */
|
|
|
+/* User defined DMA coherency from command line. */
|
|
|
+enum coherent_io_user_state coherentio = IO_COHERENCE_DEFAULT;
|
|
|
EXPORT_SYMBOL_GPL(coherentio);
|
|
|
int hw_coherentio = 0; /* Actual hardware supported DMA coherency setting. */
|
|
|
|
|
|
static int __init setcoherentio(char *str)
|
|
|
{
|
|
|
- coherentio = 1;
|
|
|
+ coherentio = IO_COHERENCE_ENABLED;
|
|
|
pr_info("Hardware DMA cache coherency (command line)\n");
|
|
|
return 0;
|
|
|
}
|
|
@@ -39,7 +40,7 @@ early_param("coherentio", setcoherentio);
|
|
|
|
|
|
static int __init setnocoherentio(char *str)
|
|
|
{
|
|
|
- coherentio = 0;
|
|
|
+ coherentio = IO_COHERENCE_DISABLED;
|
|
|
pr_info("Software DMA cache coherency (command line)\n");
|
|
|
return 0;
|
|
|
}
|