Deleted Added
full compact
drmP.h (198692) drmP.h (203287)
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/drm/drmP.h 198692 2009-10-30 16:59:58Z rnoland $");
35__FBSDID("$FreeBSD: head/sys/dev/drm/drmP.h 203287 2010-01-31 14:25:29Z rnoland $");
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;

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

86#include <sys/agpio.h>
87#include <sys/mutex.h>
88#include <dev/pci/pcivar.h>
89#include <dev/pci/pcireg.h>
90#include <sys/selinfo.h>
91#include <sys/bus.h>
92
93#include "dev/drm/drm.h"
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;

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

86#include <sys/agpio.h>
87#include <sys/mutex.h>
88#include <dev/pci/pcivar.h>
89#include <dev/pci/pcireg.h>
90#include <sys/selinfo.h>
91#include <sys/bus.h>
92
93#include "dev/drm/drm.h"
94#include "dev/drm/drm_linux_list.h"
95#include "dev/drm/drm_atomic.h"
96#include "dev/drm/drm_internal.h"
94#include "dev/drm/drm_atomic.h"
95#include "dev/drm/drm_internal.h"
96#include "dev/drm/drm_linux_list.h"
97
98#include <opt_drm.h>
99#ifdef DRM_DEBUG
100#undef DRM_DEBUG
101#define DRM_DEBUG_DEFAULT_ON 1
102#endif /* DRM_DEBUG */
103
104#if defined(DRM_LINUX) && DRM_LINUX && !defined(__amd64__)

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

142MALLOC_DECLARE(DRM_MEM_QUEUES);
143MALLOC_DECLARE(DRM_MEM_CMDS);
144MALLOC_DECLARE(DRM_MEM_MAPPINGS);
145MALLOC_DECLARE(DRM_MEM_BUFLISTS);
146MALLOC_DECLARE(DRM_MEM_AGPLISTS);
147MALLOC_DECLARE(DRM_MEM_CTXBITMAP);
148MALLOC_DECLARE(DRM_MEM_SGLISTS);
149MALLOC_DECLARE(DRM_MEM_DRAWABLE);
97
98#include <opt_drm.h>
99#ifdef DRM_DEBUG
100#undef DRM_DEBUG
101#define DRM_DEBUG_DEFAULT_ON 1
102#endif /* DRM_DEBUG */
103
104#if defined(DRM_LINUX) && DRM_LINUX && !defined(__amd64__)

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

142MALLOC_DECLARE(DRM_MEM_QUEUES);
143MALLOC_DECLARE(DRM_MEM_CMDS);
144MALLOC_DECLARE(DRM_MEM_MAPPINGS);
145MALLOC_DECLARE(DRM_MEM_BUFLISTS);
146MALLOC_DECLARE(DRM_MEM_AGPLISTS);
147MALLOC_DECLARE(DRM_MEM_CTXBITMAP);
148MALLOC_DECLARE(DRM_MEM_SGLISTS);
149MALLOC_DECLARE(DRM_MEM_DRAWABLE);
150MALLOC_DECLARE(DRM_MEM_MM);
151MALLOC_DECLARE(DRM_MEM_HASHTAB);
150
151SYSCTL_DECL(_hw_drm);
152
153#define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8)
154
155 /* Internal types and structures */
156#define DRM_ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
157#define DRM_MIN(a,b) ((a)<(b)?(a):(b))

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

188#define DRM_UNLOCK() mtx_unlock(&dev->dev_lock)
189#define DRM_SYSCTL_HANDLER_ARGS (SYSCTL_HANDLER_ARGS)
190
191#define DRM_IRQ_ARGS void *arg
192typedef void irqreturn_t;
193#define IRQ_HANDLED /* nothing */
194#define IRQ_NONE /* nothing */
195
152
153SYSCTL_DECL(_hw_drm);
154
155#define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8)
156
157 /* Internal types and structures */
158#define DRM_ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
159#define DRM_MIN(a,b) ((a)<(b)?(a):(b))

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

190#define DRM_UNLOCK() mtx_unlock(&dev->dev_lock)
191#define DRM_SYSCTL_HANDLER_ARGS (SYSCTL_HANDLER_ARGS)
192
193#define DRM_IRQ_ARGS void *arg
194typedef void irqreturn_t;
195#define IRQ_HANDLED /* nothing */
196#define IRQ_NONE /* nothing */
197
198#define unlikely(x) __builtin_expect(!!(x), 0)
199#define container_of(ptr, type, member) ({ \
200 __typeof( ((type *)0)->member ) *__mptr = (ptr); \
201 (type *)( (char *)__mptr - offsetof(type,member) );})
202
196enum {
197 DRM_IS_NOT_AGP,
198 DRM_IS_AGP,
199 DRM_MIGHT_BE_AGP
200};
201#define DRM_AGP_MEM struct agp_memory_info
202
203#define drm_get_device_from_kdev(_kdev) (_kdev->si_drv1)

--- 794 unchanged lines hidden ---
203enum {
204 DRM_IS_NOT_AGP,
205 DRM_IS_AGP,
206 DRM_MIGHT_BE_AGP
207};
208#define DRM_AGP_MEM struct agp_memory_info
209
210#define drm_get_device_from_kdev(_kdev) (_kdev->si_drv1)

--- 794 unchanged lines hidden ---