1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
/* -*- pse-c -*-
*-----------------------------------------------------------------------------
* Filename: pi.h
* $Revision: 1.3 $
*-----------------------------------------------------------------------------
* Copyright © 2002-2010, Intel Corporation.
*
* 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.
*
*-----------------------------------------------------------------------------
* Description:
*
*-----------------------------------------------------------------------------
*/
#ifndef _PI_H_
#define _PI_H_
#include <context.h>
#include <mode.h>
#include <pd.h>
/* power states */
#define IGD_DEVICE_ON 1
#define IGD_DEVICE_OFF 0
#define PI_FIRMWARE_EDID 0x1
#define PI_FIRMWARE_DISPLAYID 0x2
/* get_native_dtd() flags */
#define PI_ALL_TIMINGS 0x0001
#define PI_SUPPORTED_TIMINGS 0x0002
extern unsigned long get_native_dtd(igd_timing_info_t *timing_table,
unsigned long flags, pd_timing_t **native_dtd, unsigned long native_flags);
extern igd_timing_info_t crt_timing_table[];
extern int crt_timing_table_size;
#ifndef CONFIG_MICRO
extern igd_timing_info_t cea_timing_table[];
extern int cea_timing_table_size;
extern type_std_t cea_std_lookup[];
extern int cea_std_lookup_size;
#endif
extern int pi_pd_register(pd_driver_t *pd_driver);
extern int pi_pd_register(pd_driver_t *pd_driver);
extern int pi_read_regs(void *callback_context, pd_reg_t *list,
unsigned long reg_type);
extern int pi_write_regs(void *callback_context, pd_reg_t *list,
unsigned long reg_type);
extern int pi_program_port_dvo(igd_display_context_t *, unsigned long);
extern int pi_program_port_analog(igd_display_context_t *, unsigned long);
extern int pi_program_port_rgba(igd_display_context_t *, unsigned long);
extern int pi_program_port_lvds(igd_display_context_t *, unsigned long);
/* Function to get attr value from port driver attr list */
extern int pi_pd_find_attr_and_value(igd_display_port_t *port,
unsigned long attr_id,
unsigned long flag,
pd_attr_t **caller_pd_attr,
unsigned long * attr_value);
/* Function to get attr value from user provided init attribute list */
extern int pi_get_port_init_attr(igd_display_port_t *port,
unsigned long id,
unsigned long *value);
#endif /* _PI_H_ */
/*----------------------------------------------------------------------------
* File Revision History
* $Id: pi.h,v 1.3 2010/07/23 16:54:50 bpaauwe Exp $
* $Source: /nfs/fm/proj/eia/cvsroot/koheo/linux/egd_drm/emgd/include/pi.h,v $
*----------------------------------------------------------------------------
*/
|