1*d91f98a8Spgoyette /* $NetBSD: rump_generic_directmap.c,v 1.3 2019/01/27 02:08:49 pgoyette Exp $ */
23075d1d3Sriastradh
33075d1d3Sriastradh /*-
43075d1d3Sriastradh * Copyright (c) 2018 The NetBSD Foundation, Inc.
53075d1d3Sriastradh * All rights reserved.
63075d1d3Sriastradh *
73075d1d3Sriastradh * Redistribution and use in source and binary forms, with or without
83075d1d3Sriastradh * modification, are permitted provided that the following conditions
93075d1d3Sriastradh * are met:
103075d1d3Sriastradh * 1. Redistributions of source code must retain the above copyright
113075d1d3Sriastradh * notice, this list of conditions and the following disclaimer.
123075d1d3Sriastradh * 2. Redistributions in binary form must reproduce the above copyright
133075d1d3Sriastradh * notice, this list of conditions and the following disclaimer in the
143075d1d3Sriastradh * documentation and/or other materials provided with the distribution.
153075d1d3Sriastradh *
163075d1d3Sriastradh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
173075d1d3Sriastradh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
183075d1d3Sriastradh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
193075d1d3Sriastradh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
203075d1d3Sriastradh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
213075d1d3Sriastradh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
223075d1d3Sriastradh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
233075d1d3Sriastradh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
243075d1d3Sriastradh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
253075d1d3Sriastradh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
263075d1d3Sriastradh * POSSIBILITY OF SUCH DAMAGE.
273075d1d3Sriastradh */
283075d1d3Sriastradh
29a57097d0Salnsn #include <sys/cdefs.h>
30*d91f98a8Spgoyette __KERNEL_RCSID(0, "$NetBSD: rump_generic_directmap.c,v 1.3 2019/01/27 02:08:49 pgoyette Exp $");
31a57097d0Salnsn
323075d1d3Sriastradh #include <sys/types.h>
333075d1d3Sriastradh
343075d1d3Sriastradh #include <dev/mm.h>
353075d1d3Sriastradh
363075d1d3Sriastradh #ifdef __HAVE_MM_MD_DIRECT_MAPPED_IO
373075d1d3Sriastradh bool
mm_md_direct_mapped_io(void * ptr,paddr_t * pap)383075d1d3Sriastradh mm_md_direct_mapped_io(void *ptr, paddr_t *pap)
393075d1d3Sriastradh {
403075d1d3Sriastradh return false;
413075d1d3Sriastradh }
423075d1d3Sriastradh #endif
433075d1d3Sriastradh
443075d1d3Sriastradh #ifdef __HAVE_MM_MD_DIRECT_MAPPED_PHYS
453075d1d3Sriastradh bool
mm_md_direct_mapped_phys(paddr_t pa,vaddr_t * vap)463075d1d3Sriastradh mm_md_direct_mapped_phys(paddr_t pa, vaddr_t *vap)
473075d1d3Sriastradh {
483075d1d3Sriastradh return false;
493075d1d3Sriastradh }
503075d1d3Sriastradh #endif
51