rbus_machdep.h revision 1.1
11.1Srjs/* $NetBSD: rbus_machdep.h,v 1.1 2005/12/21 22:35:41 rjs Exp $ */ 21.1Srjs 31.1Srjs/* 41.1Srjs * Copyright (c) 1999 51.1Srjs * HAYAKAWA Koichi. All rights reserved. 61.1Srjs * 71.1Srjs * Redistribution and use in source and binary forms, with or without 81.1Srjs * modification, are permitted provided that the following conditions 91.1Srjs * are met: 101.1Srjs * 1. Redistributions of source code must retain the above copyright 111.1Srjs * notice, this list of conditions and the following disclaimer. 121.1Srjs * 2. Redistributions in binary form must reproduce the above copyright 131.1Srjs * notice, this list of conditions and the following disclaimer in the 141.1Srjs * documentation and/or other materials provided with the distribution. 151.1Srjs * 3. All advertising materials mentioning features or use of this software 161.1Srjs * must display the following acknowledgement: 171.1Srjs * This product includes software developed by HAYAKAWA Koichi. 181.1Srjs * 4. The name of the author may not be used to endorse or promote products 191.1Srjs * derived from this software without specific prior written permission. 201.1Srjs * 211.1Srjs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.1Srjs * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.1Srjs * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.1Srjs * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.1Srjs * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.1Srjs * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.1Srjs * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.1Srjs * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.1Srjs * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.1Srjs * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.1Srjs */ 321.1Srjs 331.1Srjs 341.1Srjs#if !defined _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ 351.1Srjs#define _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ 361.1Srjs 371.1Srjsstruct pci_attach_args; /* XXX */ 381.1Srjs 391.1Srjs#define md_space_map(bt, physaddr, size, flags, bshp) \ 401.1Srjs _x86_memio_map((bt), (physaddr), (size), (flags), (bshp)) 411.1Srjs 421.1Srjs#define md_space_unmap(bt, bsh, size, adrp) \ 431.1Srjs _x86_memio_unmap((bt), (bsh), (size), (adrp)) 441.1Srjs 451.1Srjs 461.1Srjsrbus_tag_t rbus_pccbb_parent_io(struct pci_attach_args *); 471.1Srjsrbus_tag_t rbus_pccbb_parent_mem(struct pci_attach_args *); 481.1Srjs 491.1Srjs#endif /* _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ */ 50