11.2Ssnj/*	$NetBSD: rbus_machdep.h,v 1.2 2009/12/15 22:17:12 snj 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 *
161.1Srjs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
171.1Srjs * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
181.1Srjs * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
191.1Srjs * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
201.1Srjs * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
211.1Srjs * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
221.1Srjs * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
231.1Srjs * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
241.1Srjs * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
251.1Srjs * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
261.1Srjs */
271.1Srjs
281.1Srjs#if !defined _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_
291.1Srjs#define _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_
301.1Srjs
311.1Srjsstruct pci_attach_args;		/* XXX */
321.1Srjs
331.1Srjs#define md_space_map(bt, physaddr, size, flags, bshp) \
341.1Srjs	_x86_memio_map((bt), (physaddr), (size), (flags), (bshp))
351.1Srjs
361.1Srjs#define md_space_unmap(bt, bsh, size, adrp) \
371.1Srjs	_x86_memio_unmap((bt), (bsh), (size), (adrp))
381.1Srjs
391.1Srjs
401.1Srjsrbus_tag_t rbus_pccbb_parent_io(struct pci_attach_args *);
411.1Srjsrbus_tag_t rbus_pccbb_parent_mem(struct pci_attach_args *);
421.1Srjs
431.1Srjs#endif /* _ARCH_AMD64_AMD64_RBUS_MACHDEP_H_ */
44