[677] in linux-net channel archive

home help back first fref pref prev next nref lref last post

patch for linux/drivers/net/Space.c

daemon@ATHENA.MIT.EDU (Bob_Tracy)
Fri Jul 14 08:36:28 1995

From: rct@gherkin.sa.wlk.com (Bob_Tracy)
To: linux-kernel@vger.rutgers.edu
Date: Thu, 13 Jul 1995 20:05:21 -0500 (CDT)
Cc: linux-net@vger.rutgers.edu
Reply-To: rct@gherkin.sa.wlk.com

I guess that auto-probing for Ethernet cards works for everyone
else reading these lists, or this would have been fixed already :-).
The 1.3.7 kernel patch set changed the "device" structure in
"linux/include/linux/netdevice.h" by moving the "tbusy" member
from between the "start" and "interrupt" members to between the
"base_addr" and "irq" members.  Unfortunately, this change was not
reflected in the declaration of "eth0_dev" in
"linux/drivers/net/Space.c", and my Ethernet card had not functioned
in any of the kernel releases 1.3.[7-9] because the IRQ wasn't being
autodetected correctly.

Here's a quick patch that you'll want to apply if you are defining
the ETH0_IRQ constant:

*** linux/drivers/net/Space.c~	Wed Jul 12 18:16:43 1995
--- linux/drivers/net/Space.c	Thu Jul 13 19:47:39 1995
***************
*** 219,225 ****
      "eth1", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth2_dev, ethif_probe };
  
  static struct device eth0_dev = {
!     "eth0", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, &eth1_dev, ethif_probe };
  
  #   undef NEXT_DEV
  #   define NEXT_DEV	(&eth0_dev)
--- 219,225 ----
      "eth1", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth2_dev, ethif_probe };
  
  static struct device eth0_dev = {
!     "eth0", 0, 0, 0, 0, ETH0_ADDR, 0, ETH0_IRQ, 0, 0, &eth1_dev, ethif_probe };
  
  #   undef NEXT_DEV
  #   define NEXT_DEV	(&eth0_dev)

-- 
Bob Tracy	Trident Data Systems	San Antonio, TX
rct@gherkin.wlk.com

home help back first fref pref prev next nref lref last post