Blame view

include/drm/gma_drm.h 2.44 KB
5c49fd3aa   Alan Cox   gma500: Add the c...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  /**************************************************************************
   * Copyright (c) 2007-2011, Intel Corporation.
   * All Rights Reserved.
   * Copyright (c) 2008, Tungsten Graphics Inc.  Cedar Park, TX., USA.
   * All Rights Reserved.
   *
   * This program is free software; you can redistribute it and/or modify it
   * under the terms and conditions of the GNU General Public License,
   * version 2, as published by the Free Software Foundation.
   *
   * This program is distributed in the hope it will be useful, but WITHOUT
   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   * more details.
   *
   * You should have received a copy of the GNU General Public License along with
   * this program; if not, write to the Free Software Foundation, Inc.,
   * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
   *
   **************************************************************************/
  
  #ifndef _PSB_DRM_H_
  #define _PSB_DRM_H_
5c49fd3aa   Alan Cox   gma500: Add the c...
24
  /*
61bedf702   Alan Cox   drm/gma500: begin...
25
   *	Manage the LUT for an output
5c49fd3aa   Alan Cox   gma500: Add the c...
26
   */
5c49fd3aa   Alan Cox   gma500: Add the c...
27
28
29
30
  struct drm_psb_dpst_lut_arg {
  	uint8_t lut[256];
  	int output_id;
  };
61bedf702   Alan Cox   drm/gma500: begin...
31
32
33
  /*
   *	Validate modes
   */
5c49fd3aa   Alan Cox   gma500: Add the c...
34
35
36
37
  struct drm_psb_mode_operation_arg {
  	u32 obj_id;
  	u16 operation;
  	struct drm_mode_modeinfo mode;
61bedf702   Alan Cox   drm/gma500: begin...
38
  	u64 data;
5c49fd3aa   Alan Cox   gma500: Add the c...
39
  };
61bedf702   Alan Cox   drm/gma500: begin...
40
41
42
43
  /*
   *	Query the stolen memory for smarter management of
   *	memory by the server
   */
5c49fd3aa   Alan Cox   gma500: Add the c...
44
45
46
47
  struct drm_psb_stolen_memory_arg {
  	u32 base;
  	u32 size;
  };
5c49fd3aa   Alan Cox   gma500: Add the c...
48
49
50
  struct drm_psb_get_pipe_from_crtc_id_arg {
  	/** ID of CRTC being requested **/
  	u32 crtc_id;
5c49fd3aa   Alan Cox   gma500: Add the c...
51
52
53
  	/** pipe of requested CRTC **/
  	u32 pipe;
  };
5c49fd3aa   Alan Cox   gma500: Add the c...
54
55
56
57
  struct drm_psb_gem_create {
  	__u64 size;
  	__u32 handle;
  	__u32 flags;
770179d5e   Alan Cox   gma500: Rename th...
58
  #define GMA_GEM_CREATE_STOLEN		1	/* Stolen memory can be used */
5c49fd3aa   Alan Cox   gma500: Add the c...
59
60
61
62
63
64
65
66
67
68
69
70
  };
  
  struct drm_psb_gem_mmap {
  	__u32 handle;
  	__u32 pad;
  	/**
  	 * Fake offset to use for subsequent mmap call
  	 *
  	 * This is a fixed-size type for 32/64 compatibility.
  	 */
  	__u64 offset;
  };
61bedf702   Alan Cox   drm/gma500: begin...
71
  /* Controlling the kernel modesetting buffers */
770179d5e   Alan Cox   gma500: Rename th...
72
73
74
75
76
77
78
79
80
  #define DRM_GMA_GEM_CREATE	0x00		/* Create a GEM object */
  #define DRM_GMA_GEM_MMAP	0x01		/* Map GEM memory */
  #define DRM_GMA_STOLEN_MEMORY	0x02		/* Report stolen memory */
  #define DRM_GMA_2D_OP		0x03		/* Will be merged later */
  #define DRM_GMA_GAMMA		0x04		/* Set gamma table */
  #define DRM_GMA_ADB		0x05		/* Get backlight */
  #define DRM_GMA_DPST_BL		0x06		/* Set backlight */
  #define DRM_GMA_GET_PIPE_FROM_CRTC_ID 0x1	/* CRTC to physical pipe# */
  #define DRM_GMA_MODE_OPERATION	0x07		/* Mode validation/DC set */
61bedf702   Alan Cox   drm/gma500: begin...
81
  #define 	PSB_MODE_OPERATION_MODE_VALID	0x01
5c49fd3aa   Alan Cox   gma500: Add the c...
82
  #endif