Warner Losh
95ee2897e9
sys: Remove $FreeBSD$: two-line .h pattern
...
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-08-16 11:54:11 -06:00
Jean-Sébastien Pédron
4b0552d5f4
linuxkpi: Move IS_ENABLED() and friends to <linux/kconfig.h>
...
The header is included in <linux/xarray.h> like it is on Linux. Some DRM
code depends on this header "pollution".
Reviewed by: bz
Approved by: bz
Differential Revision: https://reviews.freebsd.org/D38567
2023-02-15 00:06:32 +01:00
Jean-Sébastien Pédron
5542309ec6
linuxkpi: Define xa_is_err(), xa_{store,erase}_irq() and xa_{,un}lock_irq*()
...
`xa_is_err()` is synonymous to `IS_ERR()`.
Other introduced functions call their equivalent without the `irq*`
suffix.
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38534
2023-02-13 22:09:31 +01:00
Vladimir Kondratyev
307f78f3ed
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
...
MFC after: 1 week
Reviewed by: bz, emaste, hselasky, manu
Differential Revision: https://reviews.freebsd.org/D33562
2022-01-10 22:49:38 +03:00
Vladimir Kondratyev
e705066cd8
LinuxKPI: Add support for XA_FLAGS_ALLOC1 xarray flag
...
XA_FLAGS_ALLOC1 causes allocation of xarray entries starting at 1
Required by drm-kmod 5.7
MFC after: 1 week
Reviewed by: hselasky, manu
Differential Revision: https://reviews.freebsd.org/D33293
2022-01-10 22:49:37 +03:00
Vladimir Kondratyev
b59ffedae8
LinuxKPI: Add helper functions to store integers to linux/xarray.h
...
Required by drm-kmod.
Reviewed by: hselasky
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D32091
2021-09-29 23:14:23 +03:00
Hans Petter Selasky
ab79c9061c
Implement xa_init() in the LinuxKPI as a wrapper for xa_init_flags().
...
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
2020-10-24 13:16:10 +00:00
Hans Petter Selasky
d96e599643
Implement extensible arrays API using the existing radix tree implementation
...
in the LinuxKPI.
Differential Revision: https://reviews.freebsd.org/D25101
Reviewed by: kib @
MFC after: 1 week
Sponsored by: Mellanox Technologies
2020-08-27 10:28:12 +00:00