Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
csr_wifi_hip_card_sdio_intr.c File Reference
#include "csr_wifi_hip_unifi.h"
#include "csr_wifi_hip_conversions.h"
#include "csr_wifi_hip_card.h"
#include "csr_wifi_hip_xbv.h"

Go to the source code of this file.

Macros

#define UNIFI_DEFAULT_HOST_IDLE_TIMEOUT   5
 
#define UNIFI_DEFAULT_WAKE_TIMEOUT   1000
 
#define GET_CHUNKS_FOR(SIG_FRAG_SIZE, LENGTH)   (((LENGTH) + ((SIG_FRAG_SIZE)-1)) / (SIG_FRAG_SIZE))
 
#define ROUND_UP_NEEDED_CHUNKS(_card, _needed_chunks)
 
#define ROUND_UP_SPACE_CHUNKS(_card, _space_chunks)
 

Functions

void unifi_sdio_interrupt_handler (card_t *card)
 
CsrResult unifi_configure_low_power_mode (card_t *card, enum unifi_low_power_mode low_power_mode, enum unifi_periodic_wake_mode periodic_wake_mode)
 
CsrResult unifi_force_low_power_mode (card_t *card)
 
CsrResult unifi_bh (card_t *card, u32 *remaining)
 

Macro Definition Documentation

#define GET_CHUNKS_FOR (   SIG_FRAG_SIZE,
  LENGTH 
)    (((LENGTH) + ((SIG_FRAG_SIZE)-1)) / (SIG_FRAG_SIZE))

Definition at line 982 of file csr_wifi_hip_card_sdio_intr.c.

#define ROUND_UP_NEEDED_CHUNKS (   _card,
  _needed_chunks 
)
Value:
{ \
u16 _chunks_per_block; \
u16 _chunks_in_last_block; \
if (_card->sdio_io_block_pad) \
{ \
_chunks_per_block = _card->sdio_io_block_size / _card->config_data.sig_frag_size; \
_chunks_in_last_block = _needed_chunks % _chunks_per_block; \
if (_chunks_in_last_block != 0) \
{ \
_needed_chunks = _needed_chunks + (_chunks_per_block - _chunks_in_last_block); \
} \
} \
}

Definition at line 1902 of file csr_wifi_hip_card_sdio_intr.c.

#define ROUND_UP_SPACE_CHUNKS (   _card,
  _space_chunks 
)
Value:
{ \
u16 _chunks_per_block; \
if (_card->sdio_io_block_pad) \
{ \
_chunks_per_block = _card->sdio_io_block_size / _card->config_data.sig_frag_size; \
_space_chunks = ((_space_chunks / _chunks_per_block) * _chunks_per_block); \
} \
}

Definition at line 1919 of file csr_wifi_hip_card_sdio_intr.c.

#define UNIFI_DEFAULT_HOST_IDLE_TIMEOUT   5

Definition at line 36 of file csr_wifi_hip_card_sdio_intr.c.

#define UNIFI_DEFAULT_WAKE_TIMEOUT   1000

Definition at line 42 of file csr_wifi_hip_card_sdio_intr.c.

Function Documentation

void unifi_sdio_interrupt_handler ( card_t card)

Call-out from the SDIO glue layer.

The glue layer needs to call unifi_sdio_interrupt_handler() every time an interrupts occurs.

Parameters
cardthe HIP core context.

Definition at line 289 of file csr_wifi_hip_card_sdio_intr.c.