1183371Simp/*-
2183371Simp * Copyright (c) 2007 Bruce M. Simpson.
3183371Simp * All rights reserved.
4183371Simp *
5183371Simp * Redistribution and use in source and binary forms, with or without
6183371Simp * modification, are permitted provided that the following conditions
7183371Simp * are met:
8183371Simp * 1. Redistributions of source code must retain the above copyright
9183371Simp *    notice, this list of conditions and the following disclaimer.
10183371Simp * 2. Redistributions in binary form must reproduce the above copyright
11183371Simp *    notice, this list of conditions and the following disclaimer in the
12183371Simp *    documentation and/or other materials provided with the distribution.
13183371Simp *
14183371Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15183371Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16183371Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17183371Simp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18183371Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19183371Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20183371Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21183371Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22183371Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23183371Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24183371Simp * SUCH DAMAGE.
25183371Simp *
26183371Simp * $FreeBSD$
27183371Simp */
28183371Simp
29183371Simp#ifndef _SIBA_PCIBVAR_H_
30183371Simp#define _SIBA_PCIBVAR_H_
31183371Simp
32183371Simp#include <sys/rman.h>
33183371Simp
34183371Simpstruct siba_pcib_softc {
35183371Simp	device_t		 sc_dev;	/* Device ID */
36183371Simp	u_int			 sc_bus;	/* PCI bus number */
37183371Simp	struct resource		*sc_mem;	/* siba memory window */
38183371Simp	struct resource		*sc_csr;	/* config space */
39183371Simp
40183371Simp	bus_space_tag_t		 sc_bt;
41183371Simp	bus_space_handle_t	 sc_bh;
42183371Simp#if 0
43183371Simp	bus_addr_t		 sc_maddr;
44183371Simp	bus_size_t		 sc_msize;
45183371Simp
46183371Simp	struct bus_space	 sc_pci_memt;
47183371Simp	struct bus_space	 sc_pci_iot;
48183371Simp	bus_dma_tag_t		 sc_dmat;
49183371Simp#endif
50183371Simp};
51183371Simp
52183371Simp#endif /* _SIBA_PCIBVAR_H_ */
53