db88f5xxx.c (194072) | db88f5xxx.c (196531) |
---|---|
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> | 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 194072 2009-06-12 20:00:38Z marcel $"); | 33__FBSDID("$FreeBSD: head/sys/arm/mv/orion/db88f5xxx.c 196531 2009-08-25 09:30:03Z 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> --- 23 unchanged lines hidden (view full) --- 65 * 0xf130_0000 - 0xf52f_ffff : PCI-Express memory space (64MB) 66 * 0xf530_0000 - 0xf92f_ffff : PCI memory space (64MB) 67 * 0xf930_0000 - 0xfffe_ffff : unused (~108MB) 68 * 0xffff_0000 - 0xffff_0fff : 'high' vectors page (4KB) 69 * 0xffff_1000 - 0xffff_1fff : ARM_TP_ADDRESS/RAS page (4KB) 70 * 0xffff_2000 - 0xffff_ffff : unused (~55KB) 71 */ 72 | 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> --- 23 unchanged lines hidden (view full) --- 65 * 0xf130_0000 - 0xf52f_ffff : PCI-Express memory space (64MB) 66 * 0xf530_0000 - 0xf92f_ffff : PCI memory space (64MB) 67 * 0xf930_0000 - 0xfffe_ffff : unused (~108MB) 68 * 0xffff_0000 - 0xffff_0fff : 'high' vectors page (4KB) 69 * 0xffff_1000 - 0xffff_1fff : ARM_TP_ADDRESS/RAS page (4KB) 70 * 0xffff_2000 - 0xffff_ffff : unused (~55KB) 71 */ 72 |
73const struct pmap_devmap *pmap_devmap_bootstrap_table; 74vm_offset_t pmap_bootstrap_lastaddr; | |
75int platform_pci_get_irq(u_int bus, u_int slot, u_int func, u_int pin); 76 77/* Static device mappings. */ | 73int platform_pci_get_irq(u_int bus, u_int slot, u_int func, u_int pin); 74 75/* Static device mappings. */ |
78static const struct pmap_devmap pmap_devmap[] = { | 76const struct pmap_devmap pmap_devmap[] = { |
79 /* 80 * Map the on-board devices VA == PA so that we can access them 81 * with the MMU on or off. 82 */ 83 { /* SoC integrated peripherals registers range */ 84 MV_BASE, 85 MV_PHYS_BASE, 86 MV_SIZE, --- 92 unchanged lines hidden (view full) --- 179/* GPIO Configuration for DB-88F5182 */ 180const struct gpio_config mv_gpio_config[] = { 181 { 0, MV_GPIO_POLAR_LOW | MV_GPIO_LEVEL, -1 }, 182 { 1, MV_GPIO_POLAR_LOW | MV_GPIO_LEVEL, -1 }, 183 { -1, -1, -1 } 184}; 185#endif 186 | 77 /* 78 * Map the on-board devices VA == PA so that we can access them 79 * with the MMU on or off. 80 */ 81 { /* SoC integrated peripherals registers range */ 82 MV_BASE, 83 MV_PHYS_BASE, 84 MV_SIZE, --- 92 unchanged lines hidden (view full) --- 177/* GPIO Configuration for DB-88F5182 */ 178const struct gpio_config mv_gpio_config[] = { 179 { 0, MV_GPIO_POLAR_LOW | MV_GPIO_LEVEL, -1 }, 180 { 1, MV_GPIO_POLAR_LOW | MV_GPIO_LEVEL, -1 }, 181 { -1, -1, -1 } 182}; 183#endif 184 |
187int 188platform_pmap_init(void) 189{ 190 191 pmap_bootstrap_lastaddr = MV_BASE - ARM_NOCACHE_KVA_SIZE; 192 pmap_devmap_bootstrap_table = &pmap_devmap[0]; 193 194 return (0); 195} 196 | |
197void 198platform_mpp_init(void) 199{ 200 201 /* 202 * MPP configuration for DB-88F5281 203 * 204 * MPP[2]: PCI_REQn[3] --- 61 unchanged lines hidden --- | 185void 186platform_mpp_init(void) 187{ 188 189 /* 190 * MPP configuration for DB-88F5281 191 * 192 * MPP[2]: PCI_REQn[3] --- 61 unchanged lines hidden --- |