1 /* A subset of radeon.h from xf86-video-ati */
2 
3 /*
4  * Copyright 2000 ATI Technologies Inc., Markham, Ontario, and
5  *                VA Linux Systems Inc., Fremont, California.
6  *
7  * All Rights Reserved.
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining
10  * a copy of this software and associated documentation files (the
11  * "Software"), to deal in the Software without restriction, including
12  * without limitation on the rights to use, copy, modify, merge,
13  * publish, distribute, sublicense, and/or sell copies of the Software,
14  * and to permit persons to whom the Software is furnished to do so,
15  * subject to the following conditions:
16  *
17  * The above copyright notice and this permission notice (including the
18  * next paragraph) shall be included in all copies or substantial
19  * portions of the Software.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24  * NON-INFRINGEMENT.  IN NO EVENT SHALL ATI, VA LINUX SYSTEMS AND/OR
25  * THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28  * DEALINGS IN THE SOFTWARE.
29  */
30 
31 /*
32  * Authors:
33  *   Kevin E. Martin <martin@xfree86.org>
34  *   Rickard E. Faith <faith@valinux.com>
35  *   Alan Hourihane <alanh@fairlite.demon.co.uk>
36  *
37  */
38 
39 #ifndef _RADEON_H_
40 #define _RADEON_H_
41 
42 typedef enum {
43     CHIP_FAMILY_UNKNOW,
44     CHIP_FAMILY_LEGACY,
45     CHIP_FAMILY_RADEON,
46     CHIP_FAMILY_RV100,
47     CHIP_FAMILY_RS100,    /* U1 (IGP320M) or A3 (IGP320)*/
48     CHIP_FAMILY_RV200,
49     CHIP_FAMILY_RS200,    /* U2 (IGP330M/340M/350M) or A4 (IGP330/340/345/350), RS250 (IGP 7000) */
50     CHIP_FAMILY_R200,
51     CHIP_FAMILY_RV250,
52     CHIP_FAMILY_RS300,    /* RS300/RS350 */
53     CHIP_FAMILY_RV280,
54     CHIP_FAMILY_R300,
55     CHIP_FAMILY_R350,
56     CHIP_FAMILY_RV350,
57     CHIP_FAMILY_RV380,    /* RV370/RV380/M22/M24 */
58     CHIP_FAMILY_R420,     /* R420/R423/M18 */
59     CHIP_FAMILY_RV410,    /* RV410, M26 */
60     CHIP_FAMILY_RS400,    /* xpress 200, 200m (RS400) Intel */
61     CHIP_FAMILY_RS480,    /* xpress 200, 200m (RS410/480/482/485) AMD */
62     CHIP_FAMILY_RV515,    /* rv515 */
63     CHIP_FAMILY_R520,    /* r520 */
64     CHIP_FAMILY_RV530,    /* rv530 */
65     CHIP_FAMILY_R580,    /* r580 */
66     CHIP_FAMILY_RV560,   /* rv560 */
67     CHIP_FAMILY_RV570,   /* rv570 */
68     CHIP_FAMILY_RS600,
69     CHIP_FAMILY_RS690,
70     CHIP_FAMILY_RS740,
71     CHIP_FAMILY_R600,    /* r600 */
72     CHIP_FAMILY_RV610,
73     CHIP_FAMILY_RV630,
74     CHIP_FAMILY_RV670,
75     CHIP_FAMILY_RV620,
76     CHIP_FAMILY_RV635,
77     CHIP_FAMILY_RS780,
78     CHIP_FAMILY_RS880,
79     CHIP_FAMILY_RV770,   /* r700 */
80     CHIP_FAMILY_RV730,
81     CHIP_FAMILY_RV710,
82     CHIP_FAMILY_RV740,
83     CHIP_FAMILY_CEDAR,   /* evergreen */
84     CHIP_FAMILY_REDWOOD,
85     CHIP_FAMILY_JUNIPER,
86     CHIP_FAMILY_CYPRESS,
87     CHIP_FAMILY_HEMLOCK,
88     CHIP_FAMILY_PALM,
89     CHIP_FAMILY_SUMO,
90     CHIP_FAMILY_SUMO2,
91     CHIP_FAMILY_BARTS,
92     CHIP_FAMILY_TURKS,
93     CHIP_FAMILY_CAICOS,
94     CHIP_FAMILY_CAYMAN,
95     CHIP_FAMILY_ARUBA,
96     CHIP_FAMILY_TAHITI,
97     CHIP_FAMILY_PITCAIRN,
98     CHIP_FAMILY_VERDE,
99     CHIP_FAMILY_OLAND,
100     CHIP_FAMILY_HAINAN,
101     CHIP_FAMILY_BONAIRE,
102     CHIP_FAMILY_KAVERI,
103     CHIP_FAMILY_KABINI,
104     CHIP_FAMILY_LAST
105 } RADEONChipFamily;
106 
107 typedef struct {
108     uint32_t pci_device_id;
109     RADEONChipFamily chip_family;
110     int mobility;
111     int igp;
112     int nocrtc2;
113     int nointtvout;
114     int singledac;
115 } RADEONCardInfo;
116 
117 #endif /* _RADEON_H_ */
118