Deleted Added
full compact
amr_pci.c (155317) amr_pci.c (157585)
1/*-
2 * Copyright (c) 1999,2000 Michael Smith
3 * Copyright (c) 2000 BSDi
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:

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

50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1999,2000 Michael Smith
3 * Copyright (c) 2000 BSDi
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:

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

50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/dev/amr/amr_pci.c 155317 2006-02-04 22:14:20Z imp $");
58__FBSDID("$FreeBSD: head/sys/dev/amr/amr_pci.c 157585 2006-04-08 02:23:27Z ps $");
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/kernel.h>
63#include <sys/module.h>
64#include <sys/sysctl.h>
65
66#include <sys/bio.h>

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

326
327 debug(2, "dma tag done");
328
329 /*
330 * Allocate and set up mailbox in a bus-visible fashion.
331 */
332 mtx_init(&sc->amr_list_lock, "AMR List Lock", NULL, MTX_DEF);
333 mtx_init(&sc->amr_hw_lock, "AMR HW Lock", NULL, MTX_DEF);
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/kernel.h>
63#include <sys/module.h>
64#include <sys/sysctl.h>
65
66#include <sys/bio.h>

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

326
327 debug(2, "dma tag done");
328
329 /*
330 * Allocate and set up mailbox in a bus-visible fashion.
331 */
332 mtx_init(&sc->amr_list_lock, "AMR List Lock", NULL, MTX_DEF);
333 mtx_init(&sc->amr_hw_lock, "AMR HW Lock", NULL, MTX_DEF);
334 mtx_init(&sc->amr_wait_lock, "AMR Wait Lock", NULL, MTX_DEF);
334 if ((error = amr_setup_mbox(sc)) != 0)
335 goto out;
336
337 debug(2, "mailbox setup");
338
339 /*
340 * Build the scatter/gather buffers.
341 */

--- 335 unchanged lines hidden ---
335 if ((error = amr_setup_mbox(sc)) != 0)
336 goto out;
337
338 debug(2, "mailbox setup");
339
340 /*
341 * Build the scatter/gather buffers.
342 */

--- 335 unchanged lines hidden ---