PATH:
usr
/
src
/
kernels
/
5.14.0-611.54.3.el9_7.x86_64
/
include
/
asm-generic
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_GENERIC_FB_H_ #define __ASM_GENERIC_FB_H_ /* * Only include this header file from your architecture's <asm/fb.h>. */ #include <linux/io.h> #include <linux/mm_types.h> #include <linux/pgtable.h> #include <linux/types.h> struct device; #ifndef pgprot_framebuffer #define pgprot_framebuffer pgprot_framebuffer static inline pgprot_t pgprot_framebuffer(pgprot_t prot, unsigned long vm_start, unsigned long vm_end, unsigned long offset) { return pgprot_writecombine(prot); } #endif #ifndef video_is_primary_device #define video_is_primary_device video_is_primary_device static inline bool video_is_primary_device(struct device *dev) { return false; } #endif /* * I/O helpers for the framebuffer. Prefer these functions over their * regular counterparts. The regular I/O functions provide in-order * access and swap bytes to/from little-endian ordering. Neither is * required for framebuffers. Instead, the helpers read and write * raw framebuffer data. Independent operations can be reordered for * improved performance. */ #ifndef fb_readb static inline u8 fb_readb(const volatile void __iomem *addr) { return __raw_readb(addr); } #define fb_readb fb_readb #endif #ifndef fb_readw static inline u16 fb_readw(const volatile void __iomem *addr) { return __raw_readw(addr); } #define fb_readw fb_readw #endif #ifndef fb_readl static inline u32 fb_readl(const volatile void __iomem *addr) { return __raw_readl(addr); } #define fb_readl fb_readl #endif #ifndef fb_readq #if defined(__raw_readq) static inline u64 fb_readq(const volatile void __iomem *addr) { return __raw_readq(addr); } #define fb_readq fb_readq #endif #endif #ifndef fb_writeb static inline void fb_writeb(u8 b, volatile void __iomem *addr) { __raw_writeb(b, addr); } #define fb_writeb fb_writeb #endif #ifndef fb_writew static inline void fb_writew(u16 b, volatile void __iomem *addr) { __raw_writew(b, addr); } #define fb_writew fb_writew #endif #ifndef fb_writel static inline void fb_writel(u32 b, volatile void __iomem *addr) { __raw_writel(b, addr); } #define fb_writel fb_writel #endif #ifndef fb_writeq #if defined(__raw_writeq) static inline void fb_writeq(u64 b, volatile void __iomem *addr) { __raw_writeq(b, addr); } #define fb_writeq fb_writeq #endif #endif #ifndef fb_memcpy_fromio static inline void fb_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) { memcpy_fromio(to, from, n); } #define fb_memcpy_fromio fb_memcpy_fromio #endif #ifndef fb_memcpy_toio static inline void fb_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) { memcpy_toio(to, from, n); } #define fb_memcpy_toio fb_memcpy_toio #endif #ifndef fb_memset static inline void fb_memset_io(volatile void __iomem *addr, int c, size_t n) { memset_io(addr, c, n); } #define fb_memset fb_memset_io #endif #endif /* __ASM_GENERIC_FB_H_ */
[-] mmu_context.h
[edit]
[-] tlbflush.h
[edit]
[-] access_ok.h
[edit]
[-] ftrace.h
[edit]
[-] percpu.h
[edit]
[-] asm-offsets.h
[edit]
[-] runtime-const.h
[edit]
[-] bug.h
[edit]
[-] current.h
[edit]
[-] shmparam.h
[edit]
[-] vmlinux.lds.h
[edit]
[-] vga.h
[edit]
[-] spinlock_types.h
[edit]
[-] irq.h
[edit]
[-] dma-mapping.h
[edit]
[-] audit_dir_write.h
[edit]
[-] ide_iops.h
[edit]
[-] cfi.h
[edit]
[+]
vdso
[-] topology.h
[edit]
[-] cmpxchg-local.h
[edit]
[-] mshyperv.h
[edit]
[-] rwonce.h
[edit]
[-] logic_io.h
[edit]
[-] flat.h
[edit]
[-] qspinlock.h
[edit]
[-] module.h
[edit]
[-] cmpxchg.h
[edit]
[-] termios.h
[edit]
[-] int-ll64.h
[edit]
[-] kmap_size.h
[edit]
[-] numa.h
[edit]
[-] user.h
[edit]
[-] audit_signal.h
[edit]
[-] asm-prototypes.h
[edit]
[-] pci_iomap.h
[edit]
[-] syscalls.h
[edit]
[-] ioctl.h
[edit]
[-] xor.h
[edit]
[-] hardirq.h
[edit]
[-] audit_read.h
[edit]
[-] atomic.h
[edit]
[-] hw_irq.h
[edit]
[-] bugs.h
[edit]
[-] preempt.h
[edit]
[-] irqflags.h
[edit]
[-] trace_clock.h
[edit]
[-] seccomp.h
[edit]
[-] vermagic.h
[edit]
[-] uaccess.h
[edit]
[-] barrier.h
[edit]
[-] mm_hooks.h
[edit]
[-] set_memory.h
[edit]
[-] page.h
[edit]
[-] hugetlb.h
[edit]
[-] exec.h
[edit]
[-] statfs.h
[edit]
[-] parport.h
[edit]
[-] cache.h
[edit]
[-] extable.h
[edit]
[-] kvm_para.h
[edit]
[-] mmiowb.h
[edit]
[-] device.h
[edit]
[-] cacheflush.h
[edit]
[-] local64.h
[edit]
[-] msi.h
[edit]
[-] dma.h
[edit]
[-] linkage.h
[edit]
[-] timex.h
[edit]
[-] vtime.h
[edit]
[-] mmiowb_types.h
[edit]
[-] mmu.h
[edit]
[-] param.h
[edit]
[-] bitsperlong.h
[edit]
[-] softirq_stack.h
[edit]
[-] nommu_context.h
[edit]
[-] qrwlock_types.h
[edit]
[-] kvm_types.h
[edit]
[-] fb.h
[edit]
[-] audit_write.h
[edit]
[-] pci.h
[edit]
[-] sections.h
[edit]
[-] pgtable-nopud.h
[edit]
[-] archrandom.h
[edit]
[-] pgalloc.h
[edit]
[-] futex.h
[edit]
[-] syscall.h
[edit]
[-] serial.h
[edit]
[-] spinlock.h
[edit]
[-] module.lds.h
[edit]
[-] qrwlock.h
[edit]
[-] delay.h
[edit]
[-] atomic64.h
[edit]
[+]
bitops
[-] unaligned.h
[edit]
[-] checksum.h
[edit]
[-] emergency-restart.h
[edit]
[-] signal.h
[edit]
[-] irq_work.h
[edit]
[-] audit_change_attr.h
[edit]
[-] error-injection.h
[edit]
[-] qspinlock_types.h
[edit]
[-] string.h
[edit]
[-] early_ioremap.h
[edit]
[-] io.h
[edit]
[-] iomap.h
[edit]
[-] mcs_spinlock.h
[edit]
[-] bitops.h
[edit]
[-] kprobes.h
[edit]
[-] fixmap.h
[edit]
[-] pgtable-nopmd.h
[edit]
[-] irq_regs.h
[edit]
[-] word-at-a-time.h
[edit]
[-] compat.h
[edit]
[-] pgtable-nop4d.h
[edit]
[-] div64.h
[edit]
[-] local.h
[edit]
[-] tlb.h
[edit]
[-] resource.h
[edit]
[-] simd.h
[edit]
[-] export.h
[edit]
[-] kdebug.h
[edit]
[+]
..
[-] pgtable_uffd.h
[edit]
[-] memory_model.h
[edit]
[-] switch_to.h
[edit]
[-] Kbuild
[edit]
[-] getorder.h
[edit]