Subject: Re: envsys version 2 API
To: Nicolas Joly <njoly@pasteur.fr>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 04/20/2007 19:40:49
On Fri, 20 Apr 2007 19:37:43 +0200
Nicolas Joly <njoly@pasteur.fr> wrote:

> On Fri, Apr 20, 2007 at 06:26:23PM +0200, Juan RP wrote:
> > 
> > Hi, I want to implement envsys version 2 and I need to make the API
> > before starting to modify the existing code.
> > 
> > My current idea is to remove envsys_basic_info_t and just use
> > a single struct to set/get values for a specific device sensor:
> [...]
> > IMHO we need only two ioctls ENVSYS_GRANGE and ENVSYS_GETDATA (which uses
> > a struct plistref), the code will be simplified a lot.
> 
> ENVSYS_GRANGE must be changed too ... It's currently useless when
> sensors of one type are ditributed across multiple devices, by example
> on my Tyan s2885 amd64 workstation.
> 
> amdpm0 at pci0 dev 7 function 3: Advanced Micro Devices AMD8111 ACPI Controller (rev. 0x05)
> iic0 at amdpm0: I2C bus
> adt7463c0 at iic0 addr 0x2e
> [...]
> lm0 at isa0 port 0x290-0x297: Winbond W83627HF Hardware monitor
> 
> For now, ENVSYS_GRANGE return ranges for the 1st registered device.

My original idea was removing ENVSYS_GRANGE as well... but perhaps someone
wants to keep it.

I'll use only one ioctl then.

-- 
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish