fix a kmap leak in virtio_console
[linux/fpc-iii.git] / arch / arm / mach-at91 / include / mach / at91_matrix.h
blobf8996c954131b1bdf88b75958b6d80527b4070a6
1 /*
2 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
4 * Under GPLv2
5 */
7 #ifndef __MACH_AT91_MATRIX_H__
8 #define __MACH_AT91_MATRIX_H__
10 #ifndef __ASSEMBLY__
11 extern void __iomem *at91_matrix_base;
13 #define at91_matrix_read(field) \
14 __raw_readl(at91_matrix_base + field)
16 #define at91_matrix_write(field, value) \
17 __raw_writel(value, at91_matrix_base + field)
19 #else
20 .extern at91_matrix_base
21 #endif
23 #endif /* __MACH_AT91_MATRIX_H__ */