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

Go to the source code of this file.

Data Structures

struct  bfa_port_s
 
struct  bfa_cee_cbfn_s
 
struct  bfa_cee_s
 

Macros

#define BFA_MEM_PORT_DMA(__bfa)   (&((__bfa)->modules.port.port_dma))
 
#define BFA_MEM_CEE_DMA(__bfa)   (&((__bfa)->modules.cee.cee_dma))
 

Typedefs

typedef void(* bfa_port_stats_cbfn_t )(void *dev, bfa_status_t status)
 
typedef void(* bfa_port_endis_cbfn_t )(void *dev, bfa_status_t status)
 
typedef void(* bfa_cee_get_attr_cbfn_t )(void *dev, bfa_status_t status)
 
typedef void(* bfa_cee_get_stats_cbfn_t )(void *dev, bfa_status_t status)
 
typedef void(* bfa_cee_reset_stats_cbfn_t )(void *dev, bfa_status_t status)
 

Functions

void bfa_port_attach (struct bfa_port_s *port, struct bfa_ioc_s *ioc, void *dev, struct bfa_trc_mod_s *trcmod)
 
void bfa_port_notify (void *arg, enum bfa_ioc_event_e event)
 
bfa_status_t bfa_port_get_stats (struct bfa_port_s *port, union bfa_port_stats_u *stats, bfa_port_stats_cbfn_t cbfn, void *cbarg)
 
bfa_status_t bfa_port_clear_stats (struct bfa_port_s *port, bfa_port_stats_cbfn_t cbfn, void *cbarg)
 
bfa_status_t bfa_port_enable (struct bfa_port_s *port, bfa_port_endis_cbfn_t cbfn, void *cbarg)
 
bfa_status_t bfa_port_disable (struct bfa_port_s *port, bfa_port_endis_cbfn_t cbfn, void *cbarg)
 
u32 bfa_port_meminfo (void)
 
void bfa_port_mem_claim (struct bfa_port_s *port, u8 *dma_kva, u64 dma_pa)
 
void bfa_port_set_dportenabled (struct bfa_port_s *port, bfa_boolean_t enabled)
 
u32 bfa_cee_meminfo (void)
 
void bfa_cee_mem_claim (struct bfa_cee_s *cee, u8 *dma_kva, u64 dma_pa)
 
void bfa_cee_attach (struct bfa_cee_s *cee, struct bfa_ioc_s *ioc, void *dev)
 
bfa_status_t bfa_cee_get_attr (struct bfa_cee_s *cee, struct bfa_cee_attr_s *attr, bfa_cee_get_attr_cbfn_t cbfn, void *cbarg)
 
bfa_status_t bfa_cee_get_stats (struct bfa_cee_s *cee, struct bfa_cee_stats_s *stats, bfa_cee_get_stats_cbfn_t cbfn, void *cbarg)
 
bfa_status_t bfa_cee_reset_stats (struct bfa_cee_s *cee, bfa_cee_reset_stats_cbfn_t cbfn, void *cbarg)
 

Macro Definition Documentation

#define BFA_MEM_CEE_DMA (   __bfa)    (&((__bfa)->modules.cee.cee_dma))

Definition at line 111 of file bfa_port.h.

#define BFA_MEM_PORT_DMA (   __bfa)    (&((__bfa)->modules.port.port_dma))

Definition at line 52 of file bfa_port.h.

Typedef Documentation

typedef void(* bfa_cee_get_attr_cbfn_t)(void *dev, bfa_status_t status)

Definition at line 76 of file bfa_port.h.

typedef void(* bfa_cee_get_stats_cbfn_t)(void *dev, bfa_status_t status)

Definition at line 77 of file bfa_port.h.

typedef void(* bfa_cee_reset_stats_cbfn_t)(void *dev, bfa_status_t status)

Definition at line 78 of file bfa_port.h.

typedef void(* bfa_port_endis_cbfn_t)(void *dev, bfa_status_t status)

Definition at line 26 of file bfa_port.h.

typedef void(* bfa_port_stats_cbfn_t)(void *dev, bfa_status_t status)

Definition at line 25 of file bfa_port.h.

Function Documentation

void bfa_cee_attach ( struct bfa_cee_s cee,
struct bfa_ioc_s ioc,
void dev 
)

Definition at line 869 of file bfa_port.c.

bfa_status_t bfa_cee_get_attr ( struct bfa_cee_s cee,
struct bfa_cee_attr_s attr,
bfa_cee_get_attr_cbfn_t  cbfn,
void cbarg 
)

Definition at line 661 of file bfa_port.c.

bfa_status_t bfa_cee_get_stats ( struct bfa_cee_s cee,
struct bfa_cee_stats_s stats,
bfa_cee_get_stats_cbfn_t  cbfn,
void cbarg 
)

Definition at line 701 of file bfa_port.c.

void bfa_cee_mem_claim ( struct bfa_cee_s cee,
u8 dma_kva,
u64  dma_pa 
)

Definition at line 636 of file bfa_port.c.

u32 bfa_cee_meminfo ( void  )

Definition at line 618 of file bfa_port.c.

bfa_status_t bfa_cee_reset_stats ( struct bfa_cee_s cee,
bfa_cee_reset_stats_cbfn_t  cbfn,
void cbarg 
)

Definition at line 740 of file bfa_port.c.

void bfa_port_attach ( struct bfa_port_s port,
struct bfa_ioc_s ioc,
void dev,
struct bfa_trc_mod_s trcmod 
)

Definition at line 470 of file bfa_port.c.

bfa_status_t bfa_port_clear_stats ( struct bfa_port_s port,
bfa_port_stats_cbfn_t  cbfn,
void cbarg 
)

Definition at line 383 of file bfa_port.c.

bfa_status_t bfa_port_disable ( struct bfa_port_s port,
bfa_port_endis_cbfn_t  cbfn,
void cbarg 
)

Definition at line 288 of file bfa_port.c.

bfa_status_t bfa_port_enable ( struct bfa_port_s port,
bfa_port_endis_cbfn_t  cbfn,
void cbarg 
)

Definition at line 232 of file bfa_port.c.

bfa_status_t bfa_port_get_stats ( struct bfa_port_s port,
union bfa_port_stats_u stats,
bfa_port_stats_cbfn_t  cbfn,
void cbarg 
)

Definition at line 344 of file bfa_port.c.

void bfa_port_mem_claim ( struct bfa_port_s port,
u8 dma_kva,
u64  dma_pa 
)

Definition at line 216 of file bfa_port.c.

u32 bfa_port_meminfo ( void  )

Definition at line 200 of file bfa_port.c.

void bfa_port_notify ( void arg,
enum bfa_ioc_event_e  event 
)

Definition at line 422 of file bfa_port.c.

void bfa_port_set_dportenabled ( struct bfa_port_s port,
bfa_boolean_t  enabled 
)

Definition at line 512 of file bfa_port.c.