ixp425var.h (164426) | ixp425var.h (166064) |
---|---|
1/* $NetBSD: ixp425var.h,v 1.10 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/* $NetBSD: ixp425var.h,v 1.10 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/arm/xscale/ixp425/ixp425var.h 164426 2006-11-19 23:55:23Z sam $ | 35 * $FreeBSD: head/sys/arm/xscale/ixp425/ixp425var.h 166064 2007-01-17 00:58:25Z cognet $ |
36 * 37 */ 38 39#ifndef _IXP425VAR_H_ 40#define _IXP425VAR_H_ 41 42#include <sys/conf.h> 43#include <sys/queue.h> --- 8 unchanged lines hidden (view full) --- 52 bus_space_tag_t sc_iot; 53 bus_space_handle_t sc_gpio_ioh; 54 bus_space_handle_t sc_exp_ioh; 55 56 u_int32_t sc_intrmask; 57 58 struct rman sc_irq_rman; 59 struct rman sc_mem_rman; | 36 * 37 */ 38 39#ifndef _IXP425VAR_H_ 40#define _IXP425VAR_H_ 41 42#include <sys/conf.h> 43#include <sys/queue.h> --- 8 unchanged lines hidden (view full) --- 52 bus_space_tag_t sc_iot; 53 bus_space_handle_t sc_gpio_ioh; 54 bus_space_handle_t sc_exp_ioh; 55 56 u_int32_t sc_intrmask; 57 58 struct rman sc_irq_rman; 59 struct rman sc_mem_rman; |
60 bus_dma_tag_t sc_dmat; |
|
60}; 61 62struct ixppcib_softc { 63 device_t sc_dev; 64 65 u_int sc_bus; 66 67 struct resource *sc_csr; 68 struct resource *sc_mem; 69 70 struct rman sc_io_rman; 71 struct rman sc_mem_rman; 72 struct rman sc_irq_rman; 73 74 struct bus_space sc_pci_memt; 75 struct bus_space sc_pci_iot; | 61}; 62 63struct ixppcib_softc { 64 device_t sc_dev; 65 66 u_int sc_bus; 67 68 struct resource *sc_csr; 69 struct resource *sc_mem; 70 71 struct rman sc_io_rman; 72 struct rman sc_mem_rman; 73 struct rman sc_irq_rman; 74 75 struct bus_space sc_pci_memt; 76 struct bus_space sc_pci_iot; |
77 bus_dma_tag_t sc_dmat; |
|
76}; 77 78#define EXP_BUS_WRITE_4(sc, reg, data) \ 79 bus_space_write_4(sc->sc_iot, sc->sc_exp_ioh, reg, data) 80#define EXP_BUS_READ_4(sc, reg) \ 81 bus_space_read_4(sc->sc_iot, sc->sc_exp_ioh, reg) 82 83#define GPIO_CONF_WRITE_4(sc, reg, data) \ --- 16 unchanged lines hidden --- | 78}; 79 80#define EXP_BUS_WRITE_4(sc, reg, data) \ 81 bus_space_write_4(sc->sc_iot, sc->sc_exp_ioh, reg, data) 82#define EXP_BUS_READ_4(sc, reg) \ 83 bus_space_read_4(sc->sc_iot, sc->sc_exp_ioh, reg) 84 85#define GPIO_CONF_WRITE_4(sc, reg, data) \ --- 16 unchanged lines hidden --- |