/
usr
/
src
/
linux-headers-5.15.0-190
/
arch
/
parisc
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-190/arch/parisc/include/asm
mkdir
upload
Name
Size
Mode
Actions
agp.h
596
0644
edit
dl
rm
alternative.h
1954
0644
edit
dl
rm
asm-offsets.h
35
0644
edit
dl
rm
asmregs.h
2478
0644
edit
dl
rm
assembly.h
12496
0644
edit
dl
rm
atomic.h
5718
0644
edit
dl
rm
barrier.h
2563
0644
edit
dl
rm
bitops.h
5578
0644
edit
dl
rm
bug.h
2408
0644
edit
dl
rm
cache.h
2084
0644
edit
dl
rm
cacheflush.h
3773
0644
edit
dl
rm
checksum.h
4715
0644
edit
dl
rm
cmpxchg.h
3783
0644
edit
dl
rm
compat.h
3973
0644
edit
dl
rm
compat_ucontext.h
591
0644
edit
dl
rm
delay.h
533
0644
edit
dl
rm
dma-mapping.h
1012
0644
edit
dl
rm
dma.h
5849
0644
edit
dl
rm
dwarf.h
456
0644
edit
dl
rm
eisa_bus.h
492
0644
edit
dl
rm
eisa_eeprom.h
4318
0644
edit
dl
rm
elf.h
14381
0644
edit
dl
rm
fb.h
491
0644
edit
dl
rm
fixmap.h
1611
0644
edit
dl
rm
floppy.h
6193
0644
edit
dl
rm
ftrace.h
641
0644
edit
dl
rm
futex.h
2666
0644
edit
dl
rm
grfioctl.h
4090
0644
edit
dl
rm
hardirq.h
976
0644
edit
dl
rm
hardware.h
4239
0644
edit
dl
rm
hash.h
5194
0644
edit
dl
rm
hugetlb.h
1331
0644
edit
dl
rm
ide.h
1120
0644
edit
dl
rm
io.h
8307
0644
edit
dl
rm
irq.h
1171
0644
edit
dl
rm
irqflags.h
1046
0644
edit
dl
rm
jump_label.h
990
0644
edit
dl
rm
kbdleds.h
477
0644
edit
dl
rm
Kbuild
175
0644
edit
dl
rm
kexec.h
827
0644
edit
dl
rm
kgdb.h
1318
0644
edit
dl
rm
kprobes.h
1284
0644
edit
dl
rm
ldcw.h
2570
0644
edit
dl
rm
led.h
1362
0644
edit
dl
rm
linkage.h
738
0644
edit
dl
rm
machdep.h
349
0644
edit
dl
rm
mckinley.h
270
0644
edit
dl
rm
mmu.h
195
0644
edit
dl
rm
mmu_context.h
2355
0644
edit
dl
rm
mmzone.h
202
0644
edit
dl
rm
module.h
527
0644
edit
dl
rm
page.h
5533
0644
edit
dl
rm
parisc-device.h
1964
0644
edit
dl
rm
parport.h
358
0644
edit
dl
rm
patch.h
445
0644
edit
dl
rm
pci.h
5956
0644
edit
dl
rm
pdc.h
4269
0644
edit
dl
rm
pdcpat.h
16968
0644
edit
dl
rm
pdc_chassis.h
14745
0644
edit
dl
rm
perf.h
1936
0644
edit
dl
rm
perf_event.h
152
0644
edit
dl
rm
pgalloc.h
1722
0644
edit
dl
rm
pgtable.h
17062
0644
edit
dl
rm
prefetch.h
1147
0644
edit
dl
rm
processor.h
9486
0644
edit
dl
rm
psw.h
2464
0644
edit
dl
rm
ptrace.h
1603
0644
edit
dl
rm
ropes.h
10060
0644
edit
dl
rm
rt_sigframe.h
745
0644
edit
dl
rm
runway.h
320
0644
edit
dl
rm
seccomp.h
651
0644
edit
dl
rm
sections.h
494
0644
edit
dl
rm
serial.h
124
0644
edit
dl
rm
shmparam.h
263
0644
edit
dl
rm
signal.h
685
0644
edit
dl
rm
smp.h
1276
0644
edit
dl
rm
socket.h
310
0644
edit
dl
rm
sparsemem.h
345
0644
edit
dl
rm
special_insns.h
1554
0644
edit
dl
rm
spinlock.h
3182
0644
edit
dl
rm
spinlock_types.h
701
0644
edit
dl
rm
string.h
247
0644
edit
dl
rm
superio.h
3333
0644
edit
dl
rm
switch_to.h
332
0644
edit
dl
rm
syscall.h
1477
0644
edit
dl
rm
termios.h
1761
0644
edit
dl
rm
thread_info.h
3143
0644
edit
dl
rm
timex.h
403
0644
edit
dl
rm
tlb.h
288
0644
edit
dl
rm
tlbflush.h
1975
0644
edit
dl
rm
topology.h
900
0644
edit
dl
rm
traps.h
598
0644
edit
dl
rm
uaccess.h
6253
0644
edit
dl
rm
ucontext.h
327
0644
edit
dl
rm
unaligned.h
307
0644
edit
dl
rm
unistd.h
5776
0644
edit
dl
rm
unwind.h
2723
0644
edit
dl
rm
vmalloc.h
96
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/arch/parisc/include/asm/io.h
(8307B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_IO_H #define _ASM_IO_H #include <linux/types.h> #include <linux/pgtable.h> #define virt_to_phys(a) ((unsigned long)__pa(a)) #define phys_to_virt(a) __va(a) #define virt_to_bus virt_to_phys #define bus_to_virt phys_to_virt static inline unsigned long isa_bus_to_virt(unsigned long addr) { BUG(); return 0; } static inline unsigned long isa_virt_to_bus(void *addr) { BUG(); return 0; } /* * Memory mapped I/O * * readX()/writeX() do byteswapping and take an ioremapped address * __raw_readX()/__raw_writeX() don't byteswap and take an ioremapped address. * gsc_*() don't byteswap and operate on physical addresses; * eg dev->hpa or 0xfee00000. */ static inline unsigned char gsc_readb(unsigned long addr) { long flags; unsigned char ret; __asm__ __volatile__( " rsm %3,%0\n" " ldbx 0(%2),%1\n" " mtsm %0\n" : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); return ret; } static inline unsigned short gsc_readw(unsigned long addr) { long flags; unsigned short ret; __asm__ __volatile__( " rsm %3,%0\n" " ldhx 0(%2),%1\n" " mtsm %0\n" : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); return ret; } static inline unsigned int gsc_readl(unsigned long addr) { u32 ret; __asm__ __volatile__( " ldwax 0(%1),%0\n" : "=r" (ret) : "r" (addr) ); return ret; } static inline unsigned long long gsc_readq(unsigned long addr) { unsigned long long ret; #ifdef CONFIG_64BIT __asm__ __volatile__( " ldda 0(%1),%0\n" : "=r" (ret) : "r" (addr) ); #else /* two reads may have side effects.. */ ret = ((u64) gsc_readl(addr)) << 32; ret |= gsc_readl(addr+4); #endif return ret; } static inline void gsc_writeb(unsigned char val, unsigned long addr) { long flags; __asm__ __volatile__( " rsm %3,%0\n" " stbs %1,0(%2)\n" " mtsm %0\n" : "=&r" (flags) : "r" (val), "r" (addr), "i" (PSW_SM_D) ); } static inline void gsc_writew(unsigned short val, unsigned long addr) { long flags; __asm__ __volatile__( " rsm %3,%0\n" " sths %1,0(%2)\n" " mtsm %0\n" : "=&r" (flags) : "r" (val), "r" (addr), "i" (PSW_SM_D) ); } static inline void gsc_writel(unsigned int val, unsigned long addr) { __asm__ __volatile__( " stwas %0,0(%1)\n" : : "r" (val), "r" (addr) ); } static inline void gsc_writeq(unsigned long long val, unsigned long addr) { #ifdef CONFIG_64BIT __asm__ __volatile__( " stda %0,0(%1)\n" : : "r" (val), "r" (addr) ); #else /* two writes may have side effects.. */ gsc_writel(val >> 32, addr); gsc_writel(val, addr+4); #endif } /* * The standard PCI ioremap interfaces */ void __iomem *ioremap(unsigned long offset, unsigned long size); #define ioremap_wc ioremap #define ioremap_uc ioremap extern void iounmap(const volatile void __iomem *addr); static inline unsigned char __raw_readb(const volatile void __iomem *addr) { return (*(volatile unsigned char __force *) (addr)); } static inline unsigned short __raw_readw(const volatile void __iomem *addr) { return *(volatile unsigned short __force *) addr; } static inline unsigned int __raw_readl(const volatile void __iomem *addr) { return *(volatile unsigned int __force *) addr; } static inline unsigned long long __raw_readq(const volatile void __iomem *addr) { return *(volatile unsigned long long __force *) addr; } static inline void __raw_writeb(unsigned char b, volatile void __iomem *addr) { *(volatile unsigned char __force *) addr = b; } static inline void __raw_writew(unsigned short b, volatile void __iomem *addr) { *(volatile unsigned short __force *) addr = b; } static inline void __raw_writel(unsigned int b, volatile void __iomem *addr) { *(volatile unsigned int __force *) addr = b; } static inline void __raw_writeq(unsigned long long b, volatile void __iomem *addr) { *(volatile unsigned long long __force *) addr = b; } static inline unsigned char readb(const volatile void __iomem *addr) { return __raw_readb(addr); } static inline unsigned short readw(const volatile void __iomem *addr) { return le16_to_cpu((__le16 __force) __raw_readw(addr)); } static inline unsigned int readl(const volatile void __iomem *addr) { return le32_to_cpu((__le32 __force) __raw_readl(addr)); } static inline unsigned long long readq(const volatile void __iomem *addr) { return le64_to_cpu((__le64 __force) __raw_readq(addr)); } static inline void writeb(unsigned char b, volatile void __iomem *addr) { __raw_writeb(b, addr); } static inline void writew(unsigned short w, volatile void __iomem *addr) { __raw_writew((__u16 __force) cpu_to_le16(w), addr); } static inline void writel(unsigned int l, volatile void __iomem *addr) { __raw_writel((__u32 __force) cpu_to_le32(l), addr); } static inline void writeq(unsigned long long q, volatile void __iomem *addr) { __raw_writeq((__u64 __force) cpu_to_le64(q), addr); } #define readb readb #define readw readw #define readl readl #define readq readq #define writeb writeb #define writew writew #define writel writel #define writeq writeq #define readb_relaxed(addr) readb(addr) #define readw_relaxed(addr) readw(addr) #define readl_relaxed(addr) readl(addr) #define readq_relaxed(addr) readq(addr) #define writeb_relaxed(b, addr) writeb(b, addr) #define writew_relaxed(w, addr) writew(w, addr) #define writel_relaxed(l, addr) writel(l, addr) #define writeq_relaxed(q, addr) writeq(q, addr) void memset_io(volatile void __iomem *addr, unsigned char val, int count); void memcpy_fromio(void *dst, const volatile void __iomem *src, int count); void memcpy_toio(volatile void __iomem *dst, const void *src, int count); /* Port-space IO */ #define inb_p inb #define inw_p inw #define inl_p inl #define outb_p outb #define outw_p outw #define outl_p outl extern unsigned char eisa_in8(unsigned short port); extern unsigned short eisa_in16(unsigned short port); extern unsigned int eisa_in32(unsigned short port); extern void eisa_out8(unsigned char data, unsigned short port); extern void eisa_out16(unsigned short data, unsigned short port); extern void eisa_out32(unsigned int data, unsigned short port); #if defined(CONFIG_PCI) extern unsigned char inb(int addr); extern unsigned short inw(int addr); extern unsigned int inl(int addr); extern void outb(unsigned char b, int addr); extern void outw(unsigned short b, int addr); extern void outl(unsigned int b, int addr); #elif defined(CONFIG_EISA) #define inb eisa_in8 #define inw eisa_in16 #define inl eisa_in32 #define outb eisa_out8 #define outw eisa_out16 #define outl eisa_out32 #else static inline char inb(unsigned long addr) { BUG(); return -1; } static inline short inw(unsigned long addr) { BUG(); return -1; } static inline int inl(unsigned long addr) { BUG(); return -1; } #define outb(x, y) BUG() #define outw(x, y) BUG() #define outl(x, y) BUG() #endif /* * String versions of in/out ops: */ extern void insb (unsigned long port, void *dst, unsigned long count); extern void insw (unsigned long port, void *dst, unsigned long count); extern void insl (unsigned long port, void *dst, unsigned long count); extern void outsb (unsigned long port, const void *src, unsigned long count); extern void outsw (unsigned long port, const void *src, unsigned long count); extern void outsl (unsigned long port, const void *src, unsigned long count); /* IO Port space is : BBiiii where BB is HBA number. */ #define IO_SPACE_LIMIT 0x00ffffff /* PA machines have an MM I/O space from 0xf0000000-0xffffffff in 32 * bit mode and from 0xfffffffff0000000-0xfffffffffffffff in 64 bit * mode (essentially just sign extending. This macro takes in a 32 * bit I/O address (still with the leading f) and outputs the correct * value for either 32 or 64 bit mode */ #define F_EXTEND(x) ((unsigned long)((x) | (0xffffffff00000000ULL))) #define ioread64 ioread64 #define ioread64be ioread64be #define iowrite64 iowrite64 #define iowrite64be iowrite64be extern u64 ioread64(const void __iomem *addr); extern u64 ioread64be(const void __iomem *addr); extern void iowrite64(u64 val, void __iomem *addr); extern void iowrite64be(u64 val, void __iomem *addr); #include <asm-generic/iomap.h> /* * Convert a physical pointer to a virtual kernel pointer for /dev/mem * access */ #define xlate_dev_mem_ptr(p) __va(p) extern int devmem_is_allowed(unsigned long pfn); #endif
Save
cmd:
run