1*be360188Ssnj /* $NetBSD: rbus_machdep.h,v 1.2 2009/12/15 22:17:12 snj Exp $ */ 246eed28bSrjs 346eed28bSrjs /* 446eed28bSrjs * Copyright (c) 1999 546eed28bSrjs * HAYAKAWA Koichi. All rights reserved. 646eed28bSrjs * 746eed28bSrjs * Redistribution and use in source and binary forms, with or without 846eed28bSrjs * modification, are permitted provided that the following conditions 946eed28bSrjs * are met: 1046eed28bSrjs * 1. Redistributions of source code must retain the above copyright 1146eed28bSrjs * notice, this list of conditions and the following disclaimer. 1246eed28bSrjs * 2. Redistributions in binary form must reproduce the above copyright 1346eed28bSrjs * notice, this list of conditions and the following disclaimer in the 1446eed28bSrjs * documentation and/or other materials provided with the distribution. 1546eed28bSrjs * 1646eed28bSrjs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1746eed28bSrjs * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1846eed28bSrjs * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1946eed28bSrjs * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2046eed28bSrjs * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2146eed28bSrjs * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2246eed28bSrjs * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2346eed28bSrjs * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2446eed28bSrjs * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2546eed28bSrjs * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2646eed28bSrjs */ 2746eed28bSrjs 2846eed28bSrjs #if !defined _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ 2946eed28bSrjs #define _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ 3046eed28bSrjs 3146eed28bSrjs struct pci_attach_args; /* XXX */ 3246eed28bSrjs 3346eed28bSrjs #define md_space_map(bt, physaddr, size, flags, bshp) \ 3446eed28bSrjs _x86_memio_map((bt), (physaddr), (size), (flags), (bshp)) 3546eed28bSrjs 3646eed28bSrjs #define md_space_unmap(bt, bsh, size, adrp) \ 3746eed28bSrjs _x86_memio_unmap((bt), (bsh), (size), (adrp)) 3846eed28bSrjs 3946eed28bSrjs 4046eed28bSrjs rbus_tag_t rbus_pccbb_parent_io(struct pci_attach_args *); 4146eed28bSrjs rbus_tag_t rbus_pccbb_parent_mem(struct pci_attach_args *); 4246eed28bSrjs 4346eed28bSrjs #endif /* _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ */ 44