Anirudh Venkataramanan | 837f08f | 2018-03-20 07:58:05 -0700 | [diff] [blame] | 1 | /* 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 Venkataramanan | dc49c77 | 2018-03-20 07:58:09 -0700 | [diff] [blame^] | 13 | #include <linux/etherdevice.h> |
Anirudh Venkataramanan | 837f08f | 2018-03-20 07:58:05 -0700 | [diff] [blame] | 14 | #include <linux/pci.h> |
| 15 | #include <linux/aer.h> |
Anirudh Venkataramanan | 7ec59ee | 2018-03-20 07:58:06 -0700 | [diff] [blame] | 16 | #include <linux/delay.h> |
Anirudh Venkataramanan | 837f08f | 2018-03-20 07:58:05 -0700 | [diff] [blame] | 17 | #include <linux/bitmap.h> |
| 18 | #include "ice_devids.h" |
| 19 | #include "ice_type.h" |
Anirudh Venkataramanan | 9c20346 | 2018-03-20 07:58:08 -0700 | [diff] [blame] | 20 | #include "ice_switch.h" |
Anirudh Venkataramanan | f31e4b6 | 2018-03-20 07:58:07 -0700 | [diff] [blame] | 21 | #include "ice_common.h" |
Anirudh Venkataramanan | 9c20346 | 2018-03-20 07:58:08 -0700 | [diff] [blame] | 22 | #include "ice_sched.h" |
Anirudh Venkataramanan | 837f08f | 2018-03-20 07:58:05 -0700 | [diff] [blame] | 23 | |
| 24 | #define ICE_BAR0 0 |
Anirudh Venkataramanan | f31e4b6 | 2018-03-20 07:58:07 -0700 | [diff] [blame] | 25 | #define ICE_AQ_LEN 64 |
Anirudh Venkataramanan | 837f08f | 2018-03-20 07:58:05 -0700 | [diff] [blame] | 26 | |
| 27 | #define ICE_DFLT_NETIF_M (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK) |
| 28 | |
| 29 | enum ice_state { |
| 30 | __ICE_DOWN, |
| 31 | __ICE_STATE_NBITS /* must be last */ |
| 32 | }; |
| 33 | |
| 34 | struct 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_ */ |