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
;
36 /* Note: These are not ordered by PCI ID. I leave that task to GCC,
37 * which will perform the ordering while collating jump tables. Instead,
38 * I've tried to group them according to capabilities and age. */
41 caps
->family
= CHIP_FAMILY_R300
;
52 caps
->family
= CHIP_FAMILY_R300
;
69 caps
->family
= CHIP_FAMILY_RV350
;
80 caps
->family
= CHIP_FAMILY_R350
;
85 caps
->family
= CHIP_FAMILY_R360
;
97 caps
->family
= CHIP_FAMILY_RV370
;
106 caps
->family
= CHIP_FAMILY_RV380
;
120 caps
->family
= CHIP_FAMILY_R420
;
133 caps
->family
= CHIP_FAMILY_R423
;
144 caps
->family
= CHIP_FAMILY_R430
;
154 caps
->family
= CHIP_FAMILY_R480
;
162 caps
->family
= CHIP_FAMILY_R481
;
178 caps
->family
= CHIP_FAMILY_RV410
;
184 caps
->family
= CHIP_FAMILY_RS480
;
185 caps
->num_pipes
= 1; /* CHECK ME */
186 caps
->has_tcl
= FALSE
;
191 caps
->family
= CHIP_FAMILY_RS482
;
192 caps
->num_pipes
= 1; /* CHECK ME */
193 caps
->has_tcl
= FALSE
;
198 caps
->family
= CHIP_FAMILY_RS400
;
199 caps
->num_pipes
= 1; /* CHECK ME */
200 caps
->has_tcl
= FALSE
;
205 caps
->family
= CHIP_FAMILY_RC410
;
206 caps
->num_pipes
= 1; /* CHECK ME */
207 caps
->has_tcl
= FALSE
;
212 caps
->family
= CHIP_FAMILY_RS690
;
213 caps
->num_pipes
= 1; /* CHECK ME */
214 caps
->has_tcl
= FALSE
;
221 caps
->family
= CHIP_FAMILY_RS740
;
222 caps
->num_pipes
= 1; /* CHECK ME */
223 caps
->has_tcl
= FALSE
;
240 caps
->family
= CHIP_FAMILY_R520
;
242 caps
->is_r500
= TRUE
;
283 caps
->family
= CHIP_FAMILY_RV515
;
285 caps
->is_r500
= TRUE
;
304 caps
->family
= CHIP_FAMILY_RV530
;
306 caps
->is_r500
= TRUE
;
324 caps
->family
= CHIP_FAMILY_R580
;
326 caps
->is_r500
= TRUE
;
330 caps
->family
= CHIP_FAMILY_RV570
;
332 caps
->is_r500
= TRUE
;
346 caps
->family
= CHIP_FAMILY_RV560
;
348 caps
->is_r500
= TRUE
;
352 /* XXX not an r300?! */