Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Feb 1999 00:53:04 +0000
From:      Donn Miller <dmm125@bellatlantic.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Systems programming for FreeBSD
Message-ID:  <36C8C170.4AA85CA@bellatlantic.net>

next in thread | raw e-mail | index | archive | help
I'm looking for some info on how to use functions like inb() and outb()
to do systems-level programming on FreeBSD.

1.)  I need to know the FreeBSD equiv. of the Linux function ioperm().
I would think you just use open() on /dev/pio or /dev/io with the
appropriate permissions.

2.)  what include files do I need to use to use inb() and outb()?  In
Linux it's <asm/io.h>

Is using ports my only/best option for doing systems-level programming
for writing drivers for video cards, or should I use assembly?

There's a Linux howto on systems programming, maybe FreeBSD is similar
in that respect. so I can just use the Linux howto for FreeBSD.  What
are ports anyway, is it like you're writing to a special part of memory?

Thanks

Donn


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36C8C170.4AA85CA>