mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
52fa7bf9ea
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license gpl version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 66 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190529141901.606369721@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
59 lines
1.7 KiB
C
59 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Linux network driver for QLogic BR-series Converged Network Adapter.
|
|
*/
|
|
/*
|
|
* Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
|
|
* Copyright (c) 2014-2015 QLogic Corporation
|
|
* All rights reserved
|
|
* www.qlogic.com
|
|
*/
|
|
|
|
#ifndef __BFA_CEE_H__
|
|
#define __BFA_CEE_H__
|
|
|
|
#include "bfa_defs_cna.h"
|
|
#include "bfa_ioc.h"
|
|
|
|
typedef void (*bfa_cee_get_attr_cbfn_t) (void *dev, enum bfa_status status);
|
|
typedef void (*bfa_cee_get_stats_cbfn_t) (void *dev, enum bfa_status status);
|
|
typedef void (*bfa_cee_reset_stats_cbfn_t) (void *dev, enum bfa_status status);
|
|
|
|
struct bfa_cee_cbfn {
|
|
bfa_cee_get_attr_cbfn_t get_attr_cbfn;
|
|
void *get_attr_cbarg;
|
|
bfa_cee_get_stats_cbfn_t get_stats_cbfn;
|
|
void *get_stats_cbarg;
|
|
bfa_cee_reset_stats_cbfn_t reset_stats_cbfn;
|
|
void *reset_stats_cbarg;
|
|
};
|
|
|
|
struct bfa_cee {
|
|
void *dev;
|
|
bool get_attr_pending;
|
|
bool get_stats_pending;
|
|
bool reset_stats_pending;
|
|
enum bfa_status get_attr_status;
|
|
enum bfa_status get_stats_status;
|
|
enum bfa_status reset_stats_status;
|
|
struct bfa_cee_cbfn cbfn;
|
|
struct bfa_ioc_notify ioc_notify;
|
|
struct bfa_cee_attr *attr;
|
|
struct bfa_cee_stats *stats;
|
|
struct bfa_dma attr_dma;
|
|
struct bfa_dma stats_dma;
|
|
struct bfa_ioc *ioc;
|
|
struct bfa_mbox_cmd get_cfg_mb;
|
|
struct bfa_mbox_cmd get_stats_mb;
|
|
struct bfa_mbox_cmd reset_stats_mb;
|
|
};
|
|
|
|
u32 bfa_nw_cee_meminfo(void);
|
|
void bfa_nw_cee_mem_claim(struct bfa_cee *cee, u8 *dma_kva,
|
|
u64 dma_pa);
|
|
void bfa_nw_cee_attach(struct bfa_cee *cee, struct bfa_ioc *ioc, void *dev);
|
|
enum bfa_status bfa_nw_cee_get_attr(struct bfa_cee *cee,
|
|
struct bfa_cee_attr *attr,
|
|
bfa_cee_get_attr_cbfn_t cbfn, void *cbarg);
|
|
#endif /* __BFA_CEE_H__ */
|