From owner-freebsd-hackers Mon Dec 4 15:23:47 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA10706 for hackers-outgoing; Mon, 4 Dec 1995 15:23:47 -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 PAA10695 for ; Mon, 4 Dec 1995 15:23:40 -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 RAA03059; Mon, 4 Dec 1995 17:23:46 -0600 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.6.12/8.6.12) with SMTP id RAA04513; Mon, 4 Dec 1995 17:54:59 -0600 Message-Id: <199512042354.RAA04513@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6.2 7/18/95 To: Archie Cobbs cc: julian@ref.tfs.com (Julian Elischer), erich@lodgenet.com, hackers@FreeBSD.ORG Subject: Re: ethernet card configuration programs In-reply-to: Your message of "Sat, 02 Dec 1995 16:06:41 PST." <199512030006.QAA02784@bubba.tribe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 Dec 1995 17:54:59 -0600 From: "Eric L. Hernes" Sender: owner-hackers@FreeBSD.ORG Precedence: bulk Archie Cobbs writes: > >Well, I tried this and... it seems to work! That is, it works with >"atlantic.c" but not with "ne2k.c", because ne2k.c also uses "outb_p" >and "inb_p", which this command has something to do with, I think: from the linux asm/*.h directory it looks like outb_p() and inb_p() are outb() and inb() with some type of bounds checking. you should be able to use outb() and inb(). > > /* The following is needed for SLOW_DOWN_IO. */ > if (ioperm(0x80, 1, 1)) { > perror("io-perm"); > return 1; > } > from the linux ioperm man page, this looks like it sets the permissons on one byte of io-address space starting at 0x80 to `1'. I'd guess that it allows access access to io-port 0x80. We don't have that fine a grain of control over access in FreeBSD, just opening "/dev/io" lets you run hog-wild in the io-space. I think that io-port 0x80 is the DMA page registers, does that make sense? >Thanks for the help! >-Archie > >______________________________________________________________________________ >_ >Archie L. Cobbs, archie@tribe.com * Tribe Computer Works http://www.tribe.co >m eric. -- erich@lodgenet.com erich@rrnet.com