1254885Sdumbbell/*
2254885Sdumbbell * Copyright 2008 Advanced Micro Devices, Inc.
3254885Sdumbbell * Copyright 2008 Red Hat Inc.
4254885Sdumbbell * Copyright 2009 Jerome Glisse.
5254885Sdumbbell *
6254885Sdumbbell * Permission is hereby granted, free of charge, to any person obtaining a
7254885Sdumbbell * copy of this software and associated documentation files (the "Software"),
8254885Sdumbbell * to deal in the Software without restriction, including without limitation
9254885Sdumbbell * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10254885Sdumbbell * and/or sell copies of the Software, and to permit persons to whom the
11254885Sdumbbell * Software is furnished to do so, subject to the following conditions:
12254885Sdumbbell *
13254885Sdumbbell * The above copyright notice and this permission notice shall be included in
14254885Sdumbbell * all copies or substantial portions of the Software.
15254885Sdumbbell *
16254885Sdumbbell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17254885Sdumbbell * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18254885Sdumbbell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19254885Sdumbbell * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20254885Sdumbbell * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21254885Sdumbbell * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22254885Sdumbbell * OTHER DEALINGS IN THE SOFTWARE.
23254885Sdumbbell *
24254885Sdumbbell * Authors: Dave Airlie
25254885Sdumbbell *          Alex Deucher
26254885Sdumbbell *          Jerome Glisse
27254885Sdumbbell */
28254885Sdumbbell
29254885Sdumbbell#include <sys/cdefs.h>
30254885Sdumbbell__FBSDID("$FreeBSD$");
31254885Sdumbbell
32254885Sdumbbell/* this file defines the CHIP_  and family flags used in the pciids,
33254885Sdumbbell * its is common between kms and non-kms because duplicating it and
34254885Sdumbbell * changing one place is fail.
35254885Sdumbbell */
36254885Sdumbbell#ifndef RADEON_FAMILY_H
37254885Sdumbbell#define RADEON_FAMILY_H
38254885Sdumbbell/*
39254885Sdumbbell * Radeon chip families
40254885Sdumbbell */
41254885Sdumbbellenum radeon_family {
42254885Sdumbbell	CHIP_R100 = 0,
43254885Sdumbbell	CHIP_RV100,
44254885Sdumbbell	CHIP_RS100,
45254885Sdumbbell	CHIP_RV200,
46254885Sdumbbell	CHIP_RS200,
47254885Sdumbbell	CHIP_R200,
48254885Sdumbbell	CHIP_RV250,
49254885Sdumbbell	CHIP_RS300,
50254885Sdumbbell	CHIP_RV280,
51254885Sdumbbell	CHIP_R300,
52254885Sdumbbell	CHIP_R350,
53254885Sdumbbell	CHIP_RV350,
54254885Sdumbbell	CHIP_RV380,
55254885Sdumbbell	CHIP_R420,
56254885Sdumbbell	CHIP_R423,
57254885Sdumbbell	CHIP_RV410,
58254885Sdumbbell	CHIP_RS400,
59254885Sdumbbell	CHIP_RS480,
60254885Sdumbbell	CHIP_RS600,
61254885Sdumbbell	CHIP_RS690,
62254885Sdumbbell	CHIP_RS740,
63254885Sdumbbell	CHIP_RV515,
64254885Sdumbbell	CHIP_R520,
65254885Sdumbbell	CHIP_RV530,
66254885Sdumbbell	CHIP_RV560,
67254885Sdumbbell	CHIP_RV570,
68254885Sdumbbell	CHIP_R580,
69254885Sdumbbell	CHIP_R600,
70254885Sdumbbell	CHIP_RV610,
71254885Sdumbbell	CHIP_RV630,
72254885Sdumbbell	CHIP_RV670,
73254885Sdumbbell	CHIP_RV620,
74254885Sdumbbell	CHIP_RV635,
75254885Sdumbbell	CHIP_RS780,
76254885Sdumbbell	CHIP_RS880,
77254885Sdumbbell	CHIP_RV770,
78254885Sdumbbell	CHIP_RV730,
79254885Sdumbbell	CHIP_RV710,
80254885Sdumbbell	CHIP_RV740,
81254885Sdumbbell	CHIP_CEDAR,
82254885Sdumbbell	CHIP_REDWOOD,
83254885Sdumbbell	CHIP_JUNIPER,
84254885Sdumbbell	CHIP_CYPRESS,
85254885Sdumbbell	CHIP_HEMLOCK,
86254885Sdumbbell	CHIP_PALM,
87254885Sdumbbell	CHIP_SUMO,
88254885Sdumbbell	CHIP_SUMO2,
89254885Sdumbbell	CHIP_BARTS,
90254885Sdumbbell	CHIP_TURKS,
91254885Sdumbbell	CHIP_CAICOS,
92254885Sdumbbell	CHIP_CAYMAN,
93254885Sdumbbell	CHIP_ARUBA,
94254885Sdumbbell	CHIP_TAHITI,
95254885Sdumbbell	CHIP_PITCAIRN,
96254885Sdumbbell	CHIP_VERDE,
97254885Sdumbbell	CHIP_LAST,
98254885Sdumbbell};
99254885Sdumbbell
100254885Sdumbbell/*
101254885Sdumbbell * Chip flags
102254885Sdumbbell */
103254885Sdumbbellenum radeon_chip_flags {
104254885Sdumbbell	RADEON_FAMILY_MASK = 0x0000ffffUL,
105254885Sdumbbell	RADEON_FLAGS_MASK = 0xffff0000UL,
106254885Sdumbbell	RADEON_IS_MOBILITY = 0x00010000UL,
107254885Sdumbbell	RADEON_IS_IGP = 0x00020000UL,
108254885Sdumbbell	RADEON_SINGLE_CRTC = 0x00040000UL,
109254885Sdumbbell	RADEON_IS_AGP = 0x00080000UL,
110254885Sdumbbell	RADEON_HAS_HIERZ = 0x00100000UL,
111254885Sdumbbell	RADEON_IS_PCIE = 0x00200000UL,
112254885Sdumbbell	RADEON_NEW_MEMMAP = 0x00400000UL,
113254885Sdumbbell	RADEON_IS_PCI = 0x00800000UL,
114254885Sdumbbell	RADEON_IS_IGPGART = 0x01000000UL,
115254885Sdumbbell};
116254885Sdumbbell
117254885Sdumbbell#endif
118