~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-ebsa110/include/mach/io.h

Version: ~ [ linux-5.2-rc5 ] ~ [ linux-5.1.12 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.53 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.128 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.182 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.182 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.68 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  arch/arm/mach-ebsa110/include/mach/io.h
  3  *
  4  *  Copyright (C) 1997,1998 Russell King
  5  *
  6  * This program is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License version 2 as
  8  * published by the Free Software Foundation.
  9  *
 10  * Modifications:
 11  *  06-Dec-1997 RMK     Created.
 12  */
 13 #ifndef __ASM_ARM_ARCH_IO_H
 14 #define __ASM_ARM_ARCH_IO_H
 15 
 16 u8 __inb8(unsigned int port);
 17 void __outb8(u8  val, unsigned int port);
 18 
 19 u8 __inb16(unsigned int port);
 20 void __outb16(u8  val, unsigned int port);
 21 
 22 u16 __inw(unsigned int port);
 23 void __outw(u16 val, unsigned int port);
 24 
 25 u32 __inl(unsigned int port);
 26 void __outl(u32 val, unsigned int port);
 27 
 28 u8  __readb(const volatile void __iomem *addr);
 29 u16 __readw(const volatile void __iomem *addr);
 30 u32 __readl(const volatile void __iomem *addr);
 31 
 32 void __writeb(u8  val, volatile void __iomem *addr);
 33 void __writew(u16 val, volatile void __iomem *addr);
 34 void __writel(u32 val, volatile void __iomem *addr);
 35 
 36 /*
 37  * Argh, someone forgot the IOCS16 line.  We therefore have to handle
 38  * the byte stearing by selecting the correct byte IO functions here.
 39  */
 40 #ifdef ISA_SIXTEEN_BIT_PERIPHERAL
 41 #define inb(p)                  __inb16(p)
 42 #define outb(v,p)               __outb16(v,p)
 43 #else
 44 #define inb(p)                  __inb8(p)
 45 #define outb(v,p)               __outb8(v,p)
 46 #endif
 47 
 48 #define inw(p)                  __inw(p)
 49 #define outw(v,p)               __outw(v,p)
 50 
 51 #define inl(p)                  __inl(p)
 52 #define outl(v,p)               __outl(v,p)
 53 
 54 #define readb(b)                __readb(b)
 55 #define readw(b)                __readw(b)
 56 #define readl(b)                __readl(b)
 57 #define readb_relaxed(addr)     readb(addr)
 58 #define readw_relaxed(addr)     readw(addr)
 59 #define readl_relaxed(addr)     readl(addr)
 60 
 61 #define writeb(v,b)             __writeb(v,b)
 62 #define writew(v,b)             __writew(v,b)
 63 #define writel(v,b)             __writel(v,b)
 64 
 65 #define insb insb
 66 extern void insb(unsigned int port, void *buf, int sz);
 67 #define insw insw
 68 extern void insw(unsigned int port, void *buf, int sz);
 69 #define insl insl
 70 extern void insl(unsigned int port, void *buf, int sz);
 71 
 72 #define outsb outsb
 73 extern void outsb(unsigned int port, const void *buf, int sz);
 74 #define outsw outsw
 75 extern void outsw(unsigned int port, const void *buf, int sz);
 76 #define outsl outsl
 77 extern void outsl(unsigned int port, const void *buf, int sz);
 78 
 79 /* can't support writesb atm */
 80 #define writesw writesw
 81 extern void writesw(volatile void __iomem *addr, const void *data, int wordlen);
 82 #define writesl writesl
 83 extern void writesl(volatile void __iomem *addr, const void *data, int longlen);
 84 
 85 /* can't support readsb atm */
 86 #define readsw readsw
 87 extern void readsw(const volatile void __iomem *addr, void *data, int wordlen);
 88 
 89 #define readsl readsl
 90 extern void readsl(const volatile void __iomem *addr, void *data, int longlen);
 91 
 92 #endif
 93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp