Deleted Added
full compact
if_mge.c (186892) if_mge.c (191140)
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 186892 2009-01-08 11:09:27Z raj $");
37__FBSDID("$FreeBSD: head/sys/dev/mge/if_mge.c 191140 2009-04-16 11:20:18Z raj $");
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>

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

234}
235
236static void
237mge_ver_params(struct mge_softc *sc)
238{
239 uint32_t d, r;
240
241 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>

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

234}
235
236static void
237mge_ver_params(struct mge_softc *sc)
238{
239 uint32_t d, r;
240
241 soc_id(&d, &r);
242 if (d == MV_DEV_88F6281 || d == MV_DEV_MV78100) {
242 if (d == MV_DEV_88F6281 || d == MV_DEV_MV78100 ||
243 d == MV_DEV_MV78100_Z0) {
243 sc->mge_ver = 2;
244 sc->mge_mtu = 0x4e8;
245 sc->mge_tfut_ipg_max = 0xFFFF;
246 sc->mge_rx_ipg_max = 0xFFFF;
247 sc->mge_tx_arb_cfg = 0xFC0000FF;
248 sc->mge_tx_tok_cfg = 0xFFFF7FFF;
249 sc->mge_tx_tok_cnt = 0x3FFFFFFF;
250 } else {

--- 1565 unchanged lines hidden ---
244 sc->mge_ver = 2;
245 sc->mge_mtu = 0x4e8;
246 sc->mge_tfut_ipg_max = 0xFFFF;
247 sc->mge_rx_ipg_max = 0xFFFF;
248 sc->mge_tx_arb_cfg = 0xFC0000FF;
249 sc->mge_tx_tok_cfg = 0xFFFF7FFF;
250 sc->mge_tx_tok_cnt = 0x3FFFFFFF;
251 } else {

--- 1565 unchanged lines hidden ---