Date: Tue, 10 Jul 2001 22:50:12 -0700 From: W Gerald Hicks <gehicks@pacbell.net> To: HOT <redkid@hotmail.com> Cc: questions@freebsd.org Subject: Re: Could you tell me how to do that !! (About Input/output) Message-ID: <3B4BE914.8F1AB06F@pacbell.net> References: <DAV73h4t0Q2o87OskAS00005afe@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B4BE914.8F1AB06F>