Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA18806; Sat, 2 Dec 95 10:47:16 EST
Received: from freefall.FreeBSD.ORG by MIT.EDU with SMTP
	id AA17518; Sat, 2 Dec 95 10:46:13 EST
Received: from localhost (daemon@localhost)
          by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id GAA24119
          ; Sat, 2 Dec 1995 06:14:58 -0800
Received: (from root@localhost)
          by freefall.freebsd.org (8.6.12/8.6.6) id GAA23407
          for hackers-outgoing; Sat, 2 Dec 1995 06:10:22 -0800
Received: from spot.lodgenet.com (lodgenet.iw.net [204.157.148.88])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA23377
          for <hackers@FreeBSD.ORG>; Sat, 2 Dec 1995 06:10:11 -0800
Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by spot.lodgenet.com (8.6.12/8.6.12) with ESMTP id IAA20865; Sat, 2 Dec 1995 08:10:32 -0600
Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.6.12/8.6.12) with SMTP id IAA28918; Sat, 2 Dec 1995 08:34:28 -0600
Message-Id: <199512021434.IAA28918@jake.lodgenet.com>
X-Authentication-Warning: jake.lodgenet.com: Host localhost didn't use HELO protocol
To: Archie Cobbs <archie@tribe.com>
Cc: erich@lodgenet.com (Eric L. Hernes), hackers@freebsd.org,
        erich@lodgenet.com
Subject: Re: ethernet card configuration programs 
In-Reply-To: Your message of "Fri, 01 Dec 1995 22:05:59 PST."
             <199512020606.WAA07343@bubba.tribe.com> 
Date: Sat, 02 Dec 1995 08:34:27 -0600
From: "Eric L. Hernes" <erich@lodgenet.com>
Sender: owner-hackers@freebsd.org
Precedence: bulk

Archie Cobbs writes:
>
>Would it be possible for someone to port these to FreeBSD? This
>would be great because I always have to boot DOS to run the stupid
>config program for NE2000 compatible cards... for some reason the
>default card configuration and the default FreeBSD "ed1" configuration
>don't agree.

I'm planning to when I get a chance.
>
>I don't know what the equivalent/substitute for #include <asm/io.h>
>would be... but it looks like it shouldn't be too difficult
>since the programs are very short.

I believe tha asm/io.h under linux sets up the use of inb() and outb(),
undef freebsd, you include machine/cpu_func.h.  To get permissions
to do the outb's under linux you have to jump through some
hoops, but in freebsd, you just open /dev/io (but you've gotta
be root or suid root)

>
>-Archie
>
>______________________________________________________________________________
>_
>Archie L. Cobbs, archie@tribe.com  *  Tribe Computer Works http://www.tribe.co
>m
eric.
