From owner-freebsd-hackers Thu Sep 19 07:13:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA25805 for hackers-outgoing; Thu, 19 Sep 1996 07:13:08 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA25756 for ; Thu, 19 Sep 1996 07:13:00 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id AAA11630; Fri, 20 Sep 1996 00:08:58 +1000 Date: Fri, 20 Sep 1996 00:08:58 +1000 From: Bruce Evans Message-Id: <199609191408.AAA11630@godzilla.zeta.org.au> To: erich@lodgenet.com, hasty@rah.star-gate.com Subject: Re: FreeBSD smc program to set smc card? Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >ftp://cesdis1.gsfc.nasa.gov/pub/linux/setup/ >ftp://sunsite.unc.edu/system/Network/management/ewrk3tools-0.20.tar.gz >wdsetup-0.6a.tar.gz is the smc setup program. > >the following sed script does most of the work to get 'em to compile, >dunno if they run though. I'll try to test the ones I've got hardware >for. > >sed -e 's:ioperm([^)]*):open("/dev/io", O_RDWR):' \ > -e -e 's,asm/io.h,machine/cpufunc.h,' It probably won't work. The args to outb() are reversed (wrong :-) in Linux. Bruce