aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/dummy/include
Commit message (Collapse)AuthorAgeFilesLines
* linuxkpi: Add <linux/mfd/core.h>Jean-Sébastien Pédron5 days1-0/+0
| | | | | | | | | | | | | | | | | | | To be exact, there was a dummy file with no content before. This commit defines `struct mfd_cell` and adds two function stubs. The function stubs are not implemented but still return success. They log a message to indicate they need to be implemented. Also, unlike Linux, <linux/mfd/core.h> includes <linux/ioport.h>. This works around the fact that we can't include <linux/ioport.h> from <linux/pci.h>, due to a conflict with the FreeBSD-native `struct resource`. The amdgpu DRM driver started to use it in Linux 6.11. Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55736
* LinuxKPI: remove dumm header now in commonBjoern A. Zeeb2026-02-261-0/+0
| | | | | | | | page_pool/helpers.h does exist in common/include/net/page_pool/helpers.h so we can remove the dummy header file. Sponosred by: The FreeBSD Foundation MFC after: 3 days
* linuxkpi: Add eventfd_*()Jean-Sébastien Pédron2026-01-251-0/+0
| | | | | | | | | | | | Add <linux/eventfd.h> and expose the `eventfd_*()` API. This is used by DRM drivers for some time, but the code was commented out so far. Note that Linux uses `struct eventfd_ctx`, but FreeBSD defines `struct eventfd`. We define `eventfd_ctx` as a synonym to `eventfd`. Reviewed by: christos, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50853
* linuxkpi: Replicate the chain of #include in the `cec*.h` headersJean-Sébastien Pédron2026-01-071-0/+0
| | | | | | | | | | The i915 DRM driver depends on this namespace pollution to access `debugfs_*` functions, after several explicit #include of <linux/debugfs.h> were removed in Linux 6.10. Reviewed by: bz, christos Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54494
* linuxkpi: Add a dummy <linux/fpu.h>Jean-Sébastien Pédron2026-01-051-0/+0
| | | | | | | | | | The amdgpu DRM driver started to include in from Linux 6.10, but either it does not use any of it, or linuxkpi provides the necessary API from another header. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54498
* linuxkpi: Add a dummy <linux/kdebug.h>Jean-Sébastien Pédron2026-01-051-0/+0
| | | | | | | | | The DRM generic code started to include it in Linux 6.10 but doesn't seem to use anything inside. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54490
* linuxkpi: Add dummy <linux/percpu{,-defs}.h>Jean-Sébastien Pédron2025-12-052-0/+0
| | | | | | | | | | There are no consumers right now except the upcoming <linux/eventfd.h>. This is meant to reproduce the same includes as Linux, in case consumers of <linux/eventfd.h> implicitly rely on namespace pollution. Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50851
* LinuxKPI: kunit: add static_stub.h and more dummy headersBjoern A. Zeeb2025-09-053-0/+0
| | | | | | | | | These came up during a wifi driver update. Sponsored by: The FreeBSD Foundation (initially) MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D52079
* LinuxKPI: dummy: add more dummy hreader filesBjoern A. Zeeb2025-05-052-0/+0
| | | | | | | These are needed for mt76. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* LinuxKPI: add dummy header file linux/unaligned.hBjoern A. Zeeb2025-04-271-0/+0
| | | | | | | | | Long-term asm/unaligned.h is likely to migrate to this file? Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D50003
* linuxkpi: Add several headers to reproduce namespace pollutionJean-Sébastien Pédron2025-01-311-0/+0
| | | | | | | | | | [Why] The i915 DRM driver relies on this chain of includes to access the definition of `struct tasklet_struct` in `<linux/interrupt.h>`. Reviewed by: imp, manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48760
* LinuxKPI: add new dummy headers visibility.h and of_net.hBjoern A. Zeeb2024-10-112-0/+0
| | | | | | | Those files are required by updated wireless drivers. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* LinuxKPI: remove dummy kstrtox.hBjoern A. Zeeb2024-07-251-0/+0
| | | | | | | kstrtox.h has an implementation nowadays. Remove the dummy file which is no longer needed. Sponsored by: The FreeBSD Foundation
* LinuxKPI: Add linux/eventfd.h and linux/memremap.h dummy headersVladimir Kondratyev2024-07-212-0/+0
| | | | | | | Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D45848
* LinuxKPI: Move [SU](8|16|32|64)_(MAX|MIN) defines to linux/limits.hVladimir Kondratyev2024-04-081-0/+0
| | | | | | | | | | Some source files get them from linux/limits.h directly rather than from linux/kernel.h. While here replace Linux constant values with sys/stdint.h provided ones. Sponsored by: Serenity Cyber Security, LLC Reviewed by: emaste MFC after: 1 week
* LinuxKPI: remove dummy header files with implementationBjoern A. Zeeb2024-03-293-0/+0
| | | | | | | All three files now have an implementation so we no longer need the "dummy" versions. Sponsored by: The FreeBSD Foundation
* LinuxKPI: Add linux/ioport.h headerVladimir Kondratyev2023-12-241-0/+0
| | | | | | Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42817
* LinuxKPI: Add asm/hypervisor.h headerVladimir Kondratyev2023-12-241-0/+0
| | | | | | | | Sponsored by: Serenity Cyber Security, LLC Obtained from: OpenBSD Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42802
* LinuxKPI: Add some header pollution and dummy headersVladimir Kondratyev2023-12-247-0/+0
| | | | | | | | | | required by recent drm-kmod to be succesfully compiled. Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz Obtained from: OpenBSD (partially) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42798
* LinuxKPI: Add video/vga.h headerVladimir Kondratyev2023-12-241-0/+0
| | | | | | | | Sponsored by: Serenity Cyber Security, LLC Obtained from: OpenBSD Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42793
* linuxkpi: Add <video/of_display_timing.h> to dummy headersJean-Sébastien Pédron2023-12-131-0/+0
| | | | | | | | | [Why] This header is being used by DRM drivers in Linux 5.18. Reviewed by: emaste, manu Approved by: emaste, manu Differential Revision: https://reviews.freebsd.org/D43028
* LinuxKPI: remove dummy headers with implementationsBjoern A. Zeeb2023-10-042-0/+0
| | | | | | | | Both agp_backend.h and utsname.h have an implementation in common/ these days so the dummy headers are no longer needed. Sponsored by: The FreeBSD Foundation MFC after: 3 days
* LinuxKPI: 802.11: update compat code for updated driversBjoern A. Zeeb2023-08-211-0/+0
| | | | | | | | | | | | | | Adjust and add structs, fields, functions to make more modern versions of LinuxKPI based wireless drivers (based on wireless-testing ( wt-2023-06-09, wt-2023-07-24, and later)) compile. Some of these changes can only be applied once all drivers get updated to not break the old versions currently in the tree. Mark those changes with __FOR_LATER_DRV_UPDATE for now and flip the switch at a later point. Sponsored by: The FreeBSD Foundation MFC after: 20 days
* LinuxKPI: add dummy of.hBjoern A. Zeeb2023-06-101-0/+0
| | | | | | | | Given https://reviews.freebsd.org/D34318 was abandoned add an empty of.h dummy header file to at least avoid #include errors and avoid covering those #include with CONFIG_OF. MFC after: 10 days
* LinuxKPI: add thermal.h to dummy files for nowBjoern A. Zeeb2023-05-231-0/+0
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 10 days
* LinuxKPI: add further dummy header filesBjoern A. Zeeb2023-05-202-0/+0
| | | | | | | | Wireless drivers try to include these files. Add them empty for no better reason yet. Sponsored by: The FreeBSD Foundation MFC after: 10 days
* linuxkpi: Add a few more dummy includesEmmanuel Vadot2023-04-044-0/+0
| | | | | | Needed by drm-kmod. Sponsored by: Beckhoff Automation GmbH & Co. KG
* LinuxKPI: remove now implemented dummy headers.Bjoern A. Zeeb2023-03-232-0/+0
| | | | | Both iommu.h and kconfig.h now exist in the common code. There is no need for the duplicate (empty) headers anymore.
* LinuxKPI: add more dummy header filesBjoern A. Zeeb2023-02-0519-0/+0
| | | | | | | | | Add more empty header files wireless drivers try to include but we do not (yet) need for any implementation. Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38271
* LinuxKPI: dummy: remove files which have implementationBjoern A. Zeeb2023-02-055-0/+0
| | | | | | | | | Remove former dummy/ files which now have an actual implementation in common/ . Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38269
* linuxkpi: Add <linux/pgtable.h>Jean-Sébastien Pédron2023-01-301-0/+0
| | | | | | | | | | For now, it's empty. It is included by the DRM drivers but nothing is missing otherwise. Perhaps something we already defined should be in `pgtable.h` instead of another header. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38153
* linuxkpi: Add <linux/limits.h>Jean-Sébastien Pédron2023-01-301-0/+0
| | | | | | | | | | For now, it's empty. It is included by the DRM drivers but nothing is missing otherwise. Perhaps something we already defined should be in `limits.h` instead of another header. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38147
* LinuxKPI: add timekeeping.h, another dummy (empty) header fileBjoern A. Zeeb2022-10-301-0/+0
| | | | | | | The file is included by a driver but it seems we don't need to implement anything here. MFC after: 3 days
* linuxkpi: Add non-atomic readq()/writeq()Felix Palmen2022-09-091-0/+0
| | | | | | | | The non-atomic versions are required by drm-510-kmod to build on 32-bit architectures. Approved by: hselasky, manu, tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D36507
* linuxkpi: Add a bunch of dummy includeEmmanuel Vadot2022-08-1876-0/+0
All those are needed for drm-kmod. Add them to base in another directory that will be append in the CFLAGS. Reviewed by: bz Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36110