static void __init plat_setup_iocoherency(void) { #ifdef CONFIG_DMA_NONCOHERENT /* * Kernel has been configured with software coherency * but we might choose to turn it off */ if (plat_enable_iocoherency()) { if (coherentio == 0) pr_info("Hardware DMA cache coherency supported" " but disabled from command line\n"); else { coherentio = 1; printk(KERN_INFO "Hardware DMA cache coherency\n"); } } else { if (coherentio == 1) pr_info("Hardware DMA cache coherency not supported" " but enabled from command line\n"); else { coherentio = 0; pr_info("Software DMA cache coherency\n"); } } #else if (!plat_enable_iocoherency()) panic("Hardware DMA cache coherency not supported"); #endif }
static void __init plat_setup_iocoherency(void) { if (plat_enable_iocoherency()) { if (coherentio == IO_COHERENCE_DISABLED) pr_info("Hardware DMA cache coherency disabled\n"); else pr_info("Hardware DMA cache coherency enabled\n"); } else { if (coherentio == IO_COHERENCE_ENABLED) pr_info("Hardware DMA cache coherency unsupported, but enabled from command line!\n"); else pr_info("Software DMA cache coherency enabled\n"); } }
static void __init plat_setup_iocoherency(void) { #ifdef CONFIG_DMA_NONCOHERENT /* * Kernel has been configured with software coherency * but we might choose to turn it off and use hardware * coherency instead. */ if (plat_enable_iocoherency()) { if (coherentio == 0) pr_info("Hardware DMA cache coherency disabled\n"); else pr_info("Hardware DMA cache coherency enabled\n"); } else { if (coherentio == 1) pr_info("Hardware DMA cache coherency unsupported, but enabled from command line!\n"); else pr_info("Software DMA cache coherency enabled\n"); } #else if (!plat_enable_iocoherency()) panic("Hardware DMA cache coherency not supported!"); #endif }