Re: Porting OpenBSD's sysctl hw.sensors framework to FreeBSD



In message <20070711144240.a3gdtxjvqcwkg4o4@xxxxxxxxxxxxxxxxxxxxx>, Alexander Leidinger writes:

I was not thinking about 7-layer-OSI, I was thinking about 3 layers:
presentation, infrastructure and "low-level" data acquiring stuff (I
prefer the pragmatic way of looking at things).

This again misses the point, because you assume a simple bottom-up
architecture will work like it does for PCI devices.

In this case however, the majority of systems need some piece of code
to identify them, look up in a table (which we get from where ?) and
configure the sensors.

Sensor hardware is not context-free and selfidentifying like PCI and
USB devices, in fact, it is about as far from PnP as you can get.

Finding an LM75 and reading the temperature is worth next to nothing
if you don't know where the LM75 is mounted.

Reading an ADC is worth absolutely nothing, if you don't know what
it measures and what voltage dividers are in front of it.

Finding an I2C sensor and trying to read it is a catastrophe when
it turns out not to be a sensor but the motherboard clock generator
or voltage regulater.

IFF we want to do something more comprehensive than the gaggle of
ports, then we want to do it properly so that it doesn't weigh down
the kernel with tons of, on average unused, junk, doesn't imperil
hardware and delivers sensor readings which come with the necessary
context to have a real physical meaning.

Access to I2C busses and I/O registers should happen in the kernel,
but maintaining a database of all sorts of weird systems should not.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@xxxxxxxxxxx | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: MSGraph.Chart.8 data point limit
    ... The sensor takes a reading every 4 seconds, and there are 23,000 ... There appears to be a limit of 4000*4000 data points in MS Chart so I ... For very large strings it is better to group several strings together ...
    (comp.databases.ms-access)
  • Re: Whats an acceptable temp increase when overclocking?
    ... the DTS are on the silicon die of the processor. ... DTS measures relative temperature - a reading of -20C from the sensor ... Winbond chip that interfaces to DTS via the PECI pin, ...
    (alt.comp.periphs.mainboard.asus)
  • Re: ISO settings, Noise in daylight shooting conditions...
    ... safari truck, I think I might not bother with either -pod. ... :> sensor cleaning stuff ... :> reading about things that happened on the Serengeti. ... have to have a really unobtrusive camera, use your cell phone. ...
    (rec.photo.digital.slr-systems)
  • Re: Looking for a method of detecting/measuring ethanol in fermenting solutions
    ... clarity (Which I think would preclude the near-IR sensor that I saw ... the CO2 bubbles leaving the air-trap on top of the sealed vessel; ... fermentation and get a reliable reading there, ... Instead of counting bubbles, can you determine the volume of CO2 ...
    (sci.engr.chem)
  • Re: Microchip PIC programming question
    ... > Input E: sensor reading 0-100mv ... create another PWM that uses fuzzy logic to get the Input E ... but it should all fit on three of them. ... linearises the ammonia reading based on two calibration ...
    (sci.electronics.design)