1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2a439fe51SSam Ravnborg #ifndef ___ASM_SPARC_IO_H 3a439fe51SSam Ravnborg #define ___ASM_SPARC_IO_H 4a439fe51SSam Ravnborg #if defined(__sparc__) && defined(__arch64__) 5a439fe51SSam Ravnborg #include <asm/io_64.h> 6a439fe51SSam Ravnborg #else 7a439fe51SSam Ravnborg #include <asm/io_32.h> 8a439fe51SSam Ravnborg #endif 921dccddfSJan Andersson 1021dccddfSJan Andersson /* 1121dccddfSJan Andersson * Defines used for both SPARC32 and SPARC64 1221dccddfSJan Andersson */ 1321dccddfSJan Andersson 1421dccddfSJan Andersson /* Big endian versions of memory read/write routines */ 1521dccddfSJan Andersson #define readb_be(__addr) __raw_readb(__addr) 1621dccddfSJan Andersson #define readw_be(__addr) __raw_readw(__addr) 1721dccddfSJan Andersson #define readl_be(__addr) __raw_readl(__addr) 1821dccddfSJan Andersson #define writeb_be(__b, __addr) __raw_writeb(__b, __addr) 1921dccddfSJan Andersson #define writel_be(__w, __addr) __raw_writel(__w, __addr) 2021dccddfSJan Andersson #define writew_be(__l, __addr) __raw_writew(__l, __addr) 2121dccddfSJan Andersson 22*2c230431SLinus Walleij #include <asm-generic/io.h> 23*2c230431SLinus Walleij 24a439fe51SSam Ravnborg #endif 25