Deleted Added
full compact
ichsmb.c (139749) ichsmb.c (143063)
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 139749 2005-01-06 01:43:34Z imp $");
39__FBSDID("$FreeBSD: head/sys/dev/ichsmb/ichsmb.c 143063 2005-03-02 21:33:29Z joerg $");
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 */

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

63
64#include <dev/ichsmb/ichsmb_var.h>
65#include <dev/ichsmb/ichsmb_reg.h>
66
67/*
68 * Enable debugging by defining ICHSMB_DEBUG to a non-zero value.
69 */
70#define ICHSMB_DEBUG 0
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 */

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

63
64#include <dev/ichsmb/ichsmb_var.h>
65#include <dev/ichsmb/ichsmb_reg.h>
66
67/*
68 * Enable debugging by defining ICHSMB_DEBUG to a non-zero value.
69 */
70#define ICHSMB_DEBUG 0
71#if ICHSMB_DEBUG != 0 && (defined(__GNUC__) || defined(__INTEL_COMPILER))
71#if ICHSMB_DEBUG != 0 && defined(__CC_SUPPORTS___FUNC__)
72#define DBG(fmt, args...) \
73 do { log(LOG_DEBUG, "%s: " fmt, __func__ , ## args); } while (0)
74#else
75#define DBG(fmt, args...) do { } while (0)
76#endif
77
78/*
79 * Our child device driver name

--- 598 unchanged lines hidden ---
72#define DBG(fmt, args...) \
73 do { log(LOG_DEBUG, "%s: " fmt, __func__ , ## args); } while (0)
74#else
75#define DBG(fmt, args...) do { } while (0)
76#endif
77
78/*
79 * Our child device driver name

--- 598 unchanged lines hidden ---