drivers/net/wireless/intel/iwlegacy/4965.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlegacy/4965.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlegacy/4965.c- Extension
.c- Size
- 51822 bytes
- Lines
- 1936
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/pci.hlinux/dma-mapping.hlinux/delay.hlinux/sched.hlinux/skbuff.hlinux/netdevice.hlinux/units.hnet/mac80211.hlinux/etherdevice.hlinux/unaligned.hcommon.h4965.h
Detected Declarations
struct gain_entryfunction Copyrightfunction il4965_verify_inst_fullfunction il4965_verify_ucodefunction il4965_eeprom_acquire_semaphorefunction il4965_eeprom_release_semaphorefunction il4965_eeprom_check_versionfunction il4965_eeprom_get_macfunction il4965_send_led_cmdfunction il4965_led_enablefunction il4965_verify_bsmfunction Machinefunction il4965_set_ucode_ptrsfunction il4965_init_alive_startfunction iw4965_is_ht40_channelfunction il4965_nic_configfunction il4965_chain_noise_resetfunction il4965_math_div_roundfunction gainfunction il4965_get_tx_atten_grpfunction il4965_get_sub_bandfunction il4965_interpolate_valuefunction il4965_interpolate_chanfunction get_min_power_idxfunction il4965_fill_txpower_tblfunction il4965_send_tx_powerfunction il4965_send_rxon_assocfunction il4965_commit_rxonfunction itfunction il4965_hw_channel_switchfunction il4965_txq_update_byte_cnt_tblfunction il4965_hw_get_temperaturefunction il4965_is_temp_calib_neededfunction il4965_temperature_calibfunction il4965_get_hcmd_sizefunction il4965_build_addsta_hcmdfunction il4965_post_scanfunction il4965_post_associatefunction il4965_config_ap
Annotated Snippet
struct gain_entry {
u8 dsp;
u8 radio;
};
static const struct gain_entry gain_table[2][108] = {
/* 5.2GHz power gain idx table */
{
{123, 0x3F}, /* highest txpower */
{117, 0x3F},
{110, 0x3F},
{104, 0x3F},
{98, 0x3F},
{110, 0x3E},
{104, 0x3E},
{98, 0x3E},
{110, 0x3D},
{104, 0x3D},
{98, 0x3D},
{110, 0x3C},
{104, 0x3C},
{98, 0x3C},
{110, 0x3B},
{104, 0x3B},
{98, 0x3B},
{110, 0x3A},
{104, 0x3A},
{98, 0x3A},
{110, 0x39},
{104, 0x39},
{98, 0x39},
{110, 0x38},
{104, 0x38},
{98, 0x38},
{110, 0x37},
{104, 0x37},
{98, 0x37},
{110, 0x36},
{104, 0x36},
{98, 0x36},
{110, 0x35},
{104, 0x35},
{98, 0x35},
{110, 0x34},
{104, 0x34},
{98, 0x34},
{110, 0x33},
{104, 0x33},
{98, 0x33},
{110, 0x32},
{104, 0x32},
{98, 0x32},
{110, 0x31},
{104, 0x31},
{98, 0x31},
{110, 0x30},
{104, 0x30},
{98, 0x30},
{110, 0x25},
{104, 0x25},
{98, 0x25},
{110, 0x24},
{104, 0x24},
{98, 0x24},
{110, 0x23},
{104, 0x23},
{98, 0x23},
{110, 0x22},
{104, 0x18},
{98, 0x18},
{110, 0x17},
{104, 0x17},
{98, 0x17},
{110, 0x16},
{104, 0x16},
{98, 0x16},
{110, 0x15},
{104, 0x15},
{98, 0x15},
{110, 0x14},
{104, 0x14},
{98, 0x14},
{110, 0x13},
{104, 0x13},
{98, 0x13},
{110, 0x12},
{104, 0x08},
{98, 0x08},
{110, 0x07},
{104, 0x07},
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/dma-mapping.h`, `linux/delay.h`, `linux/sched.h`, `linux/skbuff.h`, `linux/netdevice.h`.
- Detected declarations: `struct gain_entry`, `function Copyright`, `function il4965_verify_inst_full`, `function il4965_verify_ucode`, `function il4965_eeprom_acquire_semaphore`, `function il4965_eeprom_release_semaphore`, `function il4965_eeprom_check_version`, `function il4965_eeprom_get_mac`, `function il4965_send_led_cmd`, `function il4965_led_enable`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.