Deleted Added
full compact
busdma_machdep.c (246713) busdma_machdep.c (257228)
1/*-
2 * Copyright (c) 2006 Oleksandr Tymoshenko
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

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

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 * From i386/busdma_machdep.c,v 1.26 2002/04/19 22:58:09 alfred
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Oleksandr Tymoshenko
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

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

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 * From i386/busdma_machdep.c,v 1.26 2002/04/19 22:58:09 alfred
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/mips/mips/busdma_machdep.c 246713 2013-02-12 16:57:20Z kib $");
30__FBSDID("$FreeBSD: head/sys/mips/mips/busdma_machdep.c 257228 2013-10-27 21:39:16Z kib $");
31
32/*
33 * MIPS bus dma support routines
34 */
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/malloc.h>

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

873 */
874 if (buflen != 0) {
875 _bus_dmamap_unload(dmat, map);
876 return (EFBIG); /* XXX better return value here? */
877 }
878 return (0);
879}
880
31
32/*
33 * MIPS bus dma support routines
34 */
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/malloc.h>

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

873 */
874 if (buflen != 0) {
875 _bus_dmamap_unload(dmat, map);
876 return (EFBIG); /* XXX better return value here? */
877 }
878 return (0);
879}
880
881int
882_bus_dmamap_load_ma(bus_dma_tag_t dmat, bus_dmamap_t map,
883 struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags,
884 bus_dma_segment_t *segs, int *segp)
885{
886
887 return (bus_dmamap_load_ma_triv(dmat, map, ma, tlen, ma_offs, flags,
888 segs, segp));
889}
890
881/*
882 * Utility function to load a linear buffer. segp contains
883 * the starting segment on entrance, and the ending segment on exit.
884 * first indicates if this is the first invocation of this function.
885 */
886int
887_bus_dmamap_load_buffer(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
888 bus_size_t buflen, struct pmap *pmap, int flags, bus_dma_segment_t *segs,

--- 528 unchanged lines hidden ---
891/*
892 * Utility function to load a linear buffer. segp contains
893 * the starting segment on entrance, and the ending segment on exit.
894 * first indicates if this is the first invocation of this function.
895 */
896int
897_bus_dmamap_load_buffer(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
898 bus_size_t buflen, struct pmap *pmap, int flags, bus_dma_segment_t *segs,

--- 528 unchanged lines hidden ---