ixdp425_pci.c (177456) | ixdp425_pci.c (196479) |
---|---|
1/* $NetBSD: ixdp425_pci.c,v 1.5 2005/12/11 12:17:09 christos Exp $ */ 2/* 3 * Copyright (c) 2003 4 * Ichiro FUKUHARA <ichiro@ichiro.org>. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> | 1/* $NetBSD: ixdp425_pci.c,v 1.5 2005/12/11 12:17:09 christos Exp $ */ 2/* 3 * Copyright (c) 2003 4 * Ichiro FUKUHARA <ichiro@ichiro.org>. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/ixdp425_pci.c 177456 2008-03-20 15:54:19Z sam $"); | 36__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/ixdp425_pci.c 196479 2009-08-23 19:54:36Z cognet $"); |
37 38#define _ARM32_BUS_DMA_PRIVATE 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/bus.h> 42#include <sys/kernel.h> 43#include <sys/module.h> 44#include <sys/malloc.h> --- 12 unchanged lines hidden (view full) --- 57 struct ixp425_softc *sc = device_get_softc(device_get_parent(dev)); 58 struct ixppcib_softc *pci_sc = device_get_softc(dev); 59 uint32_t reg; 60 61 62 /* PCI Reset Assert */ 63 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOUTR); 64 reg &= ~(1U << GPIO_PCI_RESET); | 37 38#define _ARM32_BUS_DMA_PRIVATE 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/bus.h> 42#include <sys/kernel.h> 43#include <sys/module.h> 44#include <sys/malloc.h> --- 12 unchanged lines hidden (view full) --- 57 struct ixp425_softc *sc = device_get_softc(device_get_parent(dev)); 58 struct ixppcib_softc *pci_sc = device_get_softc(dev); 59 uint32_t reg; 60 61 62 /* PCI Reset Assert */ 63 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOUTR); 64 reg &= ~(1U << GPIO_PCI_RESET); |
65 GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg & ~(1U << GPIO_PCI_RESET)); | 65 GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg); |
66 67 /* PCI Clock Disable */ 68 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPCLKR); 69 reg &= ~GPCLKR_MUX14; | 66 67 /* PCI Clock Disable */ 68 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPCLKR); 69 reg &= ~GPCLKR_MUX14; |
70 GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg & ~GPCLKR_MUX14); | 70 GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg); |
71 72 /* 73 * set GPIO Direction 74 * Output: PCI_CLK, PCI_RESET 75 * Input: PCI_INTA, PCI_INTB, PCI_INTC, PCI_INTD 76 */ 77 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOER); 78 reg &= ~(1U << GPIO_PCI_CLK); --- 92 unchanged lines hidden --- | 71 72 /* 73 * set GPIO Direction 74 * Output: PCI_CLK, PCI_RESET 75 * Input: PCI_INTA, PCI_INTB, PCI_INTC, PCI_INTD 76 */ 77 reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOER); 78 reg &= ~(1U << GPIO_PCI_CLK); --- 92 unchanged lines hidden --- |