if_msk.c (216860) | if_msk.c (217566) |
---|---|
1/****************************************************************************** 2 * 3 * Name : sky2.c 4 * Project: Gigabit Ethernet Driver for FreeBSD 5.x/6.x 5 * Version: $Revision: 1.23 $ 6 * Date : $Date: 2005/12/22 09:04:11 $ 7 * Purpose: Main driver source file 8 * --- 85 unchanged lines hidden (view full) --- 94 95/* 96 * Device driver for the Marvell Yukon II Ethernet controller. 97 * Due to lack of documentation, this driver is based on the code from 98 * sk(4) and Marvell's myk(4) driver for FreeBSD 5.x. 99 */ 100 101#include <sys/cdefs.h> | 1/****************************************************************************** 2 * 3 * Name : sky2.c 4 * Project: Gigabit Ethernet Driver for FreeBSD 5.x/6.x 5 * Version: $Revision: 1.23 $ 6 * Date : $Date: 2005/12/22 09:04:11 $ 7 * Purpose: Main driver source file 8 * --- 85 unchanged lines hidden (view full) --- 94 95/* 96 * Device driver for the Marvell Yukon II Ethernet controller. 97 * Due to lack of documentation, this driver is based on the code from 98 * sk(4) and Marvell's myk(4) driver for FreeBSD 5.x. 99 */ 100 101#include <sys/cdefs.h> |
102__FBSDID("$FreeBSD: head/sys/dev/msk/if_msk.c 216860 2010-12-31 22:18:41Z yongari $"); | 102__FBSDID("$FreeBSD: head/sys/dev/msk/if_msk.c 217566 2011-01-19 00:57:58Z mdf $"); |
103 104#include <sys/param.h> 105#include <sys/systm.h> 106#include <sys/bus.h> 107#include <sys/endian.h> 108#include <sys/mbuf.h> 109#include <sys/malloc.h> 110#include <sys/kernel.h> --- 4273 unchanged lines hidden (view full) --- 4384#undef MSK_READ_MIB32 4385#undef MSK_READ_MIB64 4386 4387#define MSK_SYSCTL_STAT32(sc, c, o, p, n, d) \ 4388 SYSCTL_ADD_PROC(c, p, OID_AUTO, o, CTLTYPE_UINT | CTLFLAG_RD, \ 4389 sc, offsetof(struct msk_hw_stats, n), msk_sysctl_stat32, \ 4390 "IU", d) 4391#define MSK_SYSCTL_STAT64(sc, c, o, p, n, d) \ | 103 104#include <sys/param.h> 105#include <sys/systm.h> 106#include <sys/bus.h> 107#include <sys/endian.h> 108#include <sys/mbuf.h> 109#include <sys/malloc.h> 110#include <sys/kernel.h> --- 4273 unchanged lines hidden (view full) --- 4384#undef MSK_READ_MIB32 4385#undef MSK_READ_MIB64 4386 4387#define MSK_SYSCTL_STAT32(sc, c, o, p, n, d) \ 4388 SYSCTL_ADD_PROC(c, p, OID_AUTO, o, CTLTYPE_UINT | CTLFLAG_RD, \ 4389 sc, offsetof(struct msk_hw_stats, n), msk_sysctl_stat32, \ 4390 "IU", d) 4391#define MSK_SYSCTL_STAT64(sc, c, o, p, n, d) \ |
4392 SYSCTL_ADD_PROC(c, p, OID_AUTO, o, CTLTYPE_UINT | CTLFLAG_RD, \ | 4392 SYSCTL_ADD_PROC(c, p, OID_AUTO, o, CTLTYPE_QUAD | CTLFLAG_RD, \ |
4393 sc, offsetof(struct msk_hw_stats, n), msk_sysctl_stat64, \ 4394 "Q", d) 4395 4396static void 4397msk_sysctl_node(struct msk_if_softc *sc_if) 4398{ 4399 struct sysctl_ctx_list *ctx; 4400 struct sysctl_oid_list *child, *schild; --- 115 unchanged lines hidden --- | 4393 sc, offsetof(struct msk_hw_stats, n), msk_sysctl_stat64, \ 4394 "Q", d) 4395 4396static void 4397msk_sysctl_node(struct msk_if_softc *sc_if) 4398{ 4399 struct sysctl_ctx_list *ctx; 4400 struct sysctl_oid_list *child, *schild; --- 115 unchanged lines hidden --- |