Bug 19089

Summary: Patch: Add if_ed support to FreeBSD/Alpha
Product: Base System Reporter: alex <alex>
Component: alphaAssignee: alex <alex>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description alex 2000-06-07 14:30:02 UTC
With this patch we are able to use more high-quality cards from the NE2000
compatible range on FreeBSD/Alpha:

bash-2.04# uname -a ; ifconfig ed0 ; route get 192.168.0.1 ; ping -c 2 192.168.
0.1 
FreeBSD parca.cichlids.com 5.0-CURRENT FreeBSD 5.0-CURRENT #13: Wed Jun  7 15:04:33 CEST 2000     root@parca.cichlids.com:/usr/src/sys/compile/ALPINE.ed  alpha
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.0.16 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::200:b4ff:fe5e:fa71%ed0 prefixlen 64 scopeid 0x1 
        ether 00:00:b4:5e:fa:71 
   route to: neutron
destination: neutron
  interface: ed0
      flags: <UP,HOST,DONE,LLINFO,WASCLONED>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0      1500       794 
PING 192.168.0.1 (192.168.0.1): 48 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=0.741 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.854 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.741/0.797/0.854/0.057 ms
bash-2.04#
Comment 1 alex 2000-06-07 20:07:39 UTC
Remove that part, it's wrong:

> Index: dev/ed/if_edreg.h
> ===================================================================
> RCS file: /usr/home/ncvs/src/sys/dev/ed/if_edreg.h,v
> retrieving revision 1.27
> diff -u -r1.27 if_edreg.h
> --- dev/ed/if_edreg.h	1999/09/02 15:06:23	1.27
> +++ dev/ed/if_edreg.h	2000/06/07 13:14:53
> @@ -788,8 +788,13 @@
>  #define ED_WD_ROM_CHECKSUM_TOTAL	0xFF
>  #endif
>  
> +#ifdef __alpha__
> +#define ED_WD_NIC_OFFSET	0x00		/* I/O base offset to NIC */
> +#define ED_WD_ASIC_OFFSET	0x10		/* I/O base offset to ASIC */
> +#else
>  #define ED_WD_NIC_OFFSET	0x10		/* I/O base offset to NIC */
>  #define ED_WD_ASIC_OFFSET	0		/* I/O base offset to ASIC */
> +#endif
>  #define ED_WD_IO_PORTS		32		/* # of i/o addresses used */
>  
>  #define ED_WD_PAGE_OFFSET	0	/* page offset for NIC access to mem */

Alex

-- 
This is a FreeBSD advocacy ~/.sig.
Comment 2 wilko freebsd_committer freebsd_triage 2000-06-11 13:35:54 UTC
Responsible Changed
From-To: freebsd-alpha->alex

alex now has the necessary power to commit his own patches to if_ed*
Comment 3 alex freebsd_committer freebsd_triage 2000-08-18 14:18:23 UTC
State Changed
From-To: open->closed

ed driver has been newbussified and works on FreeBSD/Alpha 
as well now.