]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/cris/include/arch-v32/arch/cache.h
CRIS: Define __read_mostly for CRISv32
[net-next-2.6.git] / arch / cris / include / arch-v32 / arch / cache.h
CommitLineData
51533b61
MS
1#ifndef _ASM_CRIS_ARCH_CACHE_H
2#define _ASM_CRIS_ARCH_CACHE_H
3
556dcee7 4#include <arch/hwregs/dma.h>
738af38b 5
51533b61
MS
6/* A cache-line is 32 bytes. */
7#define L1_CACHE_BYTES 32
8#define L1_CACHE_SHIFT 5
51533b61 9
6fdf581e
JN
10#define __read_mostly __attribute__((__section__(".data.read_mostly")))
11
738af38b
JN
12void flush_dma_list(dma_descr_data *descr);
13void flush_dma_descr(dma_descr_data *descr, int flush_buf);
14
15#define flush_dma_context(c) \
16 flush_dma_list(phys_to_virt((c)->saved_data));
17
18void cris_flush_cache_range(void *buf, unsigned long len);
19void cris_flush_cache(void);
20
51533b61 21#endif /* _ASM_CRIS_ARCH_CACHE_H */