Deleted Added
full compact
i915_drv.h (152909) i915_drv.h (157617)
1/* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
2 */
3/*
4 *
5 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
6 * All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a

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

23 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
24 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 *
28 */
29
30#include <sys/cdefs.h>
1/* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
2 */
3/*
4 *
5 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
6 * All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a

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

23 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
24 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 *
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/drm/i915_drv.h 152909 2005-11-28 23:13:57Z anholt $");
31__FBSDID("$FreeBSD: head/sys/dev/drm/i915_drv.h 157617 2006-04-09 20:45:45Z anholt $");
32
33#ifndef _I915_DRV_H_
34#define _I915_DRV_H_
35
36/* General customization:
37 */
38
39#define DRIVER_AUTHOR "Tungsten Graphics, Inc."
40
41#define DRIVER_NAME "i915"
42#define DRIVER_DESC "Intel Graphics"
32
33#ifndef _I915_DRV_H_
34#define _I915_DRV_H_
35
36/* General customization:
37 */
38
39#define DRIVER_AUTHOR "Tungsten Graphics, Inc."
40
41#define DRIVER_NAME "i915"
42#define DRIVER_DESC "Intel Graphics"
43#define DRIVER_DATE "20041217"
43#define DRIVER_DATE "20060119"
44
45/* Interface history:
46 *
47 * 1.1: Original.
48 * 1.2: Add Power Management
44
45/* Interface history:
46 *
47 * 1.1: Original.
48 * 1.2: Add Power Management
49 * 1.3: Add vblank support
50 * 1.4: Fix cmdbuffer path, add heap destroy
49 */
50#define DRIVER_MAJOR 1
51 */
52#define DRIVER_MAJOR 1
51#define DRIVER_MINOR 2
53#define DRIVER_MINOR 4
52#define DRIVER_PATCHLEVEL 0
53
54typedef struct _drm_i915_ring_buffer {
55 int tail_mask;
56 unsigned long Start;
57 unsigned long End;
58 unsigned long Size;
59 u8 *virtual_start;

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

110extern int i915_driver_device_is_agp(drm_device_t * dev);
111extern long i915_compat_ioctl(struct file *filp, unsigned int cmd,
112 unsigned long arg);
113
114/* i915_irq.c */
115extern int i915_irq_emit(DRM_IOCTL_ARGS);
116extern int i915_irq_wait(DRM_IOCTL_ARGS);
117
54#define DRIVER_PATCHLEVEL 0
55
56typedef struct _drm_i915_ring_buffer {
57 int tail_mask;
58 unsigned long Start;
59 unsigned long End;
60 unsigned long Size;
61 u8 *virtual_start;

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

112extern int i915_driver_device_is_agp(drm_device_t * dev);
113extern long i915_compat_ioctl(struct file *filp, unsigned int cmd,
114 unsigned long arg);
115
116/* i915_irq.c */
117extern int i915_irq_emit(DRM_IOCTL_ARGS);
118extern int i915_irq_wait(DRM_IOCTL_ARGS);
119
120extern int i915_driver_vblank_wait(drm_device_t *dev, unsigned int *sequence);
118extern irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS);
119extern void i915_driver_irq_preinstall(drm_device_t * dev);
120extern void i915_driver_irq_postinstall(drm_device_t * dev);
121extern void i915_driver_irq_uninstall(drm_device_t * dev);
122
123/* i915_mem.c */
124extern int i915_mem_alloc(DRM_IOCTL_ARGS);
125extern int i915_mem_free(DRM_IOCTL_ARGS);
126extern int i915_mem_init_heap(DRM_IOCTL_ARGS);
121extern irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS);
122extern void i915_driver_irq_preinstall(drm_device_t * dev);
123extern void i915_driver_irq_postinstall(drm_device_t * dev);
124extern void i915_driver_irq_uninstall(drm_device_t * dev);
125
126/* i915_mem.c */
127extern int i915_mem_alloc(DRM_IOCTL_ARGS);
128extern int i915_mem_free(DRM_IOCTL_ARGS);
129extern int i915_mem_init_heap(DRM_IOCTL_ARGS);
130extern int i915_mem_destroy_heap(DRM_IOCTL_ARGS);
127extern void i915_mem_takedown(struct mem_block **heap);
128extern void i915_mem_release(drm_device_t * dev,
129 DRMFILE filp, struct mem_block *heap);
130
131#define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, (reg))
132#define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, (reg), (val))
133#define I915_READ16(reg) DRM_READ16(dev_priv->mmio_map, (reg))
134#define I915_WRITE16(reg,val) DRM_WRITE16(dev_priv->mmio_map, (reg), (val))

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

260
261#define MI_LOAD_SCAN_LINES_INCL ((0x12<<23))
262
263#define CMD_OP_DISPLAYBUFFER_INFO ((0x0<<29)|(0x14<<23)|2)
264#define ASYNC_FLIP (1<<22)
265
266#define CMD_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1)
267
131extern void i915_mem_takedown(struct mem_block **heap);
132extern void i915_mem_release(drm_device_t * dev,
133 DRMFILE filp, struct mem_block *heap);
134
135#define I915_READ(reg) DRM_READ32(dev_priv->mmio_map, (reg))
136#define I915_WRITE(reg,val) DRM_WRITE32(dev_priv->mmio_map, (reg), (val))
137#define I915_READ16(reg) DRM_READ16(dev_priv->mmio_map, (reg))
138#define I915_WRITE16(reg,val) DRM_WRITE16(dev_priv->mmio_map, (reg), (val))

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

264
265#define MI_LOAD_SCAN_LINES_INCL ((0x12<<23))
266
267#define CMD_OP_DISPLAYBUFFER_INFO ((0x0<<29)|(0x14<<23)|2)
268#define ASYNC_FLIP (1<<22)
269
270#define CMD_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1)
271
272#define READ_BREADCRUMB(dev_priv) (((u32*)(dev_priv->hw_status_page))[5])
273
268#endif
274#endif