Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1029 serge 1
/*
2
 * Copyright 2007  Luc Verhaegen 
3
 * Copyright 2007  Matthias Hopf 
4
 * Copyright 2007  Egbert Eich   
5
 * Copyright 2007  Advanced Micro Devices, Inc.
6
 *
7
 * Permission is hereby granted, free of charge, to any person obtaining a
8
 * copy of this software and associated documentation files (the "Software"),
9
 * to deal in the Software without restriction, including without limitation
10
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
 * and/or sell copies of the Software, and to permit persons to whom the
12
 * Software is furnished to do so, subject to the following conditions:
13
 *
14
 * The above copyright notice and this permission notice shall be included in
15
 * all copies or substantial portions of the Software.
16
 *
17
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
20
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
21
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
 * OTHER DEALINGS IN THE SOFTWARE.
24
 */
25
 
26
#ifndef _RHD_MONITOR_H
27
#define _RHD_MONITOR_H
28
 
29
struct rhdMonitor {
30
    int scrnIndex;
31
 
32
    char *Name;
33
 
34
    int xDpi;
35
    int yDpi;
36
 
37
    int numHSync;                  /* default: 0 */
38
    range HSync[MAX_HSYNC];
39
    int numVRefresh;               /* default: 0 */
40
    range VRefresh[MAX_VREFRESH];
41
    int Bandwidth;                 /* default 0 */
42
 
43
    Bool ReducedAllowed;
44
 
45
    Bool UseFixedModes;
46
    DisplayModePtr Modes; /* default: NULL */
47
    DisplayModePtr NativeMode;
48
 
49
    xf86MonPtr EDID;
50
};
51
 
52
 
53
void RHDConfigMonitorSet(RHDPtr rhdPtr, Bool UseConfig);
54
 
55
#ifdef _RHD_CONNECTOR_H
56
struct rhdMonitor *RHDMonitorInit(struct rhdConnector *Connector);
57
#endif
58
 
59
void RHDMonitorDestroy(struct rhdMonitor *Monitor);
60
void RHDMonitorPrint(struct rhdMonitor *Monitor);
61
 
62
#endif /* _RHD_MONITOR_H */