2 * Copyright 2008 Corbin Simpson <MostAwesomeDude@gmail.com>
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * on the rights to use, copy, modify, merge, publish, distribute, sub
8 * license, and/or sell copies of the Software, and to permit persons to whom
9 * the Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
21 * USE OR OTHER DEALINGS IN THE SOFTWARE. */
23 #include "r300_chipset.h"
25 /* r300_chipset: A file all to itself for deducing the various properties of
28 /* Parse a PCI ID and fill an r300_capabilities struct with information. */
29 void r300_parse_chipset(uint32_t pci_id
, struct r300_capabilities
* caps
)
31 /* Reasonable defaults */
32 caps
->pci_id
= pci_id
;
34 caps
->is_r500
= FALSE
;
35 caps
->num_vert_pipes
= 4;
38 /* Note: These are not ordered by PCI ID. I leave that task to GCC,
39 * which will perform the ordering while collating jump tables. Instead,
40 * I've tried to group them according to capabilities and age. */
43 caps
->family
= CHIP_FAMILY_R300
;
53 caps
->family
= CHIP_FAMILY_R300
;
69 caps
->family
= CHIP_FAMILY_RV350
;
79 caps
->family
= CHIP_FAMILY_R350
;
83 caps
->family
= CHIP_FAMILY_R360
;
94 caps
->family
= CHIP_FAMILY_RV370
;
102 caps
->family
= CHIP_FAMILY_RV380
;
115 caps
->family
= CHIP_FAMILY_R420
;
116 caps
->num_vert_pipes
= 6;
128 caps
->family
= CHIP_FAMILY_R423
;
129 caps
->num_vert_pipes
= 6;
139 caps
->family
= CHIP_FAMILY_R430
;
140 caps
->num_vert_pipes
= 6;
149 caps
->family
= CHIP_FAMILY_R480
;
150 caps
->num_vert_pipes
= 6;
157 caps
->family
= CHIP_FAMILY_R481
;
158 caps
->num_vert_pipes
= 6;
173 caps
->family
= CHIP_FAMILY_RV410
;
174 caps
->num_vert_pipes
= 6;
179 caps
->family
= CHIP_FAMILY_RS480
;
180 caps
->has_tcl
= FALSE
;
185 caps
->family
= CHIP_FAMILY_RS482
;
186 caps
->has_tcl
= FALSE
;
191 caps
->family
= CHIP_FAMILY_RS400
;
192 caps
->has_tcl
= FALSE
;
197 caps
->family
= CHIP_FAMILY_RC410
;
198 caps
->has_tcl
= FALSE
;
203 caps
->family
= CHIP_FAMILY_RS690
;
204 caps
->has_tcl
= FALSE
;
211 caps
->family
= CHIP_FAMILY_RS740
;
212 caps
->has_tcl
= FALSE
;
229 caps
->family
= CHIP_FAMILY_R520
;
230 caps
->num_vert_pipes
= 8;
231 caps
->is_r500
= TRUE
;
272 caps
->family
= CHIP_FAMILY_RV515
;
273 caps
->num_vert_pipes
= 2;
274 caps
->is_r500
= TRUE
;
293 caps
->family
= CHIP_FAMILY_RV530
;
294 caps
->num_vert_pipes
= 5;
295 caps
->is_r500
= TRUE
;
313 caps
->family
= CHIP_FAMILY_R580
;
314 caps
->num_vert_pipes
= 8;
315 caps
->is_r500
= TRUE
;
319 caps
->family
= CHIP_FAMILY_RV570
;
320 caps
->num_vert_pipes
= 5;
321 caps
->is_r500
= TRUE
;
335 caps
->family
= CHIP_FAMILY_RV560
;
336 caps
->num_vert_pipes
= 5;
337 caps
->is_r500
= TRUE
;
341 /* XXX not an r300?! */