Operation
Operation overview
This part of the manual follows the firmware through one task at a time, in the order the hardware requires. Several steps keep the vendor’s order even where the final register values would not show a difference; the pages mark those steps.
Start-up
- Download the image. The bootloader unpacks the runtime into the chip’s memories and initializes the PHY.
- Prepare the platform. Configuration word, remap windows and memory probe, timers, interrupt controller, then DMA and clocks.
- Wait for the host. The host interface reports that the host is ready.
- Enable timer and AES interrupts, and test the AES engine.
- Publish the host interface rings.
- Start packet DMA. Receive DMA, the TSF, the TX rings and the MAC’s automatic responses.
- Start the MAC. Receive register image, MAC start-up state, packet controller.
- Announce the firmware. The startup indication tells the driver the firmware is ready.
Main loop
After the startup indication the firmware runs a single loop with no tasks or threads:
- Receiving a frame: from the RX FIFO to a WSM indication.
- Transmitting a frame: from a WSM request to a TX pipe and back to a confirmation.
- A-MPDU aggregation: several frames in one transmission, and selective retry.
- CCMP encryption: one AES engine transfer.
- Idle and sleep: when the CPU waits for an interrupt, and how a station dozes in power save.
Programming checklists condenses the register-level steps of the common operations.