| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | 2 | // Copyright (C) 2005-2017 Andes Technology Corporation |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | #ifndef __ASM_NDS32_IO_H |
|---|
| .. | .. |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | #include <linux/types.h> |
|---|
| 8 | 8 | |
|---|
| 9 | | -extern void iounmap(volatile void __iomem *addr); |
|---|
| 10 | 9 | #define __raw_writeb __raw_writeb |
|---|
| 11 | 10 | static inline void __raw_writeb(u8 val, volatile void __iomem *addr) |
|---|
| 12 | 11 | { |
|---|
| .. | .. |
|---|
| 55 | 54 | #define __iormb() rmb() |
|---|
| 56 | 55 | #define __iowmb() wmb() |
|---|
| 57 | 56 | |
|---|
| 58 | | -#define mmiowb() __asm__ __volatile__ ("msync all" : : : "memory"); |
|---|
| 59 | | - |
|---|
| 60 | 57 | /* |
|---|
| 61 | 58 | * {read,write}{b,w,l,q}_relaxed() are like the regular version, but |
|---|
| 62 | 59 | * are not guaranteed to provide ordering against spinlocks or memory |
|---|
| .. | .. |
|---|
| 81 | 78 | #define writeb(v,c) ({ __iowmb(); writeb_relaxed((v),(c)); }) |
|---|
| 82 | 79 | #define writew(v,c) ({ __iowmb(); writew_relaxed((v),(c)); }) |
|---|
| 83 | 80 | #define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c)); }) |
|---|
| 81 | + |
|---|
| 84 | 82 | #include <asm-generic/io.h> |
|---|
| 83 | + |
|---|
| 85 | 84 | #endif /* __ASM_NDS32_IO_H */ |
|---|