2008-03-28 17:47:00 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2008,
|
|
|
|
* Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
|
|
|
|
*
|
2013-07-08 16:37:19 +09:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2008-03-28 17:47:00 +09:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SPARC_CACHE_H__
|
|
|
|
#define __SPARC_CACHE_H__
|
|
|
|
|
|
|
|
#include <linux/config.h>
|
|
|
|
#include <asm/processor.h>
|
|
|
|
|
2011-10-18 08:46:08 +09:00
|
|
|
/*
|
|
|
|
* If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment. Otherwise
|
|
|
|
* use 32-bytes, the cacheline size for Sparc.
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_SYS_CACHELINE_SIZE
|
|
|
|
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
|
|
|
|
#else
|
|
|
|
#define ARCH_DMA_MINALIGN 32
|
|
|
|
#endif
|
|
|
|
|
2008-03-28 17:47:00 +09:00
|
|
|
#endif
|