-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds the basic defines and structures needed by the PF for operation. With this it is possible to bring up the interface, but without being able to configure any of the filters on the interface itself. Add skeleton for a function pointers. Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
- Loading branch information
Sasha Neftin
authored and
Jeff Kirsher
committed
Oct 17, 2018
1 parent
d89f884
commit 146740f
Showing
9 changed files
with
442 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
|
||
obj-$(CONFIG_IGC) += igc.o | ||
|
||
igc-objs := igc_main.o | ||
igc-objs := igc_main.o igc_mac.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright (c) 2018 Intel Corporation */ | ||
|
||
#ifndef _IGC_DEFINES_H_ | ||
#define _IGC_DEFINES_H_ | ||
|
||
/* PCI Bus Info */ | ||
#define PCIE_DEVICE_CONTROL2 0x28 | ||
#define PCIE_DEVICE_CONTROL2_16ms 0x0005 | ||
|
||
/* Error Codes */ | ||
#define IGC_SUCCESS 0 | ||
#define IGC_ERR_NVM 1 | ||
#define IGC_ERR_PHY 2 | ||
#define IGC_ERR_CONFIG 3 | ||
#define IGC_ERR_PARAM 4 | ||
#define IGC_ERR_MAC_INIT 5 | ||
#define IGC_ERR_RESET 9 | ||
|
||
/* Device Status */ | ||
#define IGC_STATUS_FD 0x00000001 /* Full duplex.0=half,1=full */ | ||
#define IGC_STATUS_LU 0x00000002 /* Link up.0=no,1=link */ | ||
#define IGC_STATUS_FUNC_MASK 0x0000000C /* PCI Function Mask */ | ||
#define IGC_STATUS_FUNC_SHIFT 2 | ||
#define IGC_STATUS_FUNC_1 0x00000004 /* Function 1 */ | ||
#define IGC_STATUS_TXOFF 0x00000010 /* transmission paused */ | ||
#define IGC_STATUS_SPEED_100 0x00000040 /* Speed 100Mb/s */ | ||
#define IGC_STATUS_SPEED_1000 0x00000080 /* Speed 1000Mb/s */ | ||
|
||
#endif /* _IGC_DEFINES_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright (c) 2018 Intel Corporation */ | ||
|
||
#ifndef _IGC_I225_H_ | ||
#define _IGC_I225_H_ | ||
|
||
s32 igc_acquire_swfw_sync_i225(struct igc_hw *hw, u16 mask); | ||
void igc_release_swfw_sync_i225(struct igc_hw *hw, u16 mask); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* Copyright (c) 2018 Intel Corporation */ | ||
|
||
#include <linux/pci.h> | ||
#include "igc_hw.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright (c) 2018 Intel Corporation */ | ||
|
||
#ifndef _IGC_MAC_H_ | ||
#define _IGC_MAC_H_ | ||
|
||
#ifndef IGC_REMOVED | ||
#define IGC_REMOVED(a) (0) | ||
#endif /* IGC_REMOVED */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.