Deleted Added
full compact
busdma_bounce.c (111119) busdma_bounce.c (111524)
1/*
2 * Copyright (c) 1997, 1998 Justin T. Gibbs.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 1997, 1998 Justin T. Gibbs.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/i386/i386/busdma_machdep.c 111119 2003-02-19 05:47:46Z imp $
26 * $FreeBSD: head/sys/i386/i386/busdma_machdep.c 111524 2003-02-26 02:16:06Z mux $
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/malloc.h>
32#include <sys/bus.h>
33#include <sys/interrupt.h>
34#include <sys/lock.h>

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

386}
387
388void
389bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
390{
391 bus_dmamem_free_size(dmat, vaddr, map, dmat->maxsize);
392}
393
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/malloc.h>
32#include <sys/bus.h>
33#include <sys/interrupt.h>
34#include <sys/lock.h>

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

386}
387
388void
389bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
390{
391 bus_dmamem_free_size(dmat, vaddr, map, dmat->maxsize);
392}
393
394#define BUS_DMAMAP_NSEGS ((BUS_SPACE_MAXSIZE / PAGE_SIZE) + 1)
394#define BUS_DMAMAP_NSEGS ((64 * 1024) / PAGE_SIZE + 1)
395
396/*
397 * Map the buffer buf into bus space using the dmamap map.
398 */
399int
400bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
401 bus_size_t buflen, bus_dmamap_callback_t *callback,
402 void *callback_arg, int flags)

--- 500 unchanged lines hidden ---
395
396/*
397 * Map the buffer buf into bus space using the dmamap map.
398 */
399int
400bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
401 bus_size_t buflen, bus_dmamap_callback_t *callback,
402 void *callback_arg, int flags)

--- 500 unchanged lines hidden ---