blob: 1a1776a2a5a136b3bbc8fded64870815b428e800 [file] [log] [blame]
Anirudh Venkataramanan837f08f2018-03-20 07:58:05 -07001/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (c) 2018, Intel Corporation. */
3
4#ifndef _ICE_H_
5#define _ICE_H_
6
7#include <linux/types.h>
8#include <linux/errno.h>
9#include <linux/kernel.h>
10#include <linux/module.h>
11#include <linux/netdevice.h>
12#include <linux/compiler.h>
Anirudh Venkataramanandc49c772018-03-20 07:58:09 -070013#include <linux/etherdevice.h>
Anirudh Venkataramanan837f08f2018-03-20 07:58:05 -070014#include <linux/pci.h>
15#include <linux/aer.h>
Anirudh Venkataramanan7ec59ee2018-03-20 07:58:06 -070016#include <linux/delay.h>
Anirudh Venkataramanan837f08f2018-03-20 07:58:05 -070017#include <linux/bitmap.h>
18#include "ice_devids.h"
19#include "ice_type.h"
Anirudh Venkataramanan9c203462018-03-20 07:58:08 -070020#include "ice_switch.h"
Anirudh Venkataramananf31e4b62018-03-20 07:58:07 -070021#include "ice_common.h"
Anirudh Venkataramanan9c203462018-03-20 07:58:08 -070022#include "ice_sched.h"
Anirudh Venkataramanan837f08f2018-03-20 07:58:05 -070023
24#define ICE_BAR0 0
Anirudh Venkataramananf31e4b62018-03-20 07:58:07 -070025#define ICE_AQ_LEN 64
Anirudh Venkataramanan837f08f2018-03-20 07:58:05 -070026
27#define ICE_DFLT_NETIF_M (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
28
29enum ice_state {
30 __ICE_DOWN,
31 __ICE_STATE_NBITS /* must be last */
32};
33
34struct ice_pf {
35 struct pci_dev *pdev;
36 DECLARE_BITMAP(state, __ICE_STATE_NBITS);
37 u32 msg_enable;
38 struct ice_hw hw;
39};
40#endif /* _ICE_H_ */