コード例 #1
0
ファイル: setup.c プロジェクト: ndmsystems/linux-2.6.36
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
}
コード例 #2
0
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");
	}
}
コード例 #3
0
ファイル: malta-setup.c プロジェクト: jing-git/rt-n56u
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
}