Deleted Added
full compact
mem.c (123180) mem.c (126080)
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

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

36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * from: Utah $Hdr: mem.c 1.13 89/10/08$
40 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91
41 */
42
43#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

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

36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * from: Utah $Hdr: mem.c 1.13 89/10/08$
40 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91
41 */
42
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD: head/sys/amd64/amd64/mem.c 123180 2003-12-06 23:19:47Z peter $");
44__FBSDID("$FreeBSD: head/sys/amd64/amd64/mem.c 126080 2004-02-21 21:10:55Z phk $");
45
46/*
47 * Memory special file
48 */
49
50#include <sys/param.h>
51#include <sys/conf.h>
52#include <sys/fcntl.h>

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

76static d_open_t mmopen;
77static d_close_t mmclose;
78static d_read_t mmrw;
79static d_ioctl_t mmioctl;
80static d_mmap_t memmmap;
81
82#define CDEV_MAJOR 2
83static struct cdevsw mem_cdevsw = {
45
46/*
47 * Memory special file
48 */
49
50#include <sys/param.h>
51#include <sys/conf.h>
52#include <sys/fcntl.h>

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

76static d_open_t mmopen;
77static d_close_t mmclose;
78static d_read_t mmrw;
79static d_ioctl_t mmioctl;
80static d_mmap_t memmmap;
81
82#define CDEV_MAJOR 2
83static struct cdevsw mem_cdevsw = {
84 .d_version = D_VERSION,
84 .d_open = mmopen,
85 .d_close = mmclose,
86 .d_read = mmrw,
87 .d_write = mmrw,
88 .d_ioctl = mmioctl,
89 .d_mmap = memmmap,
90 .d_name = "mem",
91 .d_maj = CDEV_MAJOR,
85 .d_open = mmopen,
86 .d_close = mmclose,
87 .d_read = mmrw,
88 .d_write = mmrw,
89 .d_ioctl = mmioctl,
90 .d_mmap = memmmap,
91 .d_name = "mem",
92 .d_maj = CDEV_MAJOR,
92 .d_flags = D_MEM,
93 .d_flags = D_MEM | D_NEEDGIANT,
93};
94
95MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
96
97struct mem_range_softc mem_range_softc;
98
99static int
100mmclose(dev_t dev, int flags, int fmt, struct thread *td)

--- 269 unchanged lines hidden ---
94};
95
96MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
97
98struct mem_range_softc mem_range_softc;
99
100static int
101mmclose(dev_t dev, int flags, int fmt, struct thread *td)

--- 269 unchanged lines hidden ---