aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/bitfield.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* linuxkpi: Define `FIELD_FIT()`Jean-Sébastien Pédron2023-02-131-0/+3
| | | | | | Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38536
* LinuxKPI: Constantly use _LINUXKPI_ prefix in include guardsVladimir Kondratyev2022-01-101-3/+3
| | | | | | MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
* LinuxKPI: bitfields add more *replace_bits()Bjoern A. Zeeb2022-01-091-5/+37
| | | | | | | | | | Add or extend the already existing *_replace_bits() implementations using macros as we do for the other parts in the file for le<n>p_replace_bits(), u<n>p_replace_bits(), and _u<n>_replace_bits(). MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33799
* LinuxKPI: fix bug in le32p_replace_bits()Bjoern A. Zeeb2021-07-311-1/+1
| | | | | | | | | | Fix a bug that slipped in in 90707c4e44de03ea36be183ef2226601c66169cb using the correct field in le32p_replace_bits(). MFC after: 3 days Reviewed by: hselasky Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31352
* LinuxKPI: bitfield.h cleanupBjoern A. Zeeb2021-07-291-2/+1
| | | | | | | Add a missing tab and remove an unnecessary return. No functional changes. MFC after: 3 days
* LinuxKPI: add a bitfield.h implementation.Bjoern A. Zeeb2020-10-071-0/+105
This code was iteratively implemented during the work on various WiFi drivers -- from individual functions to a macro-created implementations for the various bit sized needed (and then extended to more for comepleteness). Some of the bit combinations do not seem to make sense so are left out. The __bf_shf(x) was obtained from D26681 [1]. Requested by: manu [1] Reviewed by: hselasky, manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26708 Notes: svn path=/head/; revision=366523