pci_machdep.h revision 1.13
11.13Sgarbled/*	$NetBSD: pci_machdep.h,v 1.13 2007/10/17 19:54:00 garbled Exp $	*/
21.1Ssakamoto
31.13Sgarbled/*-
41.13Sgarbled * Copyright (c) 2007 The NetBSD Foundation, Inc.
51.13Sgarbled * All rights reserved.
61.13Sgarbled *
71.13Sgarbled * This code is derived from software contributed to The NetBSD Foundation
81.13Sgarbled * by Tim Rightnour
91.1Ssakamoto *
101.1Ssakamoto * Redistribution and use in source and binary forms, with or without
111.1Ssakamoto * modification, are permitted provided that the following conditions
121.1Ssakamoto * are met:
131.1Ssakamoto * 1. Redistributions of source code must retain the above copyright
141.1Ssakamoto *    notice, this list of conditions and the following disclaimer.
151.1Ssakamoto * 2. Redistributions in binary form must reproduce the above copyright
161.1Ssakamoto *    notice, this list of conditions and the following disclaimer in the
171.1Ssakamoto *    documentation and/or other materials provided with the distribution.
181.1Ssakamoto * 3. All advertising materials mentioning features or use of this software
191.1Ssakamoto *    must display the following acknowledgement:
201.13Sgarbled *        This product includes software developed by the NetBSD
211.13Sgarbled *        Foundation, Inc. and its contributors.
221.13Sgarbled * 4. Neither the name of The NetBSD Foundation nor the names of its
231.13Sgarbled *    contributors may be used to endorse or promote products derived
241.13Sgarbled *    from this software without specific prior written permission.
251.1Ssakamoto *
261.13Sgarbled * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.13Sgarbled * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.13Sgarbled * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.13Sgarbled * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.13Sgarbled * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.13Sgarbled * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.13Sgarbled * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.13Sgarbled * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.13Sgarbled * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.13Sgarbled * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.13Sgarbled * POSSIBILITY OF SUCH DAMAGE.
371.1Ssakamoto */
381.1Ssakamoto
391.13Sgarbled#ifndef _MACHINE_PCI_MACHDEP_H_
401.13Sgarbled#define _MACHINE_PCI_MACHDEP_H_
411.13Sgarbled
421.13Sgarbled#include <powerpc/pci_machdep.h>
431.13Sgarbled
441.13Sgarbled#ifdef _KERNEL
451.1Ssakamoto
461.1Ssakamoto/*
471.13Sgarbled * bebox-specific PCI structure and type definitions.
481.1Ssakamoto * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
491.1Ssakamoto */
501.1Ssakamoto
511.13Sgarbledvoid bebox_pci_conf_interrupt(pci_chipset_tag_t, int, int, int, int, int *);
521.13Sgarbledvoid bebox_pci_get_chipset_tag(pci_chipset_tag_t);
531.7Ssommerfe
541.9Smattextern struct powerpc_bus_dma_tag pci_bus_dma_tag;
551.1Ssakamoto
561.13Sgarbled#endif /* _KERNEL */
571.13Sgarbled#endif /* _MACHINE_PCI_MACHDEP_H_ */
58