Deleted Added
full compact
if_mge.c (232874) if_mge.c (238873)
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

29 * SUCH DAMAGE.
30 */
31
32#ifdef HAVE_KERNEL_OPTION_HEADERS
33#include "opt_device_polling.h"
34#endif
35
36#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

29 * SUCH DAMAGE.
30 */
31
32#ifdef HAVE_KERNEL_OPTION_HEADERS
33#include "opt_device_polling.h"
34#endif
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/dev/mge/if_mge.c 232874 2012-03-12 18:15:08Z scottl $");
37__FBSDID("$FreeBSD: head/sys/dev/mge/if_mge.c 238873 2012-07-28 21:56:24Z hrs $");
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/endian.h>
42#include <sys/mbuf.h>
43#include <sys/lock.h>
44#include <sys/mutex.h>
45#include <sys/kernel.h>

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

253}
254
255static void
256mge_ver_params(struct mge_softc *sc)
257{
258 uint32_t d, r;
259
260 soc_id(&d, &r);
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/endian.h>
42#include <sys/mbuf.h>
43#include <sys/lock.h>
44#include <sys/mutex.h>
45#include <sys/kernel.h>

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

253}
254
255static void
256mge_ver_params(struct mge_softc *sc)
257{
258 uint32_t d, r;
259
260 soc_id(&d, &r);
261 if (d == MV_DEV_88F6281 || d == MV_DEV_MV78100 ||
261 if (d == MV_DEV_88F6281 ||
262 d == MV_DEV_88F6282 ||
263 d == MV_DEV_MV78100 ||
262 d == MV_DEV_MV78100_Z0) {
263 sc->mge_ver = 2;
264 sc->mge_mtu = 0x4e8;
265 sc->mge_tfut_ipg_max = 0xFFFF;
266 sc->mge_rx_ipg_max = 0xFFFF;
267 sc->mge_tx_arb_cfg = 0xFC0000FF;
268 sc->mge_tx_tok_cfg = 0xFFFF7FFF;
269 sc->mge_tx_tok_cnt = 0x3FFFFFFF;

--- 1575 unchanged lines hidden ---
264 d == MV_DEV_MV78100_Z0) {
265 sc->mge_ver = 2;
266 sc->mge_mtu = 0x4e8;
267 sc->mge_tfut_ipg_max = 0xFFFF;
268 sc->mge_rx_ipg_max = 0xFFFF;
269 sc->mge_tx_arb_cfg = 0xFC0000FF;
270 sc->mge_tx_tok_cfg = 0xFFFF7FFF;
271 sc->mge_tx_tok_cnt = 0x3FFFFFFF;

--- 1575 unchanged lines hidden ---