Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 1998 12:00:00 -0800 (PST)
From:      Steve Price <sprice@hiwaay.net>
To:        freebsd-bugs
Subject:   Re: docs/5614: Typos in ifconfig(8) and ep(4) man pages
Message-ID:  <199802012000.MAA24222@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/5614; it has been noted by GNATS.

From: Steve Price <sprice@hiwaay.net>
To: Dag-Erling Coidan Smørgrav <dag-erli@ifi.uio.no>, 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 <sprice@hiwaay.net> 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"



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