Deleted Added
full compact
drmP.h (247832) drmP.h (247835)
1/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
2 * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
3 */
4/*-
5 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
6 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
7 * All rights reserved.
8 *

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

27 *
28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Gareth Hughes <gareth@valinux.com>
31 *
32 */
33
34#include <sys/cdefs.h>
1/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
2 * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
3 */
4/*-
5 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
6 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
7 * All rights reserved.
8 *

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

27 *
28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Gareth Hughes <gareth@valinux.com>
31 *
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/drm2/drmP.h 247832 2013-03-05 09:07:01Z kib $");
35__FBSDID("$FreeBSD: head/sys/dev/drm2/drmP.h 247835 2013-03-05 09:49:34Z kib $");
36
37#ifndef _DRM_P_H_
38#define _DRM_P_H_
39
40#if defined(_KERNEL) || defined(__KERNEL__)
41
42struct drm_device;
43struct drm_file;

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

901 atomic_t *ctx_bitmap;
902 void *dev_private;
903 unsigned int agp_buffer_token;
904 drm_local_map_t *agp_buffer_map;
905
906 struct drm_minor *control; /**< Control node for card */
907 struct drm_minor *primary; /**< render type primary screen head */
908
36
37#ifndef _DRM_P_H_
38#define _DRM_P_H_
39
40#if defined(_KERNEL) || defined(__KERNEL__)
41
42struct drm_device;
43struct drm_file;

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

901 atomic_t *ctx_bitmap;
902 void *dev_private;
903 unsigned int agp_buffer_token;
904 drm_local_map_t *agp_buffer_map;
905
906 struct drm_minor *control; /**< Control node for card */
907 struct drm_minor *primary; /**< render type primary screen head */
908
909 void *drm_ttm_bo;
909 struct unrhdr *drw_unrhdr;
910 /* RB tree of drawable infos */
911 RB_HEAD(drawable_tree, bsd_drm_drawable_info) drw_head;
912
913 int vblank_disable_allowed;
914
915 atomic_t *_vblank_count; /**< number of VBLANK interrupts (driver must alloc the right number of counters) */
916 struct timeval *_vblank_time; /**< timestamp of current vblank_count (drivers must alloc right number of fields) */

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

1297struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev,
1298 struct drm_file *file_priv, uint32_t handle);
1299
1300void drm_gem_open(struct drm_device *dev, struct drm_file *file_priv);
1301void drm_gem_release(struct drm_device *dev, struct drm_file *file_priv);
1302
1303int drm_gem_create_mmap_offset(struct drm_gem_object *obj);
1304void drm_gem_free_mmap_offset(struct drm_gem_object *obj);
910 struct unrhdr *drw_unrhdr;
911 /* RB tree of drawable infos */
912 RB_HEAD(drawable_tree, bsd_drm_drawable_info) drw_head;
913
914 int vblank_disable_allowed;
915
916 atomic_t *_vblank_count; /**< number of VBLANK interrupts (driver must alloc the right number of counters) */
917 struct timeval *_vblank_time; /**< timestamp of current vblank_count (drivers must alloc right number of fields) */

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

1298struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev,
1299 struct drm_file *file_priv, uint32_t handle);
1300
1301void drm_gem_open(struct drm_device *dev, struct drm_file *file_priv);
1302void drm_gem_release(struct drm_device *dev, struct drm_file *file_priv);
1303
1304int drm_gem_create_mmap_offset(struct drm_gem_object *obj);
1305void drm_gem_free_mmap_offset(struct drm_gem_object *obj);
1305int drm_gem_mmap_single(struct cdev *kdev, vm_ooffset_t *offset, vm_size_t size,
1306 struct vm_object **obj_res, int nprot);
1306int drm_gem_mmap_single(struct drm_device *dev, vm_ooffset_t *offset,
1307 vm_size_t size, struct vm_object **obj_res, int nprot);
1307void drm_gem_pager_dtr(void *obj);
1308
1308void drm_gem_pager_dtr(void *obj);
1309
1310struct ttm_bo_device;
1311int ttm_bo_mmap_single(struct ttm_bo_device *bdev, vm_ooffset_t *offset,
1312 vm_size_t size, struct vm_object **obj_res, int nprot);
1313
1309void drm_device_lock_mtx(struct drm_device *dev);
1310void drm_device_unlock_mtx(struct drm_device *dev);
1311int drm_device_sleep_mtx(struct drm_device *dev, void *chan, int flags,
1312 const char *msg, int timeout);
1313void drm_device_assert_mtx_locked(struct drm_device *dev);
1314void drm_device_assert_mtx_unlocked(struct drm_device *dev);
1315
1316void drm_device_lock_struct(struct drm_device *dev);

--- 90 unchanged lines hidden ---
1314void drm_device_lock_mtx(struct drm_device *dev);
1315void drm_device_unlock_mtx(struct drm_device *dev);
1316int drm_device_sleep_mtx(struct drm_device *dev, void *chan, int flags,
1317 const char *msg, int timeout);
1318void drm_device_assert_mtx_locked(struct drm_device *dev);
1319void drm_device_assert_mtx_unlocked(struct drm_device *dev);
1320
1321void drm_device_lock_struct(struct drm_device *dev);

--- 90 unchanged lines hidden ---