Date: Sat, 19 May 2007 09:38:43 -0700 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: rmgls@wanadoo.fr Cc: freebsd-multimedia@freebsd.org Subject: Re: direct I/O access Message-ID: <20070519163843.GE4602@funkthat.com> In-Reply-To: <20070519150125.5BEF4700008B@mwinf2313.orange.fr> References: <20070519150125.5BEF4700008B@mwinf2313.orange.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
rmgls@wanadoo.fr wrote this message on Sat, May 19, 2007 at 17:01 +0200: > i am trying to port my old assembler soft for Dos to FreeBSD. > i need to write and read directly to the midi and scsi device. > when i try something like this i receive a coredump on the outb line. > > SORRY, i am NOT nor a C nor a FreeBSD expert!!! > all i know is Assembly language! > > Can you enlight me please? Take a look at io(4)... FreeBSD restricts access to the hardware to ensure that the userland does not mess up the state that the kernel has established... In the Unix world, it is standard to write a kernel device driver that does the hardware access side of things, and then provide a device for the program use the hardware... This ensures that the hardware can be shared and conflicts do not arrise... Just make sure you don't load devices for the hardware that you plan to direectly access if you continue down that route... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070519163843.GE4602>