xref: /netbsd-src/sys/arch/x86/pci/pcibvar.h (revision 9b779d6eb6237a1ed95db47f438f9511034ae907)
1*9b779d6eSdyoung /*	$NetBSD: pcibvar.h,v 1.2 2009/08/18 17:15:10 dyoung Exp $	*/
2e394f32aSmartin 
3e394f32aSmartin /*-
4e394f32aSmartin  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
5e394f32aSmartin  * All rights reserved.
6e394f32aSmartin  *
7e394f32aSmartin  * This code is derived from software contributed to The NetBSD Foundation
8e394f32aSmartin  * by Jason R. Thorpe.
9e394f32aSmartin  *
10e394f32aSmartin  * Redistribution and use in source and binary forms, with or without
11e394f32aSmartin  * modification, are permitted provided that the following conditions
12e394f32aSmartin  * are met:
13e394f32aSmartin  * 1. Redistributions of source code must retain the above copyright
14e394f32aSmartin  *    notice, this list of conditions and the following disclaimer.
15e394f32aSmartin  * 2. Redistributions in binary form must reproduce the above copyright
16e394f32aSmartin  *    notice, this list of conditions and the following disclaimer in the
17e394f32aSmartin  *    documentation and/or other materials provided with the distribution.
18e394f32aSmartin  *
19e394f32aSmartin  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20e394f32aSmartin  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21e394f32aSmartin  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22e394f32aSmartin  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23e394f32aSmartin  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24e394f32aSmartin  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25e394f32aSmartin  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26e394f32aSmartin  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27e394f32aSmartin  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28e394f32aSmartin  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29e394f32aSmartin  * POSSIBILITY OF SUCH DAMAGE.
30e394f32aSmartin  */
31e394f32aSmartin 
32e394f32aSmartin struct pcib_softc {
33e394f32aSmartin 	pci_chipset_tag_t	sc_pc;
34e394f32aSmartin 	pcitag_t		sc_tag;
35*9b779d6eSdyoung 	device_t		sc_isabus;
36e394f32aSmartin };
37e394f32aSmartin 
38*9b779d6eSdyoung void	pcibattach(device_t, device_t, void *);
39*9b779d6eSdyoung void	pcibchilddet(device_t, device_t);
40*9b779d6eSdyoung int	pcibdetach(device_t, int);
41*9b779d6eSdyoung int	pcibrescan(device_t, const char *, const int *);
42