Deleted Added
sdiff udiff text old ( 186909 ) new ( 186932 )
full compact
1/*-
2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD.
3 * All rights reserved.
4 *
5 * Developed by Semihalf.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/arm/mv/orion/db88f5xxx.c 186932 2009-01-09 10:20:51Z raj $");
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/bus.h>
38#include <sys/kernel.h>
39
40#include <vm/vm.h>
41#include <vm/pmap.h>

--- 76 unchanged lines hidden (view full) ---

118 MV_DEV_CS0_PHYS_BASE,
119 MV_DEV_CS0_SIZE,
120 VM_PROT_READ | VM_PROT_WRITE,
121 PTE_NOCACHE,
122 },
123 { 0, 0, 0, 0, 0, }
124};
125
126/*
127 * The pci_irq_map table consists of 3 columns:
128 * - PCI slot number (less than zero means ANY).
129 * - PCI IRQ pin (less than zero means ANY).
130 * - PCI IRQ (less than zero marks end of table).
131 *
132 * IRQ number from the first matching entry is used to configure PCI device
133 */
134
135/* PCI IRQ Map for DB-88F5281 */
136const struct obio_pci_irq_map pci_irq_map[] = {
137 { 7, -1, GPIO2IRQ(12) },
138 { 8, -1, GPIO2IRQ(13) },
139 { 9, -1, GPIO2IRQ(13) },
140 { -1, -1, -1 }
141};
142
143#if 0
144/* PCI IRQ Map for DB-88F5182 */
145const struct obio_pci_irq_map pci_irq_map[] = {
146 { 7, -1, GPIO2IRQ(0) },
147 { 8, -1, GPIO2IRQ(1) },
148 { 9, -1, GPIO2IRQ(1) },
149 { -1, -1, -1 }
150};
151#endif
152
153/*
154 * mv_gpio_config row structure:
155 * <GPIO number>, <GPIO flags>, <GPIO mode>
156 *
157 * - GPIO pin number (less than zero marks end of table)
158 * - GPIO flags:
159 * MV_GPIO_BLINK
160 * MV_GPIO_POLAR_LOW

--- 103 unchanged lines hidden ---