tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

LM78 driver



I've just completed porting OpenBSD's LM78 (and family) driver for system environmental monitors, only to discover that there's already a driver in NetBSD (in src/sys/dev/ic/ directory). However, there's a couple of issues:

1. The existing driver only has an ISA attachment, in src/sys/dev/isa/

and

2. Even though src/sys/dev/files/isa provides an attachment for the lm
   driver to the isa bus, there's no "device lm" anywhere, nor is there
   any reference to the driver's source file in any .../files*

So, I have to wonder if this driver has ever been built and tested? Or even compiled, since config(1) barfs if you try to include it.

I further wonder what is the correct way to proceed to incorporate some support for this family of chips in NetBSD. Should I continue with finding someone to test my port of OpenBSD's driver? Or is there some previous history of testing the existing driver that can be built upon after adding an i2c attachment?

Side question: regardless of which approach is to be taken, I'd like to know where the correct place would be to add the main "device lm" stuff? There doesn't seem to be a files.* file in src/sys/dev/ic, and the driver is common to i2c and isa busses so it really doesn't belong in either src/sys/dev/i2c/files.i2c or src/sys/dev/isa/files.isa. I also suspect that this sensor could be used in multiple architectures, so it probably doesn't belong in any src/sys/arch/*/files.* either.


----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul%whooppee.com@localhost   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
----------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index