zy7_machdep.c (257200) | zy7_machdep.c (257201) |
---|---|
1/*- 2 * Copyright (c) 2013 Thomas Skibo 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2013 Thomas Skibo 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/arm/xilinx/zy7_machdep.c 257200 2013-10-27 01:34:10Z ian $ | 26 * $FreeBSD: head/sys/arm/xilinx/zy7_machdep.c 257201 2013-10-27 03:13:26Z ian $ |
27 */ 28 29/* 30 * Machine dependent code for Xilinx Zynq-7000 Soc. 31 * 32 * Reference: Zynq-7000 All Programmable SoC Technical Reference Manual. 33 * (v1.4) November 16, 2012. Xilinx doc UG585. 34 */ 35 36#include "opt_global.h" 37 38#include <sys/cdefs.h> | 27 */ 28 29/* 30 * Machine dependent code for Xilinx Zynq-7000 Soc. 31 * 32 * Reference: Zynq-7000 All Programmable SoC Technical Reference Manual. 33 * (v1.4) November 16, 2012. Xilinx doc UG585. 34 */ 35 36#include "opt_global.h" 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/arm/xilinx/zy7_machdep.c 257200 2013-10-27 01:34:10Z ian $"); | 39__FBSDID("$FreeBSD: head/sys/arm/xilinx/zy7_machdep.c 257201 2013-10-27 03:13:26Z ian $"); |
40 41#define _ARM32_BUS_DMA_PRIVATE 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/bus.h> 45 46#include <vm/vm.h> 47#include <vm/pmap.h> --- 6 unchanged lines hidden (view full) --- 54#include <arm/xilinx/zy7_reg.h> 55 56void (*zynq7_cpu_reset)(void); 57 58vm_offset_t 59initarm_lastaddr(void) 60{ 61 | 40 41#define _ARM32_BUS_DMA_PRIVATE 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/bus.h> 45 46#include <vm/vm.h> 47#include <vm/pmap.h> --- 6 unchanged lines hidden (view full) --- 54#include <arm/xilinx/zy7_reg.h> 55 56void (*zynq7_cpu_reset)(void); 57 58vm_offset_t 59initarm_lastaddr(void) 60{ 61 |
62 return (ZYNQ7_PSIO_VBASE - ARM_NOCACHE_KVA_SIZE); | 62 return (ZYNQ7_PSIO_VBASE); |
63} 64 65void 66initarm_gpio_init(void) 67{ 68} 69 70void --- 90 unchanged lines hidden --- | 63} 64 65void 66initarm_gpio_init(void) 67{ 68} 69 70void --- 90 unchanged lines hidden --- |