Date: Thu, 29 Jan 1998 17:41:02 +1030 From: Mike Smith <mike@smith.net.au> To: "Anuradha Chandramouli" <anusw@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Direct access to I/O registers in FreeBSD ? Message-ID: <199801290711.RAA01997@word.smith.net.au> In-Reply-To: Your message of "Mon, 26 Jan 1998 15:22:53 PST." <19980126232432.21219.qmail@hotmail.com>
index | next in thread | previous in thread | raw e-mail
> Hi, > > Does FreeBSD offer direct access to I/O registers > and absolute main memory addresses for user processes > with root privileges. Iam looking for an easy way to gain > access to memory using inb and outb. Is this possible > or do I need to write a device driver in FreeBSD. Direct access to registers is available; see the io(4) manpage. You can access parts of physical memory via /dev/mem; you are probably trying to access an ISA adapter, so you should be OK using mmap() to map portions of /dev/mem into your application's space. You don't use inb/outb to "gain access to memory". Depending on your other requirements, you may still need to write a device driver. Without knowing those requirements, it's not possible to advise you usefully. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801290711.RAA01997>
