diff options
| author | Jonas Karlman <[email protected]> | 2026-08-03 18:43:12 +0000 |
|---|---|---|
| committer | Quentin Schulz <[email protected]> | 2026-08-11 17:35:22 +0200 |
| commit | 0c68b88ce574ddaa2f94f3e5d747c25db693dc18 (patch) | |
| tree | eff26d6da5486609a7e750ee595ba39f671adb62 /contrib/apps/httpserver/README | |
| parent | 36c377b9859ffb53eb1e39ea31e8d96d1e0fe1e5 (diff) | |
include: linux: Import hw_bitfield.h from Linux v6.18
Hardware of various vendors, but very notably Rockchip, often uses
32-bit registers where the upper 16-bit half of the register is a
write-enable mask for the lower half.
Add hw_bitfield.h with two macros: FIELD_PREP_WM16, and
FIELD_PREP_WM16_CONST. The latter is a version that can be used in
initializers, like FIELD_PREP_CONST.
Import hw_bitfield.h from Linux commit 21368fcbb124 ("bitmap: introduce
hardware-specific bitfield operations"), first introduced in v6.18-rc1.
This contains two changes compared to the Linux version:
- include of linux/limit.h was dropped
- use of const_true() in FIELD_PREP_WM16_CONST() was dropped
Signed-off-by: Jonas Karlman <[email protected]>
Acked-by: Quentin Schulz <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver/README')
0 files changed, 0 insertions, 0 deletions
