// SPDX-License-Identifier: GPL-2.0-only1/*2* Microblaze support for cache consistent memory.3* Copyright (C) 2010 Michal Simek <[email protected]>4* Copyright (C) 2010 PetaLogix5* Copyright (C) 2005 John Williams <[email protected]>6*/78#include <linux/kernel.h>9#include <linux/string.h>10#include <linux/types.h>11#include <linux/mm.h>12#include <linux/init.h>13#include <linux/dma-map-ops.h>14#include <asm/cpuinfo.h>15#include <asm/cacheflush.h>1617void arch_dma_prep_coherent(struct page *page, size_t size)18{19phys_addr_t paddr = page_to_phys(page);2021flush_dcache_range(paddr, paddr + size);22}232425