njoly
b7a7f31e43
Add missing STOP conditions at the end of I2C operations.
2007-07-25 11:18:15 +00:00
xtraeme
a63e9584d6
Forgot to set the description in the sensor.
2007-07-13 00:27:47 +00:00
njoly
db58331d9d
Mark sensor as invalid if no fan is connected.
...
ok by xtraeme
2007-07-11 21:15:54 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
xtraeme
60ed581de9
There's no need to set the "envsys-description" property in the
...
driver's dictionary anymore, because with envsys2 you can change
descriptions.
2007-07-04 19:00:43 +00:00
xtraeme
1492e24783
There's no need to get initial sensor data before registering the driver
...
to the sysmon_envsys(9) framework, because at register time, the
framework will get initial data by itself.
2007-07-04 18:56:16 +00:00
xtraeme
02974d235e
pic16lc_update: use the edata pointer rather than using softc's array
...
index.
2007-07-02 10:36:47 +00:00
xtraeme
7c07c6cee5
adt74673_refresh_{fan,temp,volt}: use the edata pointer rather than
...
using softc's edata array index.
2007-07-02 10:25:54 +00:00
xtraeme
777c61efe0
There's no need to use another envsys_data_t pointer that points to
...
sme->sme_sensor_data again, just use the edata pointer passed in
the gtredata function.
2007-07-01 11:28:14 +00:00
xtraeme
da3f163bd2
Imported envsys 2, a brief description of the new features:
...
(Part 2: drivers)
* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
sysmon_power(9) and powerd(8), that means there is no 32 bytes event
size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.
Tested by:
blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:37:12 +00:00
christos
33da203dba
KNF, from Anon Ymous. Also kill extra unneeded initializers and use size_t
...
for indexes.
2007-06-15 19:47:59 +00:00
christos
09d8955eab
Eliminate unnessary floating point.
...
XXX: someone should KNF this file.
2007-06-14 18:20:44 +00:00
macallan
a9c87314bd
add support for i2c waitstates so we can actually talk to slow slaves
...
Suggestions and review by simon
2007-04-30 00:07:54 +00:00
njoly
47ae0ac9f2
Fix envsys ranges.
2007-04-15 13:03:20 +00:00
jmcneill
d93606a8fe
Missing LIST_INIT. Pointed out by uebayasi@
2007-02-06 12:39:15 +00:00
jmcneill
042d1598ba
Remove debug printf accidentally added in last commit.
2007-02-05 23:56:13 +00:00
jmcneill
02ad924a21
Register an SMBus interrupt handler to trap the reset on eject "feature"
...
on the Microsoft Xbox. Also print details on other system management type
events while we're here -- they may come in handy in the future.
2007-02-05 23:33:53 +00:00
jmcneill
be9836eac7
Allow i2c child devices to register interrupt handlers to the smbus host
...
controller. Both interrupt context and process context type handlers are
supported.
2007-02-05 23:31:37 +00:00
macallan
daae1989bc
add sgsmix
2007-01-17 23:33:23 +00:00
macallan
5ff56dc685
driver for the SGS 7433 mixer found in some G3 macs
2007-01-17 23:32:10 +00:00
cube
4cdd8aada6
Complete initializers so those files compile.
2007-01-13 18:42:45 +00:00
cube
e37986b806
Add missing initializers in cdevsw structs.
2007-01-12 19:33:21 +00:00
imp
d6b291ee71
Update a few comments based on newer members of the at24xx family.
...
Add support for the 128kbit, 256kbit and 512kbit parts. Note issues
with the 1024kbit and larger parts, but don't add support for them at
this time. I've not updated with the explosion of part numbers in
this family.
2007-01-12 08:47:43 +00:00
cube
eb54877e1f
Complete initialiser of the cdevsw structure.
2007-01-10 18:53:31 +00:00
jmcneill
9db92e3203
Rename a few possible avpack values to reflect reality.
2007-01-07 01:08:51 +00:00
jmcneill
a733c906b1
Move register definitions to a separate header.
2007-01-07 01:02:34 +00:00
jmcneill
643b8aef05
Report the version string from the PIC16LC.
2007-01-06 19:11:08 +00:00
jmcneill
33e535f8fd
Provide external functions for setting the LED, rebooting, and powering off
...
the system.
2007-01-06 18:38:28 +00:00
jmcneill
8ea80379e0
Microsoft Xbox serial EEPROM driver. Currently reports the system serial
...
number as sysctl machdep.xbox_serial.
2007-01-06 18:04:53 +00:00
jmcneill
4a2776e2e1
Fix __KERNEL_RCSID text (missing $)
2007-01-06 16:57:19 +00:00
jmcneill
9247d9813d
Driver for the Xbox System Management Controller. Currently reports CPU and
...
motherboard temperatures, but will eventually be extended to replace
arch/i386/xbox/pic16l.S
2007-01-06 02:44:16 +00:00
jmcneill
a6c2ba7419
Remove include of machine/autoconf.h to make this compile.
2007-01-05 23:09:33 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
gdamore
7020797810
Convert to MI clock_ymdhms versions of todr calls.
2006-09-09 21:10:01 +00:00
gdamore
a37acb1b52
Remove unused todr_setcal/todr_getcal and all the assorted stub
...
implementations.
2006-09-04 23:45:30 +00:00
bjh21
b223d41e99
gettime and settime functions are meant to return errno values. Make
...
the pcf8583 ones do so.
2006-08-23 21:21:34 +00:00
gdamore
4c26da3f0e
Add support for 10-bit addressing, per i2c specs. This has not been tested
...
with any actual 10-bit devices (as I don't have any), but it doesn't seem to
impact 7-bit addressing any. Approved by christos@, briggs@, and thorpej@.
2006-07-14 17:25:17 +00:00
thorpej
55e8bbeb6e
Put appropriate prefixes on property names to reduce chances of name
...
collisions.
2006-07-10 16:28:44 +00:00
drochner
665742bb91
remove the "name" element from the i2cbus attach args, that's what
...
interface attributes are good for
2006-06-26 18:19:40 +00:00
kiyohara
19d35b3135
It necessary to mask to validate bits.
2006-06-12 16:07:33 +00:00
kiyohara
43911ef4e2
Support LM77 Temperature.
2006-05-17 00:10:54 +00:00
elad
2867b68bc3
integrate kauth.
2006-05-14 21:42:26 +00:00
thorpej
fb44a8574b
Remove the devprop API and switch everthing over to the new proplib. Add
...
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
xtraeme
c28f2b42a3
PR kern/32885: adt7463 i2c device does not always unlock i2c bus on error.
...
Apply patch from Nicolas Joly.
2006-04-30 18:54:20 +00:00
gdamore
5c69d23f28
Oops! ddc.c was accidentally getting included in *all* kernel configs.
...
Added a new define so it can be included without doing the attach dance.
2006-04-26 06:52:09 +00:00
gdamore
9f862191dc
Add basic DDC (VESA Data Display Channel) driver for use by framebuffers.
...
Reviewed by jmcneill@ and macallan@.
2006-04-25 21:18:16 +00:00
riz
99cd9e5be7
Correct a couple of typos in comments ("Hook info" -> "Hook into",
...
"prescision"->"precision")
2006-04-04 19:38:38 +00:00
thorpej
8fc3572573
Use device_private().
2006-03-29 06:41:24 +00:00
thorpej
2be6494fc9
Use device_cfdata().
2006-03-29 04:16:44 +00:00