Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mci.h File Reference
#include "ar9003_mci.h"

Go to the source code of this file.

Data Structures

struct  ath_mci_profile_info
 
struct  ath_mci_profile_status
 
struct  ath_mci_profile
 
struct  ath_mci_buf
 
struct  ath_mci_coex
 

Macros

#define ATH_MCI_SCHED_BUF_SIZE   (16 * 16) /* 16 entries, 4 dword each */
 
#define ATH_MCI_GPM_MAX_ENTRY   16
 
#define ATH_MCI_GPM_BUF_SIZE   (ATH_MCI_GPM_MAX_ENTRY * 16)
 
#define ATH_MCI_DEF_BT_PERIOD   40
 
#define ATH_MCI_BDR_DUTY_CYCLE   20
 
#define ATH_MCI_MAX_DUTY_CYCLE   90
 
#define ATH_MCI_DEF_AGGR_LIMIT   6 /* in 0.24 ms */
 
#define ATH_MCI_MAX_ACL_PROFILE   7
 
#define ATH_MCI_MAX_SCO_PROFILE   1
 
#define ATH_MCI_MAX_PROFILE
 
#define INC_PROF(_mci, _info)
 
#define DEC_PROF(_mci, _info)
 
#define NUM_PROF(_mci)
 

Functions

void ath_mci_flush_profile (struct ath_mci_profile *mci)
 
int ath_mci_setup (struct ath_softc *sc)
 
void ath_mci_cleanup (struct ath_softc *sc)
 
void ath_mci_intr (struct ath_softc *sc)
 

Macro Definition Documentation

#define ATH_MCI_BDR_DUTY_CYCLE   20

Definition at line 26 of file mci.h.

#define ATH_MCI_DEF_AGGR_LIMIT   6 /* in 0.24 ms */

Definition at line 29 of file mci.h.

#define ATH_MCI_DEF_BT_PERIOD   40

Definition at line 25 of file mci.h.

#define ATH_MCI_GPM_BUF_SIZE   (ATH_MCI_GPM_MAX_ENTRY * 16)

Definition at line 24 of file mci.h.

#define ATH_MCI_GPM_MAX_ENTRY   16

Definition at line 23 of file mci.h.

#define ATH_MCI_MAX_ACL_PROFILE   7

Definition at line 30 of file mci.h.

#define ATH_MCI_MAX_DUTY_CYCLE   90

Definition at line 27 of file mci.h.

#define ATH_MCI_MAX_PROFILE
Value:
ATH_MCI_MAX_SCO_PROFILE)

Definition at line 32 of file mci.h.

#define ATH_MCI_MAX_SCO_PROFILE   1

Definition at line 31 of file mci.h.

#define ATH_MCI_SCHED_BUF_SIZE   (16 * 16) /* 16 entries, 4 dword each */

Definition at line 22 of file mci.h.

#define DEC_PROF (   _mci,
  _info 
)
Value:
do { \
switch (_info->type) { \
_mci->num_other_acl--; \
break; \
_mci->num_a2dp--; \
if (!_info->edr) \
_mci->num_bdr--; \
break; \
_mci->num_hid--; \
break; \
_mci->num_pan--; \
break; \
_mci->num_sco--; \
break; \
default: \
break; \
} \
} while (0)

Definition at line 59 of file mci.h.

#define INC_PROF (   _mci,
  _info 
)
Value:
do { \
switch (_info->type) { \
_mci->num_other_acl++; \
break; \
_mci->num_a2dp++; \
if (!_info->edr) \
_mci->num_bdr++; \
break; \
_mci->num_hid++; \
break; \
_mci->num_pan++; \
break; \
_mci->num_sco++; \
break; \
default: \
break; \
} \
} while (0)

Definition at line 35 of file mci.h.

#define NUM_PROF (   _mci)
Value:
(_mci->num_other_acl + _mci->num_a2dp + \
_mci->num_hid + _mci->num_pan + _mci->num_sco)

Definition at line 83 of file mci.h.

Function Documentation

void ath_mci_cleanup ( struct ath_softc sc)

Definition at line 429 of file mci.c.

void ath_mci_flush_profile ( struct ath_mci_profile mci)

Definition at line 78 of file mci.c.

void ath_mci_intr ( struct ath_softc sc)

Definition at line 446 of file mci.c.

int ath_mci_setup ( struct ath_softc sc)

Definition at line 390 of file mci.c.