mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:55:09 +07:00
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
90 lines
2.5 KiB
C
90 lines
2.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm/mach-ebsa110/include/mach/io.h
|
|
*
|
|
* Copyright (C) 1997,1998 Russell King
|
|
*
|
|
* Modifications:
|
|
* 06-Dec-1997 RMK Created.
|
|
*/
|
|
#ifndef __ASM_ARM_ARCH_IO_H
|
|
#define __ASM_ARM_ARCH_IO_H
|
|
|
|
u8 __inb8(unsigned int port);
|
|
void __outb8(u8 val, unsigned int port);
|
|
|
|
u8 __inb16(unsigned int port);
|
|
void __outb16(u8 val, unsigned int port);
|
|
|
|
u16 __inw(unsigned int port);
|
|
void __outw(u16 val, unsigned int port);
|
|
|
|
u32 __inl(unsigned int port);
|
|
void __outl(u32 val, unsigned int port);
|
|
|
|
u8 __readb(const volatile void __iomem *addr);
|
|
u16 __readw(const volatile void __iomem *addr);
|
|
u32 __readl(const volatile void __iomem *addr);
|
|
|
|
void __writeb(u8 val, volatile void __iomem *addr);
|
|
void __writew(u16 val, volatile void __iomem *addr);
|
|
void __writel(u32 val, volatile void __iomem *addr);
|
|
|
|
/*
|
|
* Argh, someone forgot the IOCS16 line. We therefore have to handle
|
|
* the byte stearing by selecting the correct byte IO functions here.
|
|
*/
|
|
#ifdef ISA_SIXTEEN_BIT_PERIPHERAL
|
|
#define inb(p) __inb16(p)
|
|
#define outb(v,p) __outb16(v,p)
|
|
#else
|
|
#define inb(p) __inb8(p)
|
|
#define outb(v,p) __outb8(v,p)
|
|
#endif
|
|
|
|
#define inw(p) __inw(p)
|
|
#define outw(v,p) __outw(v,p)
|
|
|
|
#define inl(p) __inl(p)
|
|
#define outl(v,p) __outl(v,p)
|
|
|
|
#define readb(b) __readb(b)
|
|
#define readw(b) __readw(b)
|
|
#define readl(b) __readl(b)
|
|
#define readb_relaxed(addr) readb(addr)
|
|
#define readw_relaxed(addr) readw(addr)
|
|
#define readl_relaxed(addr) readl(addr)
|
|
|
|
#define writeb(v,b) __writeb(v,b)
|
|
#define writew(v,b) __writew(v,b)
|
|
#define writel(v,b) __writel(v,b)
|
|
|
|
#define insb insb
|
|
extern void insb(unsigned int port, void *buf, int sz);
|
|
#define insw insw
|
|
extern void insw(unsigned int port, void *buf, int sz);
|
|
#define insl insl
|
|
extern void insl(unsigned int port, void *buf, int sz);
|
|
|
|
#define outsb outsb
|
|
extern void outsb(unsigned int port, const void *buf, int sz);
|
|
#define outsw outsw
|
|
extern void outsw(unsigned int port, const void *buf, int sz);
|
|
#define outsl outsl
|
|
extern void outsl(unsigned int port, const void *buf, int sz);
|
|
|
|
/* can't support writesb atm */
|
|
#define writesw writesw
|
|
extern void writesw(volatile void __iomem *addr, const void *data, int wordlen);
|
|
#define writesl writesl
|
|
extern void writesl(volatile void __iomem *addr, const void *data, int longlen);
|
|
|
|
/* can't support readsb atm */
|
|
#define readsw readsw
|
|
extern void readsw(const volatile void __iomem *addr, void *data, int wordlen);
|
|
|
|
#define readsl readsl
|
|
extern void readsl(const volatile void __iomem *addr, void *data, int longlen);
|
|
|
|
#endif
|