*BSD News Article 22856


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!bigbang.astro.indiana.edu!pitts
From: pitts@bigbang.astro.indiana.edu (Jim Pitts)
Subject: Re: Looking for a routine.
Message-ID: <CFIG4G.3B3@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: bigbang.astro.indiana.edu
Organization: Indiana University Astrophysics, Bloomington, IN
References: <1993Oct23.022017.10698@serval.net.wsu.edu> <CFBzIw.6LI@usenet.ucs.indiana.edu> <MIKE.LONG.93Oct25184453@cthulhu.analog.com>
Date: Tue, 26 Oct 1993 15:24:16 GMT
Lines: 20

In article <MIKE.LONG.93Oct25184453@cthulhu.analog.com> Mike Long <Mike.Long@Analog.com> writes:
>In article <CFBzIw.6LI@usenet.ucs.indiana.edu> pitts@bigbang.astro.indiana.edu (Jim Pitts) writes:
>
>>I in my quest to get my Diamond SpeedStar 24 graphics card working I am looking
>>at some code from Linux.  This code uses a routine called ioperm like:
>>
>>void perm_ports(int perm)
>>{
>>  ioperm(0x3c2, 1, perm);
>>  ioperm(0x3cc, 1, perm);
>
>The only way I can think of to reproduce this program in NetBSD is to call
>ioctl() to gain exclusive access to the serial port (tty) in question, and then
>use the /dev/mem interface to access the ports.  I'm still trying to figure out

My solution was to use ioctl() to set the ports permission and everything
worked fine from there!  I am now runinng a Diamond SpeedStar 24 at
full resolution and have full use of the programmable clock.

				Jim