summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h
blob: 45dc1fab4608b147963f42a2e171ebbefcdb83b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * QLogic qlcnic NIC Driver
 * Copyright (c)  2009-2013 QLogic Corporation
 *
 * See LICENSE.qlcnic for copyright and licensing details.
 */

#ifndef __QLCNIC_DCBX_H
#define __QLCNIC_DCBX_H

void qlcnic_clear_dcb_ops(struct qlcnic_adapter *);

#ifdef CONFIG_QLCNIC_DCB
int __qlcnic_register_dcb(struct qlcnic_adapter *);
#else
static inline int __qlcnic_register_dcb(struct qlcnic_adapter *adapter)
{ return 0; }
#endif

struct qlcnic_dcb_ops {
	void (*free) (struct qlcnic_adapter *);
	int (*attach) (struct qlcnic_adapter *);
	int (*query_hw_capability) (struct qlcnic_adapter *, char *);
	int (*get_hw_capability) (struct qlcnic_adapter *);
	void (*get_info) (struct qlcnic_adapter *);
};

struct qlcnic_dcb {
	struct qlcnic_dcb_ops	*ops;
	struct qlcnic_dcb_cfg	*cfg;
};
#endif