1/*-
2 * Copyright (c) 1995, David Greenman
3 * Copyright (c) 2001 Jonathan Lemon <jlemon@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 14 unchanged lines hidden (view full) ---
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 121939 2003-11-03 09:22:18Z dfr $");
32
33/*
34 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 121939 2003-11-03 09:22:18Z dfr $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/endian.h>
43#include <sys/mbuf.h>
44 /* #include <sys/mutex.h> */
45#include <sys/kernel.h>
46#include <sys/socket.h>
--- 227 unchanged lines hidden (view full) ---
274 "fxp",
275 fxp_methods,
276 sizeof(struct fxp_softc),
277};
278
279static devclass_t fxp_devclass;
280
281DRIVER_MODULE(fxp, pci, fxp_driver, fxp_devclass, 0, 0);
282DRIVER_MODULE(miibus, fxp, miibus_driver, miibus_devclass, 0, 0);
283
284static int fxp_rnr;
285SYSCTL_INT(_hw, OID_AUTO, fxp_rnr, CTLFLAG_RW, &fxp_rnr, 0, "fxp rnr events");
286
287static int fxp_noflow;
288SYSCTL_INT(_hw, OID_AUTO, fxp_noflow, CTLFLAG_RW, &fxp_noflow, 0, "fxp flow control disabled");
289TUNABLE_INT("hw.fxp_noflow", &fxp_noflow);
--- 2454 unchanged lines hidden ---
2 * Copyright (c) 1995, David Greenman
3 * Copyright (c) 2001 Jonathan Lemon <jlemon@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 14 unchanged lines hidden (view full) ---
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 121939 2003-11-03 09:22:18Z dfr $");
32
33/*
34 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 121939 2003-11-03 09:22:18Z dfr $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/endian.h>
43#include <sys/mbuf.h>
44 /* #include <sys/mutex.h> */
45#include <sys/kernel.h>
46#include <sys/socket.h>
--- 227 unchanged lines hidden (view full) ---
274 "fxp",
275 fxp_methods,
276 sizeof(struct fxp_softc),
277};
278
279static devclass_t fxp_devclass;
280
281DRIVER_MODULE(fxp, pci, fxp_driver, fxp_devclass, 0, 0);
282DRIVER_MODULE(miibus, fxp, miibus_driver, miibus_devclass, 0, 0);
283
284static int fxp_rnr;
285SYSCTL_INT(_hw, OID_AUTO, fxp_rnr, CTLFLAG_RW, &fxp_rnr, 0, "fxp rnr events");
286
287static int fxp_noflow;
288SYSCTL_INT(_hw, OID_AUTO, fxp_noflow, CTLFLAG_RW, &fxp_noflow, 0, "fxp flow control disabled");
289TUNABLE_INT("hw.fxp_noflow", &fxp_noflow);
--- 2454 unchanged lines hidden ---