From owner-freebsd-hackers Sat Dec 2 06:10:22 1995 Return-Path: owner-hackers 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 ; 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 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" 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 >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.