Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Apr 1996 15:32:48 -0700
From:      David Greenman <davidg@Root.COM>
To:        "Brett Glass" <Brett_Glass@ccgate.infoworld.com>
Cc:        freebsd-hardware@freebsd.org
Subject:   Re: Artisoft AE-3 Ethernet card: How to use large buffer? 
Message-ID:  <199604092232.PAA05636@Root.COM>
In-Reply-To: Your message of "Tue, 09 Apr 1996 09:34:37 PST." <9603098290.AA829071865@ccgate.infoworld.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
   See if this works. Don't forget to add "iosiz 65536" to your ed0 line in
your config file. See "man 4 ed" for how/where to put it in. ...or use
"iosiz ed0 65536" in 'userconfig' (boot -c).

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project

Index: if_ed.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/isa/if_ed.c,v
retrieving revision 1.73.4.5
diff -c -r1.73.4.5 if_ed.c
*** if_ed.c	1996/03/31 15:55:01	1.73.4.5
--- if_ed.c	1996/04/09 22:26:32
***************
*** 1066,1085 ****
  		sc->kdc.kdc_description = "Ethernet adapter: NE1000";
  	}
  
! 	/* 8k of memory plus an additional 8k if 16bit */
! 	memsize = 8192 + sc->isa16bit * 8192;
! 
! #if 0	/* probably not useful - NE boards only come two ways */
! 	/* allow kernel config file overrides */
! 	if (isa_dev->id_msize)
  		memsize = isa_dev->id_msize;
! #endif
  
  	sc->mem_size = memsize;
  
! 	/* NIC memory doesn't start at zero on an NE board */
! 	/* The start address is tied to the bus width */
! 	sc->mem_start = (char *) 8192 + sc->isa16bit * 8192;
  	sc->mem_end = sc->mem_start + memsize;
  	sc->tx_page_start = memsize / ED_PAGE_SIZE;
  
--- 1066,1095 ----
  		sc->kdc.kdc_description = "Ethernet adapter: NE1000";
  	}
  
! 	/*
! 	 * Allow kernel config file overrides. NE boards only come two
! 	 * ways (8bit=8K/16bit=16K), but some clones have 64K.
! 	 * XXX ignore the config override if <= 16K for backward
! 	 * (configuration) compatibilty.
! 	 */
! 	if (isa_dev->id_msize > 16384)
  		memsize = isa_dev->id_msize;
! 	else
! 		memsize = 8192 + sc->isa16bit * 8192;
  
  	sc->mem_size = memsize;
  
! 	/*
! 	 * NIC memory doesn't start at zero on an NE board;
! 	 * the start address is tied to the bus width.
! 	 * For clones with >16K of RAM, assume that the memory
! 	 * starts at 0.
! 	 */
! 	if (memsize <= 16384)
! 		sc->mem_start = (char *) 8192 + sc->isa16bit * 8192;
! 	else
! 		sc->mem_start = 0;
! 
  	sc->mem_end = sc->mem_start + memsize;
  	sc->tx_page_start = memsize / ED_PAGE_SIZE;
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604092232.PAA05636>