Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *	Access to VGA videoram
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *	(c) 1998 Martin Mares <mj@ucw.cz>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef __ASM_GENERIC_VGA_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define __ASM_GENERIC_VGA_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  *	On most architectures that support VGA, we can just
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  *	recalculate addresses and then access the videoram
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  *	directly without any black magic.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  *	Everyone else needs to ioremap the address and use
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  *	proper I/O accesses.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #ifndef VGA_MAP_MEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define VGA_MAP_MEM(x, s) (unsigned long)phys_to_virt(x)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define vga_readb(x) (*(x))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define vga_writeb(x, y) (*(y) = (x))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif /* _ASM_GENERIC_VGA_H */