bus_private.h (188456) | bus_private.h (225931) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998 Justin T. Gibbs. 3 * Copyright (c) 2002 by Thomas Moestl <tmm@FreeBSD.org>. 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: --- 11 unchanged lines hidden (view full) --- 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 24 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * from: FreeBSD: src/sys/i386/i386/busdma_machdep.c,v 1.25 2002/01/05 27 * | 1/*- 2 * Copyright (c) 1997, 1998 Justin T. Gibbs. 3 * Copyright (c) 2002 by Thomas Moestl <tmm@FreeBSD.org>. 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: --- 11 unchanged lines hidden (view full) --- 20 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 24 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * from: FreeBSD: src/sys/i386/i386/busdma_machdep.c,v 1.25 2002/01/05 27 * |
28 * $FreeBSD: head/sys/sparc64/include/bus_private.h 188456 2009-02-10 21:51:33Z marius $ | 28 * $FreeBSD: head/sys/sparc64/include/bus_private.h 225931 2011-10-02 23:22:38Z marius $ |
29 */ 30 31#ifndef _MACHINE_BUS_PRIVATE_H_ 32#define _MACHINE_BUS_PRIVATE_H_ 33 34#include <sys/queue.h> 35 36/* 37 * Helpers 38 */ | 29 */ 30 31#ifndef _MACHINE_BUS_PRIVATE_H_ 32#define _MACHINE_BUS_PRIVATE_H_ 33 34#include <sys/queue.h> 35 36/* 37 * Helpers 38 */ |
39int sparc64_bus_mem_map(bus_space_tag_t, bus_space_handle_t, bus_size_t, 40 int, vm_offset_t, void **); 41int sparc64_bus_mem_unmap(void *, bus_size_t); 42bus_space_handle_t sparc64_fake_bustag(int, bus_addr_t, struct bus_space_tag *); | 39int sparc64_bus_mem_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size, 40 int flags, vm_offset_t vaddr, bus_space_handle_t *hp); 41int sparc64_bus_mem_unmap(bus_space_tag_t tag, bus_space_handle_t handle, 42 bus_size_t size); 43bus_space_tag_t sparc64_alloc_bus_tag(void *cookie, 44 struct bus_space_tag *ptag, int type, void *barrier); 45bus_space_handle_t sparc64_fake_bustag(int space, bus_addr_t addr, 46 struct bus_space_tag *ptag); |
43 44struct bus_dmamap_res { 45 struct resource *dr_res; 46 bus_size_t dr_used; 47 SLIST_ENTRY(bus_dmamap_res) dr_link; 48}; 49 50/* --- 27 unchanged lines hidden --- | 47 48struct bus_dmamap_res { 49 struct resource *dr_res; 50 bus_size_t dr_used; 51 SLIST_ENTRY(bus_dmamap_res) dr_link; 52}; 53 54/* --- 27 unchanged lines hidden --- |