From owner-freebsd-hackers Mon Feb 15 21:55:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA06317 for freebsd-hackers-outgoing; Mon, 15 Feb 1999 21:55:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp-out2.bellatlantic.net (smtp-out2.bellatlantic.net [199.45.39.157]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA06312 for ; Mon, 15 Feb 1999 21:55:22 -0800 (PST) (envelope-from dmm125@bellatlantic.net) Received: from bellatlantic.net (client201-122-22.bellatlantic.net [151.201.122.22]) by smtp-out2.bellatlantic.net (8.9.1/8.9.1) with ESMTP id AAA08893 for ; Tue, 16 Feb 1999 00:56:56 -0500 (EST) Message-ID: <36C8C170.4AA85CA@bellatlantic.net> Date: Tue, 16 Feb 1999 00:53:04 +0000 From: Donn Miller X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.bsd.freebsd.misc CC: hackers@FreeBSD.ORG Subject: Systems programming for FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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