diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-01-15 22:03:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-01-15 22:03:18 +0000 |
commit | a1b8555a256d86e34f41f9829dc7a4f2397a7fc8 (patch) | |
tree | 11dced877188951f84909a67ab7de72929447a10 /sys/dev/ic/lm78var.h | |
parent | fddd2ea453bc08280eb864b7b1d12971a179c40d (diff) |
Commit missing bits too:
If we attach an lm(4) to isa(4) that is already attached to iic(4), disable
the one attached to iic(4).
idea from deraadt@
Diffstat (limited to 'sys/dev/ic/lm78var.h')
-rw-r--r-- | sys/dev/ic/lm78var.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/lm78var.h b/sys/dev/ic/lm78var.h index 862e7444e64..3eda4b42fb8 100644 --- a/sys/dev/ic/lm78var.h +++ b/sys/dev/ic/lm78var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: lm78var.h,v 1.2 2006/01/14 20:05:06 kettenis Exp $ */ +/* $OpenBSD: lm78var.h,v 1.3 2006/01/15 22:03:17 kettenis Exp $ */ /* * Copyright (c) 2005, 2006 Mark Kettenis @@ -128,7 +128,7 @@ struct lm_sensor { }; struct lm_softc { - struct device sc_dev; + struct device sc_dev; struct sensor sensors[WB_MAX_SENSORS]; struct lm_sensor *lm_sensors; @@ -137,6 +137,9 @@ struct lm_softc { u_int8_t (*lm_readreg)(struct lm_softc *, int); void (*lm_writereg)(struct lm_softc *, int, int); + + u_int8_t sbusaddr; + u_int8_t chipid; }; void lm_attach(struct lm_softc *); |