1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Linux network driver for QLogic BR-series Converged Network Adapter.
6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
7 * Copyright (c) 2014-2015 QLogic Corporation
15 #include "bfa_defs_cna.h"
18 typedef void (*bfa_cee_get_attr_cbfn_t
) (void *dev
, enum bfa_status status
);
19 typedef void (*bfa_cee_get_stats_cbfn_t
) (void *dev
, enum bfa_status status
);
20 typedef void (*bfa_cee_reset_stats_cbfn_t
) (void *dev
, enum bfa_status status
);
23 bfa_cee_get_attr_cbfn_t get_attr_cbfn
;
25 bfa_cee_get_stats_cbfn_t get_stats_cbfn
;
26 void *get_stats_cbarg
;
27 bfa_cee_reset_stats_cbfn_t reset_stats_cbfn
;
28 void *reset_stats_cbarg
;
33 bool get_attr_pending
;
34 bool get_stats_pending
;
35 bool reset_stats_pending
;
36 enum bfa_status get_attr_status
;
37 enum bfa_status get_stats_status
;
38 enum bfa_status reset_stats_status
;
39 struct bfa_cee_cbfn cbfn
;
40 struct bfa_ioc_notify ioc_notify
;
41 struct bfa_cee_attr
*attr
;
42 struct bfa_cee_stats
*stats
;
43 struct bfa_dma attr_dma
;
44 struct bfa_dma stats_dma
;
46 struct bfa_mbox_cmd get_cfg_mb
;
47 struct bfa_mbox_cmd get_stats_mb
;
48 struct bfa_mbox_cmd reset_stats_mb
;
51 u32
bfa_nw_cee_meminfo(void);
52 void bfa_nw_cee_mem_claim(struct bfa_cee
*cee
, u8
*dma_kva
,
54 void bfa_nw_cee_attach(struct bfa_cee
*cee
, struct bfa_ioc
*ioc
, void *dev
);
55 enum bfa_status
bfa_nw_cee_get_attr(struct bfa_cee
*cee
,
56 struct bfa_cee_attr
*attr
,
57 bfa_cee_get_attr_cbfn_t cbfn
, void *cbarg
);
58 #endif /* __BFA_CEE_H__ */