OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
arch
/
frv
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:12 AM
rwxr-xr-x
📄
Kbuild
290 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm-offsets.h
35 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic.h
4.97 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic_defs.h
4.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ax88796.h
751 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
barrier.h
720 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
7.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bug.h
1.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bugs.h
445 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
busctl-regs.h
2.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
727 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
3.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
4.53 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
4.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpu-irqs.h
2.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
current.h
685 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
1.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
div64.h
31 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dm9000.h
1.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
448 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma.h
3.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
elf.h
5.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
emergency-restart.h
149 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
fpu.h
261 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ftrace.h
12 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
futex.h
416 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
gdb-stub.h
4.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gpio-regs.h
3.64 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hardirq.h
666 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
highmem.h
4.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hw_irq.h
484 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
9.75 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irc-regs.h
1.78 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
760 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_regs.h
764 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
3.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kdebug.h
32 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kmap_types.h
123 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
114 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
local.h
140 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
local64.h
33 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
math-emu.h
6.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb-regs.h
6.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb86943a.h
1.84 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93091-fpga-irqs.h
1.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93093-fpga-irqs.h
789 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93493-irqs.h
1.69 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mb93493-regs.h
12.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mem-layout.h
2.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
1.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu_context.h
1.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
617 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
2.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
1.23 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
percpu.h
147 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
perf_event.h
487 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgalloc.h
1.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
16.02 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
processor.h
2.85 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ptrace.h
1.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sections.h
1.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
segment.h
1.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial-regs.h
1.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial.h
308 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup.h
641 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmparam.h
183 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
141 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
139 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock.h
516 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
spr-regs.h
17.93 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
1.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
1.07 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
2.73 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
termios.h
425 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
thread_info.h
3.48 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timer-regs.h
3.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
720 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlb.h
615 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
1.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
topology.h
229 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
types.h
595 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
uaccess.h
6.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ucontext.h
281 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unaligned.h
694 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
928 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
user.h
3.29 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
vga.h
464 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
virtconvert.h
1.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
xor.h
29 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: io.h
Close
/* io.h: FRV I/O operations * * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * This gets interesting when talking to the PCI bus - the CPU is in big endian * mode, the PCI bus is little endian and the hardware in the middle can do * byte swapping */ #ifndef _ASM_IO_H #define _ASM_IO_H #ifdef __KERNEL__ #define ARCH_HAS_IOREMAP_WT #include <linux/types.h> #include <asm/virtconvert.h> #include <asm/string.h> #include <asm/mb-regs.h> #include <asm-generic/pci_iomap.h> #include <linux/delay.h> /* * swap functions are sometimes needed to interface little-endian hardware */ static inline unsigned short _swapw(unsigned short v) { return ((v << 8) | (v >> 8)); } static inline unsigned long _swapl(unsigned long v) { return ((v << 24) | ((v & 0xff00) << 8) | ((v & 0xff0000) >> 8) | (v >> 24)); } //#define __iormb() asm volatile("membar") //#define __iowmb() asm volatile("membar") static inline u8 __raw_readb(const volatile void __iomem *addr) { return __builtin_read8((volatile void __iomem *)addr); } static inline u16 __raw_readw(const volatile void __iomem *addr) { return __builtin_read16((volatile void __iomem *)addr); } static inline u32 __raw_readl(const volatile void __iomem *addr) { return __builtin_read32((volatile void __iomem *)addr); } #define __raw_writeb(datum, addr) __builtin_write8(addr, datum) #define __raw_writew(datum, addr) __builtin_write16(addr, datum) #define __raw_writel(datum, addr) __builtin_write32(addr, datum) static inline void io_outsb(unsigned int addr, const void *buf, int len) { unsigned long __ioaddr = (unsigned long) addr; const uint8_t *bp = buf; while (len--) __builtin_write8((volatile void __iomem *) __ioaddr, *bp++); } static inline void io_outsw(unsigned int addr, const void *buf, int len) { unsigned long __ioaddr = (unsigned long) addr; const uint16_t *bp = buf; while (len--) __builtin_write16((volatile void __iomem *) __ioaddr, (*bp++)); } extern void __outsl_ns(unsigned int addr, const void *buf, int len); extern void __outsl_sw(unsigned int addr, const void *buf, int len); static inline void __outsl(unsigned int addr, const void *buf, int len, int swap) { unsigned long __ioaddr = (unsigned long) addr; if (!swap) __outsl_ns(__ioaddr, buf, len); else __outsl_sw(__ioaddr, buf, len); } static inline void io_insb(unsigned long addr, void *buf, int len) { uint8_t *bp = buf; while (len--) *bp++ = __builtin_read8((volatile void __iomem *) addr); } static inline void io_insw(unsigned long addr, void *buf, int len) { uint16_t *bp = buf; while (len--) *bp++ = __builtin_read16((volatile void __iomem *) addr); } extern void __insl_ns(unsigned long addr, void *buf, int len); extern void __insl_sw(unsigned long addr, void *buf, int len); static inline void __insl(unsigned long addr, void *buf, int len, int swap) { if (!swap) __insl_ns(addr, buf, len); else __insl_sw(addr, buf, len); } #define mmiowb() mb() /* * make the short names macros so specific devices * can override them as required */ static inline void memset_io(volatile void __iomem *addr, unsigned char val, int count) { memset((void __force *) addr, val, count); } static inline void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) { memcpy(dst, (void __force *) src, count); } static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int count) { memcpy((void __force *) dst, src, count); } static inline uint8_t inb(unsigned long addr) { return __builtin_read8((void __iomem *)addr); } static inline uint16_t inw(unsigned long addr) { uint16_t ret = __builtin_read16((void __iomem *)addr); if (__is_PCI_IO(addr)) ret = _swapw(ret); return ret; } static inline uint32_t inl(unsigned long addr) { uint32_t ret = __builtin_read32((void __iomem *)addr); if (__is_PCI_IO(addr)) ret = _swapl(ret); return ret; } static inline void outb(uint8_t datum, unsigned long addr) { __builtin_write8((void __iomem *)addr, datum); } static inline void outw(uint16_t datum, unsigned long addr) { if (__is_PCI_IO(addr)) datum = _swapw(datum); __builtin_write16((void __iomem *)addr, datum); } static inline void outl(uint32_t datum, unsigned long addr) { if (__is_PCI_IO(addr)) datum = _swapl(datum); __builtin_write32((void __iomem *)addr, datum); } #define inb_p(addr) inb(addr) #define inw_p(addr) inw(addr) #define inl_p(addr) inl(addr) #define outb_p(x,addr) outb(x,addr) #define outw_p(x,addr) outw(x,addr) #define outl_p(x,addr) outl(x,addr) #define outsb(a,b,l) io_outsb(a,b,l) #define outsw(a,b,l) io_outsw(a,b,l) #define outsl(a,b,l) __outsl(a,b,l,0) #define insb(a,b,l) io_insb(a,b,l) #define insw(a,b,l) io_insw(a,b,l) #define insl(a,b,l) __insl(a,b,l,0) #define IO_SPACE_LIMIT 0xffffffff static inline uint8_t readb(const volatile void __iomem *addr) { return __builtin_read8((__force void volatile __iomem *) addr); } static inline uint16_t readw(const volatile void __iomem *addr) { uint16_t ret = __builtin_read16((__force void volatile __iomem *)addr); if (__is_PCI_MEM(addr)) ret = _swapw(ret); return ret; } static inline uint32_t readl(const volatile void __iomem *addr) { uint32_t ret = __builtin_read32((__force void volatile __iomem *)addr); if (__is_PCI_MEM(addr)) ret = _swapl(ret); return ret; } #define readb_relaxed readb #define readw_relaxed readw #define readl_relaxed readl static inline void writeb(uint8_t datum, volatile void __iomem *addr) { __builtin_write8(addr, datum); if (__is_PCI_MEM(addr)) __flush_PCI_writes(); } static inline void writew(uint16_t datum, volatile void __iomem *addr) { if (__is_PCI_MEM(addr)) datum = _swapw(datum); __builtin_write16(addr, datum); if (__is_PCI_MEM(addr)) __flush_PCI_writes(); } static inline void writel(uint32_t datum, volatile void __iomem *addr) { if (__is_PCI_MEM(addr)) datum = _swapl(datum); __builtin_write32(addr, datum); if (__is_PCI_MEM(addr)) __flush_PCI_writes(); } #define writeb_relaxed writeb #define writew_relaxed writew #define writel_relaxed writel /* Values for nocacheflag and cmode */ #define IOMAP_FULL_CACHING 0 #define IOMAP_NOCACHE_SER 1 #define IOMAP_NOCACHE_NONSER 2 #define IOMAP_WRITETHROUGH 3 extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag); static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); } static inline void __iomem *ioremap_nocache(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); } static inline void __iomem *ioremap_wt(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); } static inline void __iomem *ioremap_fullcache(unsigned long physaddr, unsigned long size) { return __ioremap(physaddr, size, IOMAP_FULL_CACHING); } #define ioremap_wc ioremap_nocache #define ioremap_uc ioremap_nocache extern void iounmap(void volatile __iomem *addr); static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) { return (void __iomem *) port; } static inline void ioport_unmap(void __iomem *p) { } static inline void flush_write_buffers(void) { __asm__ __volatile__ ("membar" : : :"memory"); } /* * do appropriate I/O accesses for token type */ static inline unsigned int ioread8(void __iomem *p) { return __builtin_read8(p); } static inline unsigned int ioread16(void __iomem *p) { uint16_t ret = __builtin_read16(p); if (__is_PCI_addr(p)) ret = _swapw(ret); return ret; } static inline unsigned int ioread32(void __iomem *p) { uint32_t ret = __builtin_read32(p); if (__is_PCI_addr(p)) ret = _swapl(ret); return ret; } static inline void iowrite8(u8 val, void __iomem *p) { __builtin_write8(p, val); if (__is_PCI_MEM(p)) __flush_PCI_writes(); } static inline void iowrite16(u16 val, void __iomem *p) { if (__is_PCI_addr(p)) val = _swapw(val); __builtin_write16(p, val); if (__is_PCI_MEM(p)) __flush_PCI_writes(); } static inline void iowrite32(u32 val, void __iomem *p) { if (__is_PCI_addr(p)) val = _swapl(val); __builtin_write32(p, val); if (__is_PCI_MEM(p)) __flush_PCI_writes(); } #define ioread16be(addr) be16_to_cpu(ioread16(addr)) #define ioread32be(addr) be32_to_cpu(ioread32(addr)) #define iowrite16be(v, addr) iowrite16(cpu_to_be16(v), (addr)) #define iowrite32be(v, addr) iowrite32(cpu_to_be32(v), (addr)) static inline void ioread8_rep(void __iomem *p, void *dst, unsigned long count) { io_insb((unsigned long) p, dst, count); } static inline void ioread16_rep(void __iomem *p, void *dst, unsigned long count) { io_insw((unsigned long) p, dst, count); } static inline void ioread32_rep(void __iomem *p, void *dst, unsigned long count) { __insl_ns((unsigned long) p, dst, count); } static inline void iowrite8_rep(void __iomem *p, const void *src, unsigned long count) { io_outsb((unsigned long) p, src, count); } static inline void iowrite16_rep(void __iomem *p, const void *src, unsigned long count) { io_outsw((unsigned long) p, src, count); } static inline void iowrite32_rep(void __iomem *p, const void *src, unsigned long count) { __outsl_ns((unsigned long) p, src, count); } /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ struct pci_dev; static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) { } /* * Convert a physical pointer to a virtual kernel pointer for /dev/mem * access */ #define xlate_dev_mem_ptr(p) __va(p) /* * Convert a virtual cached pointer to an uncached pointer */ #define xlate_dev_kmem_ptr(p) p #endif /* __KERNEL__ */ #endif /* _ASM_IO_H */