1/* $NetBSD: i80321var.h,v 1.8 2003/10/06 16:06:06 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
5 * All rights reserved.
6 *
7 * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8 *
--- 20 unchanged lines hidden (view full) ---
29 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 * $FreeBSD: head/sys/arm/xscale/i80321/i80321var.h 161592 2006-08-24 23:51:28Z cognet $
38 *
39 */
40
41#ifndef _ARM_XSCALE_I80321VAR_H_
42#define _ARM_XSCALE_I80321VAR_H_
43
44#include <sys/queue.h>
45#include <dev/pci/pcivar.h>
--- 60 unchanged lines hidden (view full) ---
106 struct bus_space sc_pci_memt;
107
108 /* GPIO state */
109 uint8_t sc_gpio_dir; /* GPIO pin direction (1 == output) */
110 uint8_t sc_gpio_val; /* GPIO output pin value */
111 struct rman sc_irq_rman;
112
113};
114
115
116struct i80321_pci_softc {
117 device_t sc_dev;
118 bus_space_tag_t sc_st;
119 bus_space_handle_t sc_atu_sh;
120 bus_space_tag_t sc_pciio;
121 bus_space_tag_t sc_pcimem;
122 int sc_busno;
123 struct rman sc_mem_rman;
124 struct rman sc_io_rman;
125 struct rman sc_irq_rman;
126 uint32_t sc_mem;
127 uint32_t sc_io;
128};
129
130void i80321_sdram_bounds(bus_space_tag_t, bus_space_handle_t,
131 vm_paddr_t *, vm_size_t *);
132
133void i80321_attach(struct i80321_softc *);
134void i80321_calibrate_delay(void);
135
136void i80321_bs_init(bus_space_tag_t, void *);
137void i80321_io_bs_init(bus_space_tag_t, void *);
138void i80321_mem_bs_init(bus_space_tag_t, void *);
139extern int machdep_pci_route_interrupt(device_t pcib, device_t dev, int pin);
140
141
142#endif /* _ARM_XSCALE_I80321VAR_H_ */
2
3/*-
4 * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
5 * All rights reserved.
6 *
7 * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8 *
--- 20 unchanged lines hidden (view full) ---
29 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 *
37 * $FreeBSD: head/sys/arm/xscale/i80321/i80321var.h 161592 2006-08-24 23:51:28Z cognet $
38 *
39 */
40
41#ifndef _ARM_XSCALE_I80321VAR_H_
42#define _ARM_XSCALE_I80321VAR_H_
43
44#include <sys/queue.h>
45#include <dev/pci/pcivar.h>
--- 60 unchanged lines hidden (view full) ---
106 struct bus_space sc_pci_memt;
107
108 /* GPIO state */
109 uint8_t sc_gpio_dir; /* GPIO pin direction (1 == output) */
110 uint8_t sc_gpio_val; /* GPIO output pin value */
111 struct rman sc_irq_rman;
112
113};
114
115
116struct i80321_pci_softc {
117 device_t sc_dev;
118 bus_space_tag_t sc_st;
119 bus_space_handle_t sc_atu_sh;
120 bus_space_tag_t sc_pciio;
121 bus_space_tag_t sc_pcimem;
122 int sc_busno;
123 struct rman sc_mem_rman;
124 struct rman sc_io_rman;
125 struct rman sc_irq_rman;
126 uint32_t sc_mem;
127 uint32_t sc_io;
128};
129
130void i80321_sdram_bounds(bus_space_tag_t, bus_space_handle_t,
131 vm_paddr_t *, vm_size_t *);
132
133void i80321_attach(struct i80321_softc *);
134void i80321_calibrate_delay(void);
135
136void i80321_bs_init(bus_space_tag_t, void *);
137void i80321_io_bs_init(bus_space_tag_t, void *);
138void i80321_mem_bs_init(bus_space_tag_t, void *);
139extern int machdep_pci_route_interrupt(device_t pcib, device_t dev, int pin);
140
141
142#endif /* _ARM_XSCALE_I80321VAR_H_ */