Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!pipex!sunic!EU.net!sun4nl!tuegate.tue.nl!news.win.tue.nl!wzv.win.tue.nl!gvr.win.tue.nl!guido From: guido@gvr.win.tue.nl (Guido van Rooij) Newsgroups: comp.os.386bsd.questions Subject: Re: [FreeBSD-1.0] How to access io-ports ? Date: 1 Dec 1993 20:58:45 GMT Organization: Eindhoven University of Technology, The Netherlands Lines: 39 Message-ID: <2dj0i5$1er@wzv.win.tue.nl> References: <CHD7AB.Bwy@hermes.hrz.uni-bielefeld.de> NNTP-Posting-Host: gvr.win.tue.nl uphya001@odie.uni-bielefeld.de (Lars Koeller ) writes: >--- >Hello! >I want to access some AD-, DA-cards from FreeBSD. To implement this I must >have access to the io-ports via in and out. >What is the best way to solve this problem. In the case I have to implement >ioctls in the kernel, who is able to give me a small and simple example >program? Some ppl have only 80 columns on their terminal. Next time please use your return-key. (I inserted some to make it readable) >Thanks for help. Bye > Lars I dont really get your question...If you only want to do some basic io via inb() and outb() in FreeBSD, you should just open /dev/io. If that succeeds you have permission to do io to *all* ports. This is a kludge and you should be careful. /dev/io is a major 2 minor 14 char device. If you want to write a complete driver for it then you have to do *much* more. See all drivers already present in e.g. /sys/i386/isa. >------------------------------------------------------------------------------ >Lars Koeller E-Mail: uphya001@odie.Uni-Bielefeld.de >Universitaet Bielefeld (Germany) uphya001@dave.HRZ.Uni-Bielefeld.de >Fakultaet fuer Physik / D0-231 Phone: +49 521-106-5375 >Universitaetsstr. 25 Fax: +49 521-106-6002 >33615 Bielefeld Telex: 932 362 -Guido -- Guido van Rooij | Internet: guido@gvr.win.tue.nl Bisschopsmolen 16 | Phone: ++31.40.461433 5612 DS Eindhoven | ((12+144+20)+3*sqrt(4))/7 The Netherlands | +(5*11)=9^2+0