ichsmb.c (87599) | ichsmb.c (93818) |
---|---|
1 2/* 3 * ichsmb.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * | 1 2/* 3 * ichsmb.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/dev/ichsmb/ichsmb.c 87599 2001-12-10 08:09:49Z obrien $ | 39 * $FreeBSD: head/sys/dev/ichsmb/ichsmb.c 93818 2002-04-04 21:03:38Z jhb $ |
40 */ 41 42/* 43 * Support for the SMBus controller logical device which is part of the 44 * Intel 81801AA (ICH) and 81801AB (ICH0) I/O controller hub chips. 45 * 46 * This driver assumes that the generic SMBus code will ensure that 47 * at most one process at a time calls into the SMBus methods below. --- 76 unchanged lines hidden (view full) --- 124 /* Add "smbus" child */ 125 if ((error = bus_generic_attach(dev)) != 0) { 126 log(LOG_ERR, "%s: failed to attach child: %d\n", 127 device_get_nameunit(dev), error); 128 return (ENXIO); 129 } 130 131 /* Create mutex */ | 40 */ 41 42/* 43 * Support for the SMBus controller logical device which is part of the 44 * Intel 81801AA (ICH) and 81801AB (ICH0) I/O controller hub chips. 45 * 46 * This driver assumes that the generic SMBus code will ensure that 47 * at most one process at a time calls into the SMBus methods below. --- 76 unchanged lines hidden (view full) --- 124 /* Add "smbus" child */ 125 if ((error = bus_generic_attach(dev)) != 0) { 126 log(LOG_ERR, "%s: failed to attach child: %d\n", 127 device_get_nameunit(dev), error); 128 return (ENXIO); 129 } 130 131 /* Create mutex */ |
132 mtx_init(&sc->mutex, device_get_nameunit(dev), MTX_DEF); | 132 mtx_init(&sc->mutex, device_get_nameunit(dev), "ichsmb", MTX_DEF); |
133 return (0); 134} 135 136/******************************************************************** 137 SMBUS METHODS 138********************************************************************/ 139 140int --- 538 unchanged lines hidden --- | 133 return (0); 134} 135 136/******************************************************************** 137 SMBUS METHODS 138********************************************************************/ 139 140int --- 538 unchanged lines hidden --- |