Deleted Added
full compact
drm_vm.c (190170) drm_vm.c (201223)
1/*-
2 * Copyright 2003 Eric Anholt
3 * All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,

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

17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * ERIC ANHOLT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#include <sys/cdefs.h>
1/*-
2 * Copyright 2003 Eric Anholt
3 * All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,

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

17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * ERIC ANHOLT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#include <sys/cdefs.h>
25__FBSDID("$FreeBSD: head/sys/dev/drm/drm_vm.c 190170 2009-03-20 18:35:16Z rnoland $");
25__FBSDID("$FreeBSD: head/sys/dev/drm/drm_vm.c 201223 2009-12-29 21:51:28Z rnoland $");
26
27/** @file drm_vm.c
28 * Support code for mmaping of DRM maps.
29 */
30
31#include "dev/drm/drmP.h"
32#include "dev/drm/drm.h"
33
26
27/** @file drm_vm.c
28 * Support code for mmaping of DRM maps.
29 */
30
31#include "dev/drm/drmP.h"
32#include "dev/drm/drm.h"
33
34int drm_mmap(struct cdev *kdev, vm_offset_t offset, vm_paddr_t *paddr,
35 int prot)
34int drm_mmap(struct cdev *kdev, vm_ooffset_t offset, vm_paddr_t *paddr,
35 int prot, vm_memattr_t *memattr)
36{
37 struct drm_device *dev = drm_get_device_from_kdev(kdev);
38 struct drm_file *file_priv = NULL;
39 drm_local_map_t *map;
40 enum drm_map_type type;
41 vm_paddr_t phys;
42 int error;
43

--- 85 unchanged lines hidden ---
36{
37 struct drm_device *dev = drm_get_device_from_kdev(kdev);
38 struct drm_file *file_priv = NULL;
39 drm_local_map_t *map;
40 enum drm_map_type type;
41 vm_paddr_t phys;
42 int error;
43

--- 85 unchanged lines hidden ---