diff options
author | Dave Airlie <airlied@linux.ie> | 2009-09-21 18:50:10 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-09-22 20:21:00 -0400 |
commit | c214271563c00f2721c5111e27b53bf06dabc6e4 (patch) | |
tree | a85755e4051a73eb5c0f906f91941ee6619f9a1d /drivers/gpu/drm/radeon/radeon_drv.h | |
parent | aadd4e17452d3d5c2269cd2b000b7de7cfb6c79e (diff) |
drm/radeon: consolidate family flags used in pciids.
having these separate was pointless and introduced a bug when
one got updated without the other.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_drv.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.h | 65 |
1 files changed, 2 insertions, 63 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h index cb0cfe4b3082..350962e0f346 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.h +++ b/drivers/gpu/drm/radeon/radeon_drv.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #include <linux/firmware.h> | 34 | #include <linux/firmware.h> |
35 | #include <linux/platform_device.h> | 35 | #include <linux/platform_device.h> |
36 | 36 | ||
37 | #include "radeon_family.h" | ||
38 | |||
37 | /* General customization: | 39 | /* General customization: |
38 | */ | 40 | */ |
39 | 41 | ||
@@ -109,75 +111,12 @@ | |||
109 | #define DRIVER_MINOR 31 | 111 | #define DRIVER_MINOR 31 |
110 | #define DRIVER_PATCHLEVEL 0 | 112 | #define DRIVER_PATCHLEVEL 0 |
111 | 113 | ||
112 | /* | ||
113 | * Radeon chip families | ||
114 | */ | ||
115 | enum radeon_family { | ||
116 | CHIP_R100, | ||
117 | CHIP_RV100, | ||
118 | CHIP_RS100, | ||
119 | CHIP_RV200, | ||
120 | CHIP_RS200, | ||
121 | CHIP_R200, | ||
122 | CHIP_RV250, | ||
123 | CHIP_RS300, | ||
124 | CHIP_RV280, | ||
125 | CHIP_R300, | ||
126 | CHIP_R350, | ||
127 | CHIP_RV350, | ||
128 | CHIP_RV380, | ||
129 | CHIP_R420, | ||
130 | CHIP_R423, | ||
131 | CHIP_RV410, | ||
132 | CHIP_RS400, | ||
133 | CHIP_RS480, | ||
134 | CHIP_RS600, | ||
135 | CHIP_RS690, | ||
136 | CHIP_RS740, | ||
137 | CHIP_RV515, | ||
138 | CHIP_R520, | ||
139 | CHIP_RV530, | ||
140 | CHIP_RV560, | ||
141 | CHIP_RV570, | ||
142 | CHIP_R580, | ||
143 | CHIP_R600, | ||
144 | CHIP_RV610, | ||
145 | CHIP_RV630, | ||
146 | CHIP_RV620, | ||
147 | CHIP_RV635, | ||
148 | CHIP_RV670, | ||
149 | CHIP_RS780, | ||
150 | CHIP_RS880, | ||
151 | CHIP_RV770, | ||
152 | CHIP_RV730, | ||
153 | CHIP_RV710, | ||
154 | CHIP_RV740, | ||
155 | CHIP_LAST, | ||
156 | }; | ||
157 | |||
158 | enum radeon_cp_microcode_version { | 114 | enum radeon_cp_microcode_version { |
159 | UCODE_R100, | 115 | UCODE_R100, |
160 | UCODE_R200, | 116 | UCODE_R200, |
161 | UCODE_R300, | 117 | UCODE_R300, |
162 | }; | 118 | }; |
163 | 119 | ||
164 | /* | ||
165 | * Chip flags | ||
166 | */ | ||
167 | enum radeon_chip_flags { | ||
168 | RADEON_FAMILY_MASK = 0x0000ffffUL, | ||
169 | RADEON_FLAGS_MASK = 0xffff0000UL, | ||
170 | RADEON_IS_MOBILITY = 0x00010000UL, | ||
171 | RADEON_IS_IGP = 0x00020000UL, | ||
172 | RADEON_SINGLE_CRTC = 0x00040000UL, | ||
173 | RADEON_IS_AGP = 0x00080000UL, | ||
174 | RADEON_HAS_HIERZ = 0x00100000UL, | ||
175 | RADEON_IS_PCIE = 0x00200000UL, | ||
176 | RADEON_NEW_MEMMAP = 0x00400000UL, | ||
177 | RADEON_IS_PCI = 0x00800000UL, | ||
178 | RADEON_IS_IGPGART = 0x01000000UL, | ||
179 | }; | ||
180 | |||
181 | typedef struct drm_radeon_freelist { | 120 | typedef struct drm_radeon_freelist { |
182 | unsigned int age; | 121 | unsigned int age; |
183 | struct drm_buf *buf; | 122 | struct drm_buf *buf; |