Deleted Added
full compact
if_mwl.c (196842) if_mwl.c (197307)
1/*-
2 * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2007-2008 Marvell Semiconductor, Inc.
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:

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

24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
26 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGES.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2007-2008 Marvell Semiconductor, Inc.
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:

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

24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
26 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGES.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/mwl/if_mwl.c 196842 2009-09-04 22:34:57Z sam $");
32__FBSDID("$FreeBSD: head/sys/dev/mwl/if_mwl.c 197307 2009-09-18 12:25:31Z rpaulo $");
33
34/*
35 * Driver for the Marvell 88W8363 Wireless LAN controller.
36 */
37
38#include "opt_inet.h"
39#include "opt_mwl.h"
40

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

2298}
2299
2300static int
2301mwl_dma_setup(struct mwl_softc *sc)
2302{
2303 int error, i;
2304
2305 error = mwl_rxdma_setup(sc);
33
34/*
35 * Driver for the Marvell 88W8363 Wireless LAN controller.
36 */
37
38#include "opt_inet.h"
39#include "opt_mwl.h"
40

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

2298}
2299
2300static int
2301mwl_dma_setup(struct mwl_softc *sc)
2302{
2303 int error, i;
2304
2305 error = mwl_rxdma_setup(sc);
2306 if (error != 0)
2306 if (error != 0) {
2307 mwl_rxdma_cleanup(sc);
2307 return error;
2308 return error;
2309 }
2308
2309 for (i = 0; i < MWL_NUM_TX_QUEUES; i++) {
2310 error = mwl_txdma_setup(sc, &sc->sc_txq[i]);
2311 if (error != 0) {
2312 mwl_dma_cleanup(sc);
2313 return error;
2314 }
2315 }

--- 2715 unchanged lines hidden ---
2310
2311 for (i = 0; i < MWL_NUM_TX_QUEUES; i++) {
2312 error = mwl_txdma_setup(sc, &sc->sc_txq[i]);
2313 if (error != 0) {
2314 mwl_dma_cleanup(sc);
2315 return error;
2316 }
2317 }

--- 2715 unchanged lines hidden ---