Nicolas Souchu writes:
 > Gasp! This is part of my fault. I shouldn't have left this old style
 > driver in the tree :( You should have contacted me, I would have adviced
 > you.
 > 
 > Takanori is right, you should look at intpm to get info about how
 > to cleanly newbusify your driver. This is what I'm currently doing
 > for alpm ;)
 > 
 > By the way, is someone working on the VIA SMBus support? Or do I start it?
 > 

FWIW, I've just newbus'ified the alpm driver.  See
http://people.freebsd.org/~gallatin/alpm.diff

Somebody with an x86 AMD should probably test it.    This seems to
"sorta" work on my API UP1000 (which is an alpha).  Eg:

FreeBSD 5.0-CURRENT #23: Thu Dec 28 11:24:33 EST 2000
    [EMAIL PROTECTED]:/.amd_mnt/muffin/export/ari_scratch2/gallatin/c
urrent/sys/compile/UP1000
UP1000
API UP1000 598 MHz, 598MHz
8192 byte page size, 1 processor.
CPU: major=11 minor=8
 extensions=0x307<BWX,FIX,CIX,MVI,PRECISE>
OSF PAL rev: 0x100010002013e
<...>
alpm0: <AcerLabs M15x3 Power Management Unit> port 0x1040-0x105f,0x1000-0x103f at 
device 17.0 on pci0
smbus0: <System Management Bus> on alsmb0
smb0: <SMBus general purpose I/O> on smbus0
<...>
# ./smb_detect
58 found.
74 found.
78 found.
90 found.
a0 found.
a8 found.

If I beat on lm.c from
http://www.planet.sci.kobe-u.ac.jp/~takawata/smbus/examples/lm.c
enough and use 0x90 as cmd.slave, I can get the CPU temp of 41 C.
This is the same as firmware gives me, which is encouraging.

As you can probably tell, I don't know enough about smb to fight my
way out of a wet paper bag.  Is there an SMB savy person out there
who can take me by the hand and help me figure out where the fan
speed and voltage is lurking and how to read it?

Cheers,

Drew

------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer  http://www.cs.duke.edu/~gallatin
Duke University                         Email: [EMAIL PROTECTED]
Department of Computer Science          Phone: (919) 660-6590







To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to