drivers/net/wireless/realtek/rtw89/rtw8851b_rfk_table.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/realtek/rtw89/rtw8851b_rfk_table.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/realtek/rtw89/rtw8851b_rfk_table.c- Extension
.c- Size
- 20398 bytes
- Lines
- 500
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
rtw8851b_rfk_table.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/* Copyright(c) 2022-2023 Realtek Corporation
*/
#include "rtw8851b_rfk_table.h"
static const struct rtw89_reg5_def rtw8851b_dadck_setup_defs[] = {
RTW89_DECL_RFK_WM(0xc210, 0x003fc000, 0x80),
RTW89_DECL_RFK_WM(0xc224, 0x003fc000, 0x80),
RTW89_DECL_RFK_WM(0xc0f8, 0x30000000, 0x3),
RTW89_DECL_RFK_WM(0x12b8, BIT(30), 0x1),
RTW89_DECL_RFK_WM(0x030c, 0x1f000000, 0x1f),
RTW89_DECL_RFK_WM(0x032c, 0xc0000000, 0x0),
RTW89_DECL_RFK_WM(0x032c, BIT(22), 0x0),
RTW89_DECL_RFK_WM(0x032c, BIT(22), 0x1),
RTW89_DECL_RFK_WM(0x032c, BIT(16), 0x0),
RTW89_DECL_RFK_WM(0x032c, BIT(20), 0x1),
RTW89_DECL_RFK_WM(0x030c, 0x0f000000, 0x3),
RTW89_DECL_RFK_WM(0xc0f4, BIT(2), 0x0),
RTW89_DECL_RFK_WM(0xc0f4, BIT(4), 0x0),
RTW89_DECL_RFK_WM(0xc0f4, BIT(11), 0x1),
RTW89_DECL_RFK_WM(0xc0f4, BIT(11), 0x0),
RTW89_DECL_RFK_DELAY(1),
RTW89_DECL_RFK_WM(0xc0f4, 0x300, 0x1),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_dadck_setup_defs);
static const struct rtw89_reg5_def rtw8851b_dadck_post_defs[] = {
RTW89_DECL_RFK_WM(0x032c, BIT(16), 0x1),
RTW89_DECL_RFK_WM(0x032c, BIT(20), 0x0),
RTW89_DECL_RFK_WM(0x030c, 0x1f000000, 0xc),
RTW89_DECL_RFK_WM(0x032c, 0xc0000000, 0x1),
RTW89_DECL_RFK_WM(0x12b8, BIT(30), 0x0),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_dadck_post_defs);
static const struct rtw89_reg5_def rtw8851b_dack_s0_1_defs[] = {
RTW89_DECL_RFK_WM(0x12a0, BIT(15), 0x1),
RTW89_DECL_RFK_WM(0x12a0, 0x7000, 0x3),
RTW89_DECL_RFK_WM(0x12b8, BIT(30), 0x1),
RTW89_DECL_RFK_WM(0x030c, BIT(28), 0x1),
RTW89_DECL_RFK_WM(0x032c, 0x80000000, 0x0),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_dack_s0_1_defs);
static const struct rtw89_reg5_def rtw8851b_dack_s0_2_defs[] = {
RTW89_DECL_RFK_WM(0xc004, BIT(0), 0x0),
RTW89_DECL_RFK_WM(0x12a0, BIT(15), 0x0),
RTW89_DECL_RFK_WM(0x12a0, 0x7000, 0x7),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_dack_s0_2_defs);
static const struct rtw89_reg5_def rtw8851b_dack_manual_off_defs[] = {
RTW89_DECL_RFK_WM(0xc0f8, 0x30000000, 0x0),
RTW89_DECL_RFK_WM(0xc210, BIT(0), 0x0),
RTW89_DECL_RFK_WM(0xc224, BIT(0), 0x0),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_dack_manual_off_defs);
static const struct rtw89_reg5_def rtw8851b_iqk_rxclk_80_defs[] = {
RTW89_DECL_RFK_WM(0x5670, 0x60000000, 0x1),
RTW89_DECL_RFK_WM(0xc0ec, 0x00006000, 0x0),
RTW89_DECL_RFK_WM(0x12b8, 0x40000000, 0x1),
RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x0f),
RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x03),
RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x0001),
RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x0041),
RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x1101),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_iqk_rxclk_80_defs);
static const struct rtw89_reg5_def rtw8851b_iqk_rxclk_others_defs[] = {
RTW89_DECL_RFK_WM(0x5670, 0x60000000, 0x0),
RTW89_DECL_RFK_WM(0xc0ec, 0x00006000, 0x2),
RTW89_DECL_RFK_WM(0x12b8, 0x40000000, 0x1),
RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x0f),
RTW89_DECL_RFK_WM(0x030c, 0xff000000, 0x03),
RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x0001),
RTW89_DECL_RFK_WM(0x032c, 0xffff0000, 0x0041),
RTW89_DECL_RFK_WM(0x20fc, 0xffff0000, 0x1101),
};
RTW89_DECLARE_RFK_TBL(rtw8851b_iqk_rxclk_others_defs);
Annotation
- Immediate include surface: `rtw8851b_rfk_table.h`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.