Go back –> iwl3945 kerneldoc

iwl3945_get_antenna_flags - Get antenna flags for RXON command

__le32 iwl3945_get_antenna_flags (const struct iwl_priv * priv)

Arguments

priv
eeprom and antenna fields are used to determine antenna flags

Description

priv->eeprom39 is used to determine if antenna AUX/MAIN are reversed iwl3945_mod_params.antenna specifies the antenna diversity mode:

IWL_ANTENNA_DIVERSITY - NIC selects best antenna by itself IWL_ANTENNA_MAIN - Force MAIN antenna IWL_ANTENNA_AUX - Force AUX antenna


iwl3945_setup_rx_handlers - Initialize Rx handler callbacks

void iwl3945_setup_rx_handlers (struct iwl_priv * priv)

Arguments

Description

Setup the RX handlers for each of the reply types sent from the uCode to the host.

This function chains into the hardware specific files for them to setup any hardware specific handlers as well.


iwl3945_dma_addr2rbd_ptr - convert a DMA address to a uCode read buffer ptr

__le32 iwl3945_dma_addr2rbd_ptr (struct iwl_priv * priv, dma_addr_t dma_addr)

Arguments


iwl3945_rx_queue_restock - refill RX queue from pre-allocated pool

void iwl3945_rx_queue_restock (struct iwl_priv * priv)

Arguments

Description

If there are slots in the RX queue that need to be restocked, and we have free pre-allocated buffers, fill the ranks as much as we can, pulling from rx_free.

This moves the 'write' index forward to catch up with 'processed', and also updates the memory address in the firmware to reference the new target buffer.


iwl3945_rx_allocate - Move all used packet from rx_used to rx_free

void iwl3945_rx_allocate (struct iwl_priv * priv, gfp_t priority)

Arguments

Description

When moving to rx_free an SKB is allocated for the slot.

Also restock the Rx queue via iwl3945_rx_queue_restock. This is called as a scheduled work item (except for during initialization)


iwl3945_rx_handle - Main entry function for receiving responses from uCode

void iwl3945_rx_handle (struct iwl_priv * priv)

Arguments

Description

Uses the priv->rx_handlers callback function array to invoke the appropriate handlers, including command responses, frame-received notifications, and other notifications.


iwl3945_print_event_log - Dump error event log to syslog

int iwl3945_print_event_log (struct iwl_priv * priv, u32 start_idx, u32 num_events, u32 mode, int pos, char ** buf, size_t bufsz)

Arguments

Description


iwl3945_print_last_event_logs - Dump the newest # of event log to syslog

int iwl3945_print_last_event_logs (struct iwl_priv * priv, u32 capacity, u32 num_wraps, u32 next_entry, u32 size, u32 mode, int pos, char ** buf, size_t bufsz)

Arguments


iwl3945_verify_inst_full - verify runtime uCode image in card vs. host, looking at all data.

int iwl3945_verify_inst_full (struct iwl_priv * priv, __le32 * image, u32 len)

Arguments


iwl3945_verify_inst_sparse - verify runtime uCode image in card vs. host, using sample data 100 bytes apart. If these sample points are good, it's a pretty good bet that everything between them is good, too.

int iwl3945_verify_inst_sparse (struct iwl_priv * priv, __le32 * image, u32 len)

Arguments


iwl3945_verify_ucode - determine which instruction image is in SRAM, and verify its contents

int iwl3945_verify_ucode (struct iwl_priv * priv)

Arguments


iwl3945_read_ucode - Read uCode images from disk file.

int iwl3945_read_ucode (struct iwl_priv * priv)

Arguments

Description

Copy into buffers for card to fetch via bus-mastering


iwl3945_set_ucode_ptrs - Set uCode address location

int iwl3945_set_ucode_ptrs (struct iwl_priv * priv)

Arguments

Description

Tell initialization uCode where to find runtime uCode.

BSM registers initially contain pointers to initialization uCode. We need to replace them to load runtime uCode inst and data, and to save runtime data when powering down.


iwl3945_init_alive_start - Called after REPLY_ALIVE notification received

void iwl3945_init_alive_start (struct iwl_priv * priv)

Arguments

Description

Called after REPLY_ALIVE notification received from "initialize" uCode.

Tell "initialize" uCode to go ahead and load the runtime uCode.


iwl3945_alive_start - called after REPLY_ALIVE notification received from protocol/runtime uCode (initialization uCode's Alive gets handled by iwl3945_init_alive_start()).

void iwl3945_alive_start (struct iwl_priv * priv)

Arguments