From owner-freebsd-questions Tue Jul 10 22:50:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by hub.freebsd.org (Postfix) with ESMTP id 38E3237B407 for ; Tue, 10 Jul 2001 22:50:40 -0700 (PDT) (envelope-from gehicks@pacbell.net) Received: from pacbell.net ([64.172.24.59]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GGA00GHHO8EDA@mta6.snfc21.pbi.net> for questions@freebsd.org; Tue, 10 Jul 2001 22:50:39 -0700 (PDT) Date: Tue, 10 Jul 2001 22:50:12 -0700 From: W Gerald Hicks Subject: Re: Could you tell me how to do that !! (About Input/output) To: HOT Cc: questions@freebsd.org Message-id: <3B4BE914.8F1AB06F@pacbell.net> Organization: Cisco Systems, Inc. MIME-version: 1.0 X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.8 sun4u) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > HOT wrote: > > Hi I am Wei-Hsiang ! > Today I use Turbo C to control an ISA Interface in DOS!! > That function is outportb(address,data); > Now I want to do that in FreeBSD! > What's function I can use ? > Please tell me! thanks! > The traditional way to write Unix device drivers extends the kernel with a device driver to allow for more efficient integration with the system and enhanced portability. If you would rather write a userland task that works very similarly to your DOS program, the inb and outb functions are what you are looking for, used in conjunction with /dev/io /usr/include/machine/cpufunc.h man io Cheers, W Gerald Hicks gehicks@pacbell.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message