Commit 2b878abb authored by Andrey Panin's avatar Andrey Panin Committed by Jeff Garzik

[netdrvr eepro100] add PIO config option

this trivial patch adds EEPRO100_PIO config option, which forces eepro100.c
driver to use pio instead of mmio. This option is necessary to support
onboard i82557 on sgi visual workstation.
parent 00b1df41
...@@ -1359,6 +1359,17 @@ config EEPRO100 ...@@ -1359,6 +1359,17 @@ config EEPRO100
a module, say M here and read <file:Documentation/modules.txt> as a module, say M here and read <file:Documentation/modules.txt> as
well as <file:Documentation/networking/net-modules.txt>. well as <file:Documentation/networking/net-modules.txt>.
config EEPRO100_PIO
bool "Use PIO instead of MMIO" if !X86_VISWS
depends on EEPRO100
default y if X86_VISWS
help
This instructs the driver to use programmed I/O ports (PIO) instead
of PCI shared memory (MMIO). This can possibly solve some problems
in case your mainboard has memory consistency issues. If unsure,
say N.
config E100 config E100
tristate "EtherExpressPro/100 support (e100, Alternate Intel driver)" tristate "EtherExpressPro/100 support (e100, Alternate Intel driver)"
depends on NET_PCI && PCI depends on NET_PCI && PCI
......
...@@ -120,6 +120,11 @@ static int options[] = {-1, -1, -1, -1, -1, -1, -1, -1}; ...@@ -120,6 +120,11 @@ static int options[] = {-1, -1, -1, -1, -1, -1, -1, -1};
#include <linux/ethtool.h> #include <linux/ethtool.h>
#include <linux/mii.h> #include <linux/mii.h>
/* enable PIO instead of MMIO, if CONFIG_EEPRO100_PIO is selected */
#ifdef CONFIG_EEPRO100_PIO
#define USE_IO 1
#endif
static int debug = -1; static int debug = -1;
#define DEBUG_DEFAULT (NETIF_MSG_DRV | \ #define DEBUG_DEFAULT (NETIF_MSG_DRV | \
NETIF_MSG_HW | \ NETIF_MSG_HW | \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment