Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2001 11:44:20 -0400 (EDT)
From:      Kenneth Wayne Culver <culverk@wam.umd.edu>
To:        Juha.Nurmela@quicknet.inet.fi
Cc:        freebsd-current@freebsd.org
Subject:   Re: driver writing newbie
Message-ID:  <Pine.GSO.4.21.0107251140530.10112-100000@rac2.wam.umd.edu>
In-Reply-To: <Pine.BSF.4.10.10107251645540.383-100000@lpr-325.cable.inet.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, I could do that, but I'd rather write a complete driver with all the
regular interfaces... (open, close, ioctl, and a specific major/minor in
the kernel, I'm going to add other chips to this driver eventually) The
way you are suggesting just opens /dev/io and uses inb and outb to do some
hacking around I believe.

Ken
On Wed, 25 Jul 2001 Juha.Nurmela@quicknet.inet.fi wrote:

> 
> 
> Hello Kenneth,
> 
> shouldn't you use 0x70 for the mapping register of HWMon function ?
> 
> With ABit KT7A (686B)
> 
> # pciconf -l
> hostb1@pci0:7:4:
> class=0x060000 card=0x00000000 chip=0x30571106 rev=0x40 hdr=0x00
> 
> # pciconf -r pci0:7:4 0x70
> 0x00006001 
> 
> and 0x6000 can be used as an i/o-base by a dirty hack to directly inb()
> the monitor data. I stripped it from the NetBSD driver (I think).
> 
> 
> Juha
> 
> 


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0107251140530.10112-100000>