ice.h 828 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2018, Intel Corporation. */

#ifndef _ICE_H_
#define _ICE_H_

#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/compiler.h>
#include <linux/pci.h>
#include <linux/aer.h>
15
#include <linux/delay.h>
16 17 18
#include <linux/bitmap.h>
#include "ice_devids.h"
#include "ice_type.h"
19
#include "ice_switch.h"
20
#include "ice_common.h"
21
#include "ice_sched.h"
22 23

#define ICE_BAR0		0
24
#define ICE_AQ_LEN		64
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

#define ICE_DFLT_NETIF_M (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)

enum ice_state {
	__ICE_DOWN,
	__ICE_STATE_NBITS		/* must be last */
};

struct ice_pf {
	struct pci_dev *pdev;
	DECLARE_BITMAP(state, __ICE_STATE_NBITS);
	u32 msg_enable;
	struct ice_hw hw;
};
#endif /* _ICE_H_ */