mem.c (183397) | mem.c (201223) |
---|---|
1/*- 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, and code derived from software contributed to --- 23 unchanged lines hidden (view full) --- 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * from: Utah $Hdr: mem.c 1.13 89/10/08$ 36 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91 37 */ 38 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, and code derived from software contributed to --- 23 unchanged lines hidden (view full) --- 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * from: Utah $Hdr: mem.c 1.13 89/10/08$ 36 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/ia64/ia64/mem.c 183397 2008-09-27 08:51:18Z ed $"); | 40__FBSDID("$FreeBSD: head/sys/ia64/ia64/mem.c 201223 2009-12-29 21:51:28Z rnoland $"); |
41 42/* 43 * Memory special file 44 */ 45 46#include <sys/param.h> 47#include <sys/conf.h> 48#include <sys/fcntl.h> --- 94 unchanged lines hidden (view full) --- 143 return (error); 144} 145 146/* 147 * allow user processes to MMAP some memory sections 148 * instead of going through read/write 149 */ 150int | 41 42/* 43 * Memory special file 44 */ 45 46#include <sys/param.h> 47#include <sys/conf.h> 48#include <sys/fcntl.h> --- 94 unchanged lines hidden (view full) --- 143 return (error); 144} 145 146/* 147 * allow user processes to MMAP some memory sections 148 * instead of going through read/write 149 */ 150int |
151memmmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int prot) | 151memmmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, 152 int prot, vm_memattr_t *memattr) |
152{ 153 /* 154 * /dev/mem is the only one that makes sense through this 155 * interface. For /dev/kmem any physaddr we return here 156 * could be transient and hence incorrect or invalid at 157 * a later time. 158 */ 159 if (dev2unit(dev) != CDEV_MINOR_MEM) --- 15 unchanged lines hidden --- | 153{ 154 /* 155 * /dev/mem is the only one that makes sense through this 156 * interface. For /dev/kmem any physaddr we return here 157 * could be transient and hence incorrect or invalid at 158 * a later time. 159 */ 160 if (dev2unit(dev) != CDEV_MINOR_MEM) --- 15 unchanged lines hidden --- |