net/e1000/base: remove duplicated codes
authorGuinan Sun <guinanx.sun@intel.com>
Mon, 6 Jul 2020 08:12:05 +0000 (08:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:27 +0000 (23:38 +0200)
commit44dddd14059f151f39f7e075b887decfc9a10f11
treeffda4472bb15fb57ff6b9c6330abe778000314d8
parentd53391f1fe2e0eba8818517fdf285f893d95dcc8
net/e1000/base: remove duplicated codes

Add two files base.c and base.h to reduce the redundancy
in the silicon family code.
Remove the code duplication from e1000_82575 files.
Clean family specific functions from base.
Fix up a stray and duplicate function declaration.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
12 files changed:
drivers/net/e1000/Makefile
drivers/net/e1000/base/e1000_82575.c
drivers/net/e1000/base/e1000_82575.h
drivers/net/e1000/base/e1000_api.h
drivers/net/e1000/base/e1000_base.c [new file with mode: 0644]
drivers/net/e1000/base/e1000_base.h [new file with mode: 0644]
drivers/net/e1000/base/e1000_defines.h
drivers/net/e1000/base/e1000_hw.h
drivers/net/e1000/base/e1000_i210.c
drivers/net/e1000/base/e1000_regs.h
drivers/net/e1000/base/meson.build
drivers/net/e1000/igb_rxtx.c