Skip to content

Commit

Permalink
driver: patched igc for opensuse 15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-burger committed Nov 27, 2024
1 parent 4bdf366 commit 0c3f54b
Show file tree
Hide file tree
Showing 8 changed files with 1,644 additions and 237 deletions.
1 change: 1 addition & 0 deletions linux/drivers/opensuse/15.5/5.14.21/intel/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
obj-m += igb/
obj-m += igc/
2 changes: 0 additions & 2 deletions linux/drivers/opensuse/15.5/5.14.21/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ module_param_array(ethercat_mac_addr, charp, &ethercat_mac_addr_count, 0660);
MODULE_PARM_DESC(ethercat_mac_addr, "List of MAC addresses to use as EtherCAT device");

static unsigned int ethercat_polling;
module_param(ethercat_polling, uint, 0);
MODULE_PARM_DESC(ethercat_polling, "Set interface to polling mode (no interrupt) for EtherCAT case");

static pci_ers_result_t igb_io_error_detected(struct pci_dev *,
pci_channel_state_t);
Expand Down
7 changes: 5 additions & 2 deletions linux/drivers/opensuse/15.5/5.14.21/intel/igc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
# Intel(R) I225-LM/I225-V 2.5G Ethernet Controller
#

obj-$(CONFIG_IGC) += igc.o
obj-m += igc-ethercat.o

igc-objs := igc_main.o igc_mac.o igc_i225.o igc_base.o igc_nvm.o igc_phy.o \
igc-ethercat-objs := igc_main.o igc_mac.o igc_i225.o igc_base.o igc_nvm.o igc_phy.o \
igc_diag.o igc_ethtool.o igc_ptp.o igc_dump.o igc_tsn.o igc_xdp.o

EXTRA_CFLAGS=-I$(src)/../../../../../../
KBUILD_EXTRA_SYMBOLS=$(src)/../../../../../../Module.symvers
6 changes: 6 additions & 0 deletions linux/drivers/opensuse/15.5/5.14.21/intel/igc/igc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

#include "igc_hw.h"

#include "ethercat_device.h"
#include "ethercat_device_ioctl.h"

void igc_ethtool_set_ops(struct net_device *);

/* Transmit and receive queues */
Expand Down Expand Up @@ -255,6 +258,9 @@ struct igc_adapter {
struct timespec64 start;
struct timespec64 period;
} perout[IGC_N_PEROUT];

bool is_ecat;
struct ethercat_device *ecat_dev;
};

void igc_up(struct igc_adapter *adapter);
Expand Down
Loading

0 comments on commit 0c3f54b

Please sign in to comment.