lpc_machdep.c (257200) | lpc_machdep.c (257201) |
---|---|
1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * 35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45 36 */ 37 38#include "opt_ddb.h" 39#include "opt_platform.h" 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * 35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45 36 */ 37 38#include "opt_ddb.h" 39#include "opt_platform.h" 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/arm/lpc/lpc_machdep.c 257200 2013-10-27 01:34:10Z ian $"); | 42__FBSDID("$FreeBSD: head/sys/arm/lpc/lpc_machdep.c 257201 2013-10-27 03:13:26Z ian $"); |
43 44#define _ARM32_BUS_DMA_PRIVATE 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/bus.h> 48 49#include <vm/vm.h> 50#include <vm/pmap.h> --- 10 unchanged lines hidden (view full) --- 61vm_offset_t 62initarm_lastaddr(void) 63{ 64 65 if (fdt_immr_addr(LPC_DEV_BASE) != 0) 66 while (1); 67 68 /* Platform-specific initialisation */ | 43 44#define _ARM32_BUS_DMA_PRIVATE 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/bus.h> 48 49#include <vm/vm.h> 50#include <vm/pmap.h> --- 10 unchanged lines hidden (view full) --- 61vm_offset_t 62initarm_lastaddr(void) 63{ 64 65 if (fdt_immr_addr(LPC_DEV_BASE) != 0) 66 while (1); 67 68 /* Platform-specific initialisation */ |
69 return (fdt_immr_va - ARM_NOCACHE_KVA_SIZE); | 69 return (fdt_immr_va); |
70} 71 72void 73initarm_gpio_init(void) 74{ 75 76 /* 77 * Set initial values of GPIO output ports --- 63 unchanged lines hidden --- | 70} 71 72void 73initarm_gpio_init(void) 74{ 75 76 /* 77 * Set initial values of GPIO output ports --- 63 unchanged lines hidden --- |