Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bfa_ioc_ct.c File Reference
#include "bfa_ioc.h"
#include "cna.h"
#include "bfi.h"
#include "bfi_reg.h"
#include "bfa_defs.h"

Go to the source code of this file.

Macros

#define bfa_ioc_ct_sync_pos(__ioc)   ((u32) (1 << bfa_ioc_pcifn(__ioc)))
 
#define BFA_IOC_SYNC_REQD_SH   16
 
#define bfa_ioc_ct_get_sync_ackd(__val)   (__val & 0x0000ffff)
 
#define bfa_ioc_ct_clear_sync_ackd(__val)   (__val & 0xffff0000)
 
#define bfa_ioc_ct_get_sync_reqd(__val)   (__val >> BFA_IOC_SYNC_REQD_SH)
 
#define bfa_ioc_ct_sync_reqd_pos(__ioc)   (bfa_ioc_ct_sync_pos(__ioc) << BFA_IOC_SYNC_REQD_SH)
 
#define FNC_PERS_FN_SHIFT(__fn)   ((__fn) * 8)
 
#define HOSTFN_MSIX_DEFAULT   64
 
#define HOSTFN_MSIX_VT_INDEX_MBOX_ERR   0x30138
 
#define HOSTFN_MSIX_VT_OFST_NUMVT   0x3013c
 
#define __MSIX_VT_NUMVT__MK   0x003ff800
 
#define __MSIX_VT_NUMVT__SH   11
 
#define __MSIX_VT_NUMVT_(_v)   ((_v) << __MSIX_VT_NUMVT__SH)
 
#define __MSIX_VT_OFST_   0x000007ff
 
#define CT2_NFC_MAX_DELAY   1000
 
#define CT2_NFC_VER_VALID   0x143
 
#define BFA_IOC_PLL_POLL   1000000
 

Functions

void bfa_nw_ioc_set_ct_hwif (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_set_ct2_hwif (struct bfa_ioc *ioc)
 
void bfa_nw_ioc_ct2_poweron (struct bfa_ioc *ioc)
 

Macro Definition Documentation

#define __MSIX_VT_NUMVT_ (   _v)    ((_v) << __MSIX_VT_NUMVT__SH)

Definition at line 436 of file bfa_ioc_ct.c.

#define __MSIX_VT_NUMVT__MK   0x003ff800

Definition at line 434 of file bfa_ioc_ct.c.

#define __MSIX_VT_NUMVT__SH   11

Definition at line 435 of file bfa_ioc_ct.c.

#define __MSIX_VT_OFST_   0x000007ff

Definition at line 437 of file bfa_ioc_ct.c.

#define bfa_ioc_ct_clear_sync_ackd (   __val)    (__val & 0xffff0000)

Definition at line 29 of file bfa_ioc_ct.c.

#define bfa_ioc_ct_get_sync_ackd (   __val)    (__val & 0x0000ffff)

Definition at line 28 of file bfa_ioc_ct.c.

#define bfa_ioc_ct_get_sync_reqd (   __val)    (__val >> BFA_IOC_SYNC_REQD_SH)

Definition at line 30 of file bfa_ioc_ct.c.

#define bfa_ioc_ct_sync_pos (   __ioc)    ((u32) (1 << bfa_ioc_pcifn(__ioc)))

Definition at line 25 of file bfa_ioc_ct.c.

#define bfa_ioc_ct_sync_reqd_pos (   __ioc)    (bfa_ioc_ct_sync_pos(__ioc) << BFA_IOC_SYNC_REQD_SH)

Definition at line 31 of file bfa_ioc_ct.c.

#define BFA_IOC_PLL_POLL   1000000

Definition at line 783 of file bfa_ioc_ct.c.

#define BFA_IOC_SYNC_REQD_SH   16

Definition at line 27 of file bfa_ioc_ct.c.

#define CT2_NFC_MAX_DELAY   1000

Definition at line 781 of file bfa_ioc_ct.c.

#define CT2_NFC_VER_VALID   0x143

Definition at line 782 of file bfa_ioc_ct.c.

#define FNC_PERS_FN_SHIFT (   __fn)    ((__fn) * 8)

Definition at line 361 of file bfa_ioc_ct.c.

#define HOSTFN_MSIX_DEFAULT   64

Definition at line 431 of file bfa_ioc_ct.c.

#define HOSTFN_MSIX_VT_INDEX_MBOX_ERR   0x30138

Definition at line 432 of file bfa_ioc_ct.c.

#define HOSTFN_MSIX_VT_OFST_NUMVT   0x3013c

Definition at line 433 of file bfa_ioc_ct.c.

Function Documentation

void bfa_nw_ioc_ct2_poweron ( struct bfa_ioc ioc)

Definition at line 439 of file bfa_ioc_ct.c.

void bfa_nw_ioc_set_ct2_hwif ( struct bfa_ioc ioc)

Definition at line 98 of file bfa_ioc_ct.c.

void bfa_nw_ioc_set_ct_hwif ( struct bfa_ioc ioc)

Definition at line 92 of file bfa_ioc_ct.c.

Variable Documentation

u32 hfn

Definition at line 206 of file bfa_ioc_ct.c.

u32 hfn_mbox

Definition at line 194 of file bfa_ioc_ct.c.

u32 hfn_pgn

Definition at line 196 of file bfa_ioc_ct.c.

u32 lpu

Definition at line 207 of file bfa_ioc_ct.c.

u32 lpu_mbox

Definition at line 195 of file bfa_ioc_ct.c.

u32 lpu_read

Definition at line 232 of file bfa_ioc_ct.c.