Deleted Added
full compact
ichsmb.c (119418) ichsmb.c (126891)
1
2/*
3 * ichsmb.c
4 *
5 * Author: Archie Cobbs <archie@freebsd.org>
6 * Copyright (c) 2000 Whistle Communications, Inc.
7 * All rights reserved.
8 *

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

32 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
36 * OF SUCH DAMAGE.
37 */
38
39#include <sys/cdefs.h>
1
2/*
3 * ichsmb.c
4 *
5 * Author: Archie Cobbs <archie@freebsd.org>
6 * Copyright (c) 2000 Whistle Communications, Inc.
7 * All rights reserved.
8 *

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

32 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
36 * OF SUCH DAMAGE.
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/dev/ichsmb/ichsmb.c 119418 2003-08-24 17:55:58Z obrien $");
40__FBSDID("$FreeBSD: head/sys/dev/ichsmb/ichsmb.c 126891 2004-03-12 21:45:33Z trhodes $");
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.
48 */

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

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

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

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

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

--- 598 unchanged lines hidden ---