blob: fbd8700f0b312cb673514e9b2fff7922de864ac6 [file] [log] [blame]
Yuval Mintz25c089d2015-10-26 11:02:26 +02001/* QLogic qed NIC Driver
2 * Copyright (c) 2015 QLogic Corporation
3 *
4 * This software is available under the terms of the GNU General Public License
5 * (GPL) Version 2, available from the file COPYING in the main directory of
6 * this source tree.
7 */
8
9#ifndef _QED_ETH_IF_H
10#define _QED_ETH_IF_H
11
12#include <linux/list.h>
13#include <linux/if_link.h>
14#include <linux/qed/eth_common.h>
15#include <linux/qed/qed_if.h>
16
17struct qed_dev_eth_info {
18 struct qed_dev_info common;
19
20 u8 num_queues;
21 u8 num_tc;
22
23 u8 port_mac[ETH_ALEN];
24 u8 num_vlan_filters;
25};
26
27struct qed_eth_ops {
28 const struct qed_common_ops *common;
29
30 int (*fill_dev_info)(struct qed_dev *cdev,
31 struct qed_dev_eth_info *info);
32
33};
34
35const struct qed_eth_ops *qed_get_eth_ops(u32 version);
36void qed_put_eth_ops(void);
37
38#endif