opnsense-src/sys/compat/linuxkpi/common/include
Tijl Coosemans 2d97bd0639 linuxkpi: Make arch_io_*_memtype_wc amd64-only
Linux only implements these functions on x86.  They return 0 on other
architectures.  The FreeBSD implementation calls PHYS_TO_DMAP but this
panics on i386 because it does not have a direct map so return 0 on i386
as well for now.  These functions are only used by graphics/drm-*-kmod
to mark the VRAM aperture write-combining but this is also accomplished
by a call to vm_phys_fictitious_reg_range so this change is sufficient
to fix drm-*-kmod on i386 for FreeBSD 14.1.

Reviewed by:	kib
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D45125

(cherry picked from commit 2ae0f5a4d0931067c672be9a791909f0e32d5a0e)
2024-05-11 17:32:51 +02:00
..
acpi LinuxKPI: Add acpi_dev_present() function. 2024-02-17 23:58:39 +03:00
asm linuxkpi: Fix set_memory_* 2024-05-11 17:32:35 +02:00
asm-generic linuxkpi: Add io.h 2022-08-08 15:22:35 +02:00
crypto LinuxKPI: add dummy hash.h and kernel_connect() 2023-05-12 11:21:10 +00:00
linux linuxkpi: Make arch_io_*_memtype_wc amd64-only 2024-05-11 17:32:51 +02:00
net LinuxKPI: 802.11: extend ieee80211_key_seq and WLAN_KEY_LEN_* defines 2024-02-18 18:31:15 +00:00
video LinuxKPI: Add video/vga.h header 2024-02-17 23:58:36 +03:00
xen LinuxKPI: Add xen/xen.h header 2024-02-17 23:58:37 +03:00
stdarg.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00