18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __ALPHA_JENSEN_H
38c2ecf20Sopenharmony_ci#define __ALPHA_JENSEN_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/compiler.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/*
88c2ecf20Sopenharmony_ci * Defines for the AlphaPC EISA IO and memory address space.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/*
128c2ecf20Sopenharmony_ci * NOTE! The memory operations do not set any memory barriers, as it's
138c2ecf20Sopenharmony_ci * not needed for cases like a frame buffer that is essentially memory-like.
148c2ecf20Sopenharmony_ci * You need to do them by hand if the operations depend on ordering.
158c2ecf20Sopenharmony_ci *
168c2ecf20Sopenharmony_ci * Similarly, the port IO operations do a "mb" only after a write operation:
178c2ecf20Sopenharmony_ci * if an mb is needed before (as in the case of doing memory mapped IO
188c2ecf20Sopenharmony_ci * first, and then a port IO operation to the same device), it needs to be
198c2ecf20Sopenharmony_ci * done by hand.
208c2ecf20Sopenharmony_ci *
218c2ecf20Sopenharmony_ci * After the above has bitten me 100 times, I'll give up and just do the
228c2ecf20Sopenharmony_ci * mb all the time, but right now I'm hoping this will work out.  Avoiding
238c2ecf20Sopenharmony_ci * mb's may potentially be a noticeable speed improvement, but I can't
248c2ecf20Sopenharmony_ci * honestly say I've tested it.
258c2ecf20Sopenharmony_ci *
268c2ecf20Sopenharmony_ci * Handling interrupts that need to do mb's to synchronize to non-interrupts
278c2ecf20Sopenharmony_ci * is another fun race area.  Don't do it (because if you do, I'll have to
288c2ecf20Sopenharmony_ci * do *everything* with interrupts disabled, ugh).
298c2ecf20Sopenharmony_ci */
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci/*
328c2ecf20Sopenharmony_ci * EISA Interrupt Acknowledge address
338c2ecf20Sopenharmony_ci */
348c2ecf20Sopenharmony_ci#define EISA_INTA		(IDENT_ADDR + 0x100000000UL)
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci/*
378c2ecf20Sopenharmony_ci * FEPROM addresses
388c2ecf20Sopenharmony_ci */
398c2ecf20Sopenharmony_ci#define EISA_FEPROM0		(IDENT_ADDR + 0x180000000UL)
408c2ecf20Sopenharmony_ci#define EISA_FEPROM1		(IDENT_ADDR + 0x1A0000000UL)
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*
438c2ecf20Sopenharmony_ci * VL82C106 base address
448c2ecf20Sopenharmony_ci */
458c2ecf20Sopenharmony_ci#define EISA_VL82C106		(IDENT_ADDR + 0x1C0000000UL)
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci/*
488c2ecf20Sopenharmony_ci * EISA "Host Address Extension" address (bits 25-31 of the EISA address)
498c2ecf20Sopenharmony_ci */
508c2ecf20Sopenharmony_ci#define EISA_HAE		(IDENT_ADDR + 0x1D0000000UL)
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci/*
538c2ecf20Sopenharmony_ci * "SYSCTL" register address
548c2ecf20Sopenharmony_ci */
558c2ecf20Sopenharmony_ci#define EISA_SYSCTL		(IDENT_ADDR + 0x1E0000000UL)
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci/*
588c2ecf20Sopenharmony_ci * "spare" register address
598c2ecf20Sopenharmony_ci */
608c2ecf20Sopenharmony_ci#define EISA_SPARE		(IDENT_ADDR + 0x1F0000000UL)
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci/*
638c2ecf20Sopenharmony_ci * EISA memory address offset
648c2ecf20Sopenharmony_ci */
658c2ecf20Sopenharmony_ci#define EISA_MEM		(IDENT_ADDR + 0x200000000UL)
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci/*
688c2ecf20Sopenharmony_ci * EISA IO address offset
698c2ecf20Sopenharmony_ci */
708c2ecf20Sopenharmony_ci#define EISA_IO			(IDENT_ADDR + 0x300000000UL)
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci#ifdef __KERNEL__
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci#ifndef __EXTERN_INLINE
768c2ecf20Sopenharmony_ci#define __EXTERN_INLINE extern inline
778c2ecf20Sopenharmony_ci#define __IO_EXTERN_INLINE
788c2ecf20Sopenharmony_ci#endif
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci/*
818c2ecf20Sopenharmony_ci * Handle the "host address register". This needs to be set
828c2ecf20Sopenharmony_ci * to the high 7 bits of the EISA address.  This is also needed
838c2ecf20Sopenharmony_ci * for EISA IO addresses, which are only 16 bits wide (the
848c2ecf20Sopenharmony_ci * hae needs to be set to 0).
858c2ecf20Sopenharmony_ci *
868c2ecf20Sopenharmony_ci * HAE isn't needed for the local IO operations, though.
878c2ecf20Sopenharmony_ci */
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci#define JENSEN_HAE_ADDRESS	EISA_HAE
908c2ecf20Sopenharmony_ci#define JENSEN_HAE_MASK		0x1ffffff
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_set_hae(unsigned long addr)
938c2ecf20Sopenharmony_ci{
948c2ecf20Sopenharmony_ci	/* hae on the Jensen is bits 31:25 shifted right */
958c2ecf20Sopenharmony_ci	addr >>= 25;
968c2ecf20Sopenharmony_ci	if (addr != alpha_mv.hae_cache)
978c2ecf20Sopenharmony_ci		set_hae(addr);
988c2ecf20Sopenharmony_ci}
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci#define vuip	volatile unsigned int *
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci/*
1038c2ecf20Sopenharmony_ci * IO functions
1048c2ecf20Sopenharmony_ci *
1058c2ecf20Sopenharmony_ci * The "local" functions are those that don't go out to the EISA bus,
1068c2ecf20Sopenharmony_ci * but instead act on the VL82C106 chip directly.. This is mainly the
1078c2ecf20Sopenharmony_ci * keyboard, RTC,  printer and first two serial lines..
1088c2ecf20Sopenharmony_ci *
1098c2ecf20Sopenharmony_ci * The local stuff makes for some complications, but it seems to be
1108c2ecf20Sopenharmony_ci * gone in the PCI version. I hope I can get DEC suckered^H^H^H^H^H^H^H^H
1118c2ecf20Sopenharmony_ci * convinced that I need one of the newer machines.
1128c2ecf20Sopenharmony_ci */
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_cistatic inline unsigned int jensen_local_inb(unsigned long addr)
1158c2ecf20Sopenharmony_ci{
1168c2ecf20Sopenharmony_ci	return 0xff & *(vuip)((addr << 9) + EISA_VL82C106);
1178c2ecf20Sopenharmony_ci}
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_cistatic inline void jensen_local_outb(u8 b, unsigned long addr)
1208c2ecf20Sopenharmony_ci{
1218c2ecf20Sopenharmony_ci	*(vuip)((addr << 9) + EISA_VL82C106) = b;
1228c2ecf20Sopenharmony_ci	mb();
1238c2ecf20Sopenharmony_ci}
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_cistatic inline unsigned int jensen_bus_inb(unsigned long addr)
1268c2ecf20Sopenharmony_ci{
1278c2ecf20Sopenharmony_ci	long result;
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci	jensen_set_hae(0);
1308c2ecf20Sopenharmony_ci	result = *(volatile int *)((addr << 7) + EISA_IO + 0x00);
1318c2ecf20Sopenharmony_ci	return __kernel_extbl(result, addr & 3);
1328c2ecf20Sopenharmony_ci}
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_cistatic inline void jensen_bus_outb(u8 b, unsigned long addr)
1358c2ecf20Sopenharmony_ci{
1368c2ecf20Sopenharmony_ci	jensen_set_hae(0);
1378c2ecf20Sopenharmony_ci	*(vuip)((addr << 7) + EISA_IO + 0x00) = b * 0x01010101;
1388c2ecf20Sopenharmony_ci	mb();
1398c2ecf20Sopenharmony_ci}
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ci/*
1428c2ecf20Sopenharmony_ci * It seems gcc is not very good at optimizing away logical
1438c2ecf20Sopenharmony_ci * operations that result in operations across inline functions.
1448c2ecf20Sopenharmony_ci * Which is why this is a macro.
1458c2ecf20Sopenharmony_ci */
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci#define jensen_is_local(addr) ( \
1488c2ecf20Sopenharmony_ci/* keyboard */	(addr == 0x60 || addr == 0x64) || \
1498c2ecf20Sopenharmony_ci/* RTC */	(addr == 0x170 || addr == 0x171) || \
1508c2ecf20Sopenharmony_ci/* mb COM2 */	(addr >= 0x2f8 && addr <= 0x2ff) || \
1518c2ecf20Sopenharmony_ci/* mb LPT1 */	(addr >= 0x3bc && addr <= 0x3be) || \
1528c2ecf20Sopenharmony_ci/* mb COM2 */	(addr >= 0x3f8 && addr <= 0x3ff))
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ci__EXTERN_INLINE u8 jensen_inb(unsigned long addr)
1558c2ecf20Sopenharmony_ci{
1568c2ecf20Sopenharmony_ci	if (jensen_is_local(addr))
1578c2ecf20Sopenharmony_ci		return jensen_local_inb(addr);
1588c2ecf20Sopenharmony_ci	else
1598c2ecf20Sopenharmony_ci		return jensen_bus_inb(addr);
1608c2ecf20Sopenharmony_ci}
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_outb(u8 b, unsigned long addr)
1638c2ecf20Sopenharmony_ci{
1648c2ecf20Sopenharmony_ci	if (jensen_is_local(addr))
1658c2ecf20Sopenharmony_ci		jensen_local_outb(b, addr);
1668c2ecf20Sopenharmony_ci	else
1678c2ecf20Sopenharmony_ci		jensen_bus_outb(b, addr);
1688c2ecf20Sopenharmony_ci}
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_ci__EXTERN_INLINE u16 jensen_inw(unsigned long addr)
1718c2ecf20Sopenharmony_ci{
1728c2ecf20Sopenharmony_ci	long result;
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci	jensen_set_hae(0);
1758c2ecf20Sopenharmony_ci	result = *(volatile int *) ((addr << 7) + EISA_IO + 0x20);
1768c2ecf20Sopenharmony_ci	result >>= (addr & 3) * 8;
1778c2ecf20Sopenharmony_ci	return 0xffffUL & result;
1788c2ecf20Sopenharmony_ci}
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci__EXTERN_INLINE u32 jensen_inl(unsigned long addr)
1818c2ecf20Sopenharmony_ci{
1828c2ecf20Sopenharmony_ci	jensen_set_hae(0);
1838c2ecf20Sopenharmony_ci	return *(vuip) ((addr << 7) + EISA_IO + 0x60);
1848c2ecf20Sopenharmony_ci}
1858c2ecf20Sopenharmony_ci
1868c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_outw(u16 b, unsigned long addr)
1878c2ecf20Sopenharmony_ci{
1888c2ecf20Sopenharmony_ci	jensen_set_hae(0);
1898c2ecf20Sopenharmony_ci	*(vuip) ((addr << 7) + EISA_IO + 0x20) = b * 0x00010001;
1908c2ecf20Sopenharmony_ci	mb();
1918c2ecf20Sopenharmony_ci}
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_outl(u32 b, unsigned long addr)
1948c2ecf20Sopenharmony_ci{
1958c2ecf20Sopenharmony_ci	jensen_set_hae(0);
1968c2ecf20Sopenharmony_ci	*(vuip) ((addr << 7) + EISA_IO + 0x60) = b;
1978c2ecf20Sopenharmony_ci	mb();
1988c2ecf20Sopenharmony_ci}
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci/*
2018c2ecf20Sopenharmony_ci * Memory functions.
2028c2ecf20Sopenharmony_ci */
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci__EXTERN_INLINE u8 jensen_readb(const volatile void __iomem *xaddr)
2058c2ecf20Sopenharmony_ci{
2068c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2078c2ecf20Sopenharmony_ci	long result;
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2108c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2118c2ecf20Sopenharmony_ci	result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x00);
2128c2ecf20Sopenharmony_ci	result >>= (addr & 3) * 8;
2138c2ecf20Sopenharmony_ci	return 0xffUL & result;
2148c2ecf20Sopenharmony_ci}
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci__EXTERN_INLINE u16 jensen_readw(const volatile void __iomem *xaddr)
2178c2ecf20Sopenharmony_ci{
2188c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2198c2ecf20Sopenharmony_ci	long result;
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2228c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2238c2ecf20Sopenharmony_ci	result = *(volatile int *) ((addr << 7) + EISA_MEM + 0x20);
2248c2ecf20Sopenharmony_ci	result >>= (addr & 3) * 8;
2258c2ecf20Sopenharmony_ci	return 0xffffUL & result;
2268c2ecf20Sopenharmony_ci}
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci__EXTERN_INLINE u32 jensen_readl(const volatile void __iomem *xaddr)
2298c2ecf20Sopenharmony_ci{
2308c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2318c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2328c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2338c2ecf20Sopenharmony_ci	return *(vuip) ((addr << 7) + EISA_MEM + 0x60);
2348c2ecf20Sopenharmony_ci}
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci__EXTERN_INLINE u64 jensen_readq(const volatile void __iomem *xaddr)
2378c2ecf20Sopenharmony_ci{
2388c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2398c2ecf20Sopenharmony_ci	unsigned long r0, r1;
2408c2ecf20Sopenharmony_ci
2418c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2428c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2438c2ecf20Sopenharmony_ci	addr = (addr << 7) + EISA_MEM + 0x60;
2448c2ecf20Sopenharmony_ci	r0 = *(vuip) (addr);
2458c2ecf20Sopenharmony_ci	r1 = *(vuip) (addr + (4 << 7));
2468c2ecf20Sopenharmony_ci	return r1 << 32 | r0;
2478c2ecf20Sopenharmony_ci}
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_writeb(u8 b, volatile void __iomem *xaddr)
2508c2ecf20Sopenharmony_ci{
2518c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2528c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2538c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2548c2ecf20Sopenharmony_ci	*(vuip) ((addr << 7) + EISA_MEM + 0x00) = b * 0x01010101;
2558c2ecf20Sopenharmony_ci}
2568c2ecf20Sopenharmony_ci
2578c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_writew(u16 b, volatile void __iomem *xaddr)
2588c2ecf20Sopenharmony_ci{
2598c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2608c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2618c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2628c2ecf20Sopenharmony_ci	*(vuip) ((addr << 7) + EISA_MEM + 0x20) = b * 0x00010001;
2638c2ecf20Sopenharmony_ci}
2648c2ecf20Sopenharmony_ci
2658c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_writel(u32 b, volatile void __iomem *xaddr)
2668c2ecf20Sopenharmony_ci{
2678c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2688c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2698c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2708c2ecf20Sopenharmony_ci	*(vuip) ((addr << 7) + EISA_MEM + 0x60) = b;
2718c2ecf20Sopenharmony_ci}
2728c2ecf20Sopenharmony_ci
2738c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_writeq(u64 b, volatile void __iomem *xaddr)
2748c2ecf20Sopenharmony_ci{
2758c2ecf20Sopenharmony_ci	unsigned long addr = (unsigned long) xaddr;
2768c2ecf20Sopenharmony_ci	jensen_set_hae(addr);
2778c2ecf20Sopenharmony_ci	addr &= JENSEN_HAE_MASK;
2788c2ecf20Sopenharmony_ci	addr = (addr << 7) + EISA_MEM + 0x60;
2798c2ecf20Sopenharmony_ci	*(vuip) (addr) = b;
2808c2ecf20Sopenharmony_ci	*(vuip) (addr + (4 << 7)) = b >> 32;
2818c2ecf20Sopenharmony_ci}
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci__EXTERN_INLINE void __iomem *jensen_ioportmap(unsigned long addr)
2848c2ecf20Sopenharmony_ci{
2858c2ecf20Sopenharmony_ci	return (void __iomem *)addr;
2868c2ecf20Sopenharmony_ci}
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci__EXTERN_INLINE void __iomem *jensen_ioremap(unsigned long addr,
2898c2ecf20Sopenharmony_ci					     unsigned long size)
2908c2ecf20Sopenharmony_ci{
2918c2ecf20Sopenharmony_ci	return (void __iomem *)(addr + 0x100000000ul);
2928c2ecf20Sopenharmony_ci}
2938c2ecf20Sopenharmony_ci
2948c2ecf20Sopenharmony_ci__EXTERN_INLINE int jensen_is_ioaddr(unsigned long addr)
2958c2ecf20Sopenharmony_ci{
2968c2ecf20Sopenharmony_ci	return (long)addr >= 0;
2978c2ecf20Sopenharmony_ci}
2988c2ecf20Sopenharmony_ci
2998c2ecf20Sopenharmony_ci__EXTERN_INLINE int jensen_is_mmio(const volatile void __iomem *addr)
3008c2ecf20Sopenharmony_ci{
3018c2ecf20Sopenharmony_ci	return (unsigned long)addr >= 0x100000000ul;
3028c2ecf20Sopenharmony_ci}
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci/* New-style ioread interface.  All the routines are so ugly for Jensen
3058c2ecf20Sopenharmony_ci   that it doesn't make sense to merge them.  */
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ci#define IOPORT(OS, NS)							\
3088c2ecf20Sopenharmony_ci__EXTERN_INLINE unsigned int jensen_ioread##NS(const void __iomem *xaddr)	\
3098c2ecf20Sopenharmony_ci{									\
3108c2ecf20Sopenharmony_ci	if (jensen_is_mmio(xaddr))					\
3118c2ecf20Sopenharmony_ci		return jensen_read##OS(xaddr - 0x100000000ul);		\
3128c2ecf20Sopenharmony_ci	else								\
3138c2ecf20Sopenharmony_ci		return jensen_in##OS((unsigned long)xaddr);		\
3148c2ecf20Sopenharmony_ci}									\
3158c2ecf20Sopenharmony_ci__EXTERN_INLINE void jensen_iowrite##NS(u##NS b, void __iomem *xaddr)	\
3168c2ecf20Sopenharmony_ci{									\
3178c2ecf20Sopenharmony_ci	if (jensen_is_mmio(xaddr))					\
3188c2ecf20Sopenharmony_ci		jensen_write##OS(b, xaddr - 0x100000000ul);		\
3198c2ecf20Sopenharmony_ci	else								\
3208c2ecf20Sopenharmony_ci		jensen_out##OS(b, (unsigned long)xaddr);		\
3218c2ecf20Sopenharmony_ci}
3228c2ecf20Sopenharmony_ci
3238c2ecf20Sopenharmony_ciIOPORT(b, 8)
3248c2ecf20Sopenharmony_ciIOPORT(w, 16)
3258c2ecf20Sopenharmony_ciIOPORT(l, 32)
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci#undef IOPORT
3288c2ecf20Sopenharmony_ci
3298c2ecf20Sopenharmony_ci#undef vuip
3308c2ecf20Sopenharmony_ci
3318c2ecf20Sopenharmony_ci#undef __IO_PREFIX
3328c2ecf20Sopenharmony_ci#define __IO_PREFIX		jensen
3338c2ecf20Sopenharmony_ci#define jensen_trivial_rw_bw	0
3348c2ecf20Sopenharmony_ci#define jensen_trivial_rw_lq	0
3358c2ecf20Sopenharmony_ci#define jensen_trivial_io_bw	0
3368c2ecf20Sopenharmony_ci#define jensen_trivial_io_lq	0
3378c2ecf20Sopenharmony_ci#define jensen_trivial_iounmap	1
3388c2ecf20Sopenharmony_ci#include <asm/io_trivial.h>
3398c2ecf20Sopenharmony_ci
3408c2ecf20Sopenharmony_ci#ifdef __IO_EXTERN_INLINE
3418c2ecf20Sopenharmony_ci#undef __EXTERN_INLINE
3428c2ecf20Sopenharmony_ci#undef __IO_EXTERN_INLINE
3438c2ecf20Sopenharmony_ci#endif
3448c2ecf20Sopenharmony_ci
3458c2ecf20Sopenharmony_ci#endif /* __KERNEL__ */
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci#endif /* __ALPHA_JENSEN_H */
348