Deleted Added
full compact
if_bge.c (113038) if_bge.c (113506)
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. 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:

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

59 * Without external SSRAM, you can only have at most 4 TX rings,
60 * and the use of the mini RX ring is disabled. This seems to imply
61 * that these features are simply not available on the BCM5701. As a
62 * result, this driver does not implement any support for the mini RX
63 * ring.
64 */
65
66#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. 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:

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

59 * Without external SSRAM, you can only have at most 4 TX rings,
60 * and the use of the mini RX ring is disabled. This seems to imply
61 * that these features are simply not available on the BCM5701. As a
62 * result, this driver does not implement any support for the mini RX
63 * ring.
64 */
65
66#include <sys/cdefs.h>
67__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 113038 2003-04-03 21:36:33Z obrien $");
67__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 113506 2003-04-15 06:37:30Z mdodd $");
68
69#include <sys/param.h>
70#include <sys/systm.h>
71#include <sys/sockio.h>
72#include <sys/mbuf.h>
73#include <sys/malloc.h>
74#include <sys/kernel.h>
75#include <sys/socket.h>

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

106
107#include <pci/pcireg.h>
108#include <pci/pcivar.h>
109
110#include <dev/bge/if_bgereg.h>
111
112#define BGE_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP)
113
68
69#include <sys/param.h>
70#include <sys/systm.h>
71#include <sys/sockio.h>
72#include <sys/mbuf.h>
73#include <sys/malloc.h>
74#include <sys/kernel.h>
75#include <sys/socket.h>

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

106
107#include <pci/pcireg.h>
108#include <pci/pcivar.h>
109
110#include <dev/bge/if_bgereg.h>
111
112#define BGE_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP)
113
114MODULE_DEPEND(bge, pci, 1, 1, 1);
115MODULE_DEPEND(bge, ether, 1, 1, 1);
114MODULE_DEPEND(bge, miibus, 1, 1, 1);
115
116/* "controller miibus0" required. See GENERIC if you get errors here. */
117#include "miibus_if.h"
118
119/*
120 * Various supported device vendors/types and their names. Note: the
121 * spec seems to indicate that the hardware still has Alteon's vendor

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

236static driver_t bge_driver = {
237 "bge",
238 bge_methods,
239 sizeof(struct bge_softc)
240};
241
242static devclass_t bge_devclass;
243
116MODULE_DEPEND(bge, miibus, 1, 1, 1);
117
118/* "controller miibus0" required. See GENERIC if you get errors here. */
119#include "miibus_if.h"
120
121/*
122 * Various supported device vendors/types and their names. Note: the
123 * spec seems to indicate that the hardware still has Alteon's vendor

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

238static driver_t bge_driver = {
239 "bge",
240 bge_methods,
241 sizeof(struct bge_softc)
242};
243
244static devclass_t bge_devclass;
245
244DRIVER_MODULE(if_bge, pci, bge_driver, bge_devclass, 0, 0);
246DRIVER_MODULE(bge, pci, bge_driver, bge_devclass, 0, 0);
245DRIVER_MODULE(miibus, bge, miibus_driver, miibus_devclass, 0, 0);
246
247static u_int32_t
248bge_readmem_ind(sc, off)
249 struct bge_softc *sc;
250 int off;
251{
252 device_t dev;

--- 2490 unchanged lines hidden ---
247DRIVER_MODULE(miibus, bge, miibus_driver, miibus_devclass, 0, 0);
248
249static u_int32_t
250bge_readmem_ind(sc, off)
251 struct bge_softc *sc;
252 int off;
253{
254 device_t dev;

--- 2490 unchanged lines hidden ---