Deleted Added
full compact
ichsmb.c (143063) ichsmb.c (143160)
1/*-
2 * ichsmb.c
3 *
4 * Author: Archie Cobbs <archie@freebsd.org>
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
38#include <sys/cdefs.h>
1/*-
2 * ichsmb.c
3 *
4 * Author: Archie Cobbs <archie@freebsd.org>
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
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/dev/ichsmb/ichsmb.c 143063 2005-03-02 21:33:29Z joerg $");
39__FBSDID("$FreeBSD: head/sys/dev/ichsmb/ichsmb.c 143160 2005-03-05 18:17:35Z imp $");
40
41/*
42 * Support for the SMBus controller logical device which is part of the
43 * Intel 81801AA (ICH) and 81801AB (ICH0) I/O controller hub chips.
44 *
45 * This driver assumes that the generic SMBus code will ensure that
46 * at most one process at a time calls into the SMBus methods below.
47 */

--- 51 unchanged lines hidden (view full) ---

99 device_t smb;
100
101 /* Add child: an instance of the "smbus" device */
102 if ((smb = device_add_child(dev, DRIVER_SMBUS, -1)) == NULL) {
103 log(LOG_ERR, "%s: no \"%s\" child found\n",
104 device_get_nameunit(dev), DRIVER_SMBUS);
105 return (ENXIO);
106 }
40
41/*
42 * Support for the SMBus controller logical device which is part of the
43 * Intel 81801AA (ICH) and 81801AB (ICH0) I/O controller hub chips.
44 *
45 * This driver assumes that the generic SMBus code will ensure that
46 * at most one process at a time calls into the SMBus methods below.
47 */

--- 51 unchanged lines hidden (view full) ---

99 device_t smb;
100
101 /* Add child: an instance of the "smbus" device */
102 if ((smb = device_add_child(dev, DRIVER_SMBUS, -1)) == NULL) {
103 log(LOG_ERR, "%s: no \"%s\" child found\n",
104 device_get_nameunit(dev), DRIVER_SMBUS);
105 return (ENXIO);
106 }
107 return (0);
107 return (BUS_PROBE_DEFAULT);
108}
109
110/*
111 * Handle attach-time duties that are independent of the bus
112 * our device lives on.
113 */
114int
115ichsmb_attach(device_t dev)

--- 562 unchanged lines hidden ---
108}
109
110/*
111 * Handle attach-time duties that are independent of the bus
112 * our device lives on.
113 */
114int
115ichsmb_attach(device_t dev)

--- 562 unchanged lines hidden ---