From owner-freebsd-bugs Sun Feb 1 12:00:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24258 for freebsd-bugs-outgoing; Sun, 1 Feb 1998 12:00:02 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24222; Sun, 1 Feb 1998 12:00:00 -0800 (PST) (envelope-from gnats) Date: Sun, 1 Feb 1998 12:00:00 -0800 (PST) Message-Id: <199802012000.MAA24222@hub.freebsd.org> To: freebsd-bugs Cc: From: Steve Price Subject: Re: docs/5614: Typos in ifconfig(8) and ep(4) man pages Reply-To: Steve Price Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-bugs" The following reply was made to PR docs/5614; it has been noted by GNATS. From: Steve Price To: Dag-Erling Coidan Smørgrav , joerg@FreeBSD.ORG, gibbs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG Cc: Subject: Re: docs/5614: Typos in ifconfig(8) and ep(4) man pages Date: Sun, 01 Feb 1998 13:52:39 -0600 Dag-Erling Coidan Smørgrav wrote: > > Steve Price writes: > > IO address 0x110 is indeed correct. See a recent discussion > > in -hackers (IIRC), PR kern/4459, and the comments Joerg Wunsch > > added in revision 1.22 of if_epreg.h by way of Justin Gibbs manual > > on the 3c509. > > Ah, I see. elink.h defines ELINK_ID_PORT to 0x100, hence the confusion. Hmm... steve[/usr/src/sys]$ find . | xargs grep EP_ID_PORT ./i386/boot/netboot/3c509.c: int data, j, io_base, id_port = EP_ID_PORT; ./i386/boot/netboot/3c509.h:#define EP_ID_PORT 0x100 ./i386/isa/if_epreg.h:#define EP_ID_PORT 0x110 ./pc98/boot/netboot/3c509.c: int data, j, io_base, id_port = EP_ID_PORT; ./pc98/boot/netboot/3c509.h:#define EP_ID_PORT 0x100 ./pc98/boot/netboot/if_epreg.h:#define EP_ID_PORT 0x100 steve[/usr/src/sys]$ find . | xargs grep ELINK_ID_PORT ./i386/isa/elink.c: outb(ELINK_ID_PORT, ELINK_RESET); ./i386/isa/elink.c: outb(ELINK_ID_PORT, c); ./i386/isa/elink.h:#define ELINK_ID_PORT 0x71d0 ./i386/isa/elink.h:#define ELINK_ID_PORT 0x100 ./i386/isa/if_ep.c: int data, i, j, id_port = ELINK_ID_PORT; ^^^^^^^^^^^^^ This is why you experienced the problem. This should be EP_ID_PORT or ELINK_ID_PORT should be changed 0x110. Joerg? Justin? ./i386/isa/if_ie.c: outb(ELINK_ID_PORT, 0x00); ./i386/isa/if_ie.c: outb(ELINK_ID_PORT, 0xff); ./i386/isa/if_ie.c: outb(ELINK_ID_PORT, 0x00); ./i386/isa/if_ie.c: outb(ELINK_ID_PORT, 0x00); steve[/usr/src/sys]$ > But how do you explain the problems I experienced (namely, "ep0 not > found at 0x340" and "3c5x9 board(s) found at 0x220, 0x220, 0x220...") > which disappeared when I mapped my SB32 to 0x108 instead of 0x100? See above explanation. Steve > -- > * Finrod (INTJ) * Unix weenie * dag-erli@ifi.uio.no * cellular +47-92835919 * > RFC1123: "Be liberal in what you accept, and conservative in what you send"