18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2008 Advanced Micro Devices, Inc. 38c2ecf20Sopenharmony_ci * Copyright 2008 Red Hat Inc. 48c2ecf20Sopenharmony_ci * Copyright 2009 Jerome Glisse. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 78c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 88c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 98c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 108c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 118c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 148c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software. 158c2ecf20Sopenharmony_ci * 168c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 178c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 188c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 198c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 208c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 218c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 228c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * Authors: Dave Airlie 258c2ecf20Sopenharmony_ci * Alex Deucher 268c2ecf20Sopenharmony_ci * Jerome Glisse 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* this file defines the CHIP_ and family flags used in the pciids, 308c2ecf20Sopenharmony_ci * its is common between kms and non-kms because duplicating it and 318c2ecf20Sopenharmony_ci * changing one place is fail. 328c2ecf20Sopenharmony_ci */ 338c2ecf20Sopenharmony_ci#ifndef RADEON_FAMILY_H 348c2ecf20Sopenharmony_ci#define RADEON_FAMILY_H 358c2ecf20Sopenharmony_ci/* 368c2ecf20Sopenharmony_ci * Radeon chip families 378c2ecf20Sopenharmony_ci */ 388c2ecf20Sopenharmony_cienum radeon_family { 398c2ecf20Sopenharmony_ci CHIP_R100 = 0, 408c2ecf20Sopenharmony_ci CHIP_RV100, 418c2ecf20Sopenharmony_ci CHIP_RS100, 428c2ecf20Sopenharmony_ci CHIP_RV200, 438c2ecf20Sopenharmony_ci CHIP_RS200, 448c2ecf20Sopenharmony_ci CHIP_R200, 458c2ecf20Sopenharmony_ci CHIP_RV250, 468c2ecf20Sopenharmony_ci CHIP_RS300, 478c2ecf20Sopenharmony_ci CHIP_RV280, 488c2ecf20Sopenharmony_ci CHIP_R300, 498c2ecf20Sopenharmony_ci CHIP_R350, 508c2ecf20Sopenharmony_ci CHIP_RV350, 518c2ecf20Sopenharmony_ci CHIP_RV380, 528c2ecf20Sopenharmony_ci CHIP_R420, 538c2ecf20Sopenharmony_ci CHIP_R423, 548c2ecf20Sopenharmony_ci CHIP_RV410, 558c2ecf20Sopenharmony_ci CHIP_RS400, 568c2ecf20Sopenharmony_ci CHIP_RS480, 578c2ecf20Sopenharmony_ci CHIP_RS600, 588c2ecf20Sopenharmony_ci CHIP_RS690, 598c2ecf20Sopenharmony_ci CHIP_RS740, 608c2ecf20Sopenharmony_ci CHIP_RV515, 618c2ecf20Sopenharmony_ci CHIP_R520, 628c2ecf20Sopenharmony_ci CHIP_RV530, 638c2ecf20Sopenharmony_ci CHIP_RV560, 648c2ecf20Sopenharmony_ci CHIP_RV570, 658c2ecf20Sopenharmony_ci CHIP_R580, 668c2ecf20Sopenharmony_ci CHIP_R600, 678c2ecf20Sopenharmony_ci CHIP_RV610, 688c2ecf20Sopenharmony_ci CHIP_RV630, 698c2ecf20Sopenharmony_ci CHIP_RV670, 708c2ecf20Sopenharmony_ci CHIP_RV620, 718c2ecf20Sopenharmony_ci CHIP_RV635, 728c2ecf20Sopenharmony_ci CHIP_RS780, 738c2ecf20Sopenharmony_ci CHIP_RS880, 748c2ecf20Sopenharmony_ci CHIP_RV770, 758c2ecf20Sopenharmony_ci CHIP_RV730, 768c2ecf20Sopenharmony_ci CHIP_RV710, 778c2ecf20Sopenharmony_ci CHIP_RV740, 788c2ecf20Sopenharmony_ci CHIP_CEDAR, 798c2ecf20Sopenharmony_ci CHIP_REDWOOD, 808c2ecf20Sopenharmony_ci CHIP_JUNIPER, 818c2ecf20Sopenharmony_ci CHIP_CYPRESS, 828c2ecf20Sopenharmony_ci CHIP_HEMLOCK, 838c2ecf20Sopenharmony_ci CHIP_PALM, 848c2ecf20Sopenharmony_ci CHIP_SUMO, 858c2ecf20Sopenharmony_ci CHIP_SUMO2, 868c2ecf20Sopenharmony_ci CHIP_BARTS, 878c2ecf20Sopenharmony_ci CHIP_TURKS, 888c2ecf20Sopenharmony_ci CHIP_CAICOS, 898c2ecf20Sopenharmony_ci CHIP_CAYMAN, 908c2ecf20Sopenharmony_ci CHIP_ARUBA, 918c2ecf20Sopenharmony_ci CHIP_TAHITI, 928c2ecf20Sopenharmony_ci CHIP_PITCAIRN, 938c2ecf20Sopenharmony_ci CHIP_VERDE, 948c2ecf20Sopenharmony_ci CHIP_OLAND, 958c2ecf20Sopenharmony_ci CHIP_HAINAN, 968c2ecf20Sopenharmony_ci CHIP_BONAIRE, 978c2ecf20Sopenharmony_ci CHIP_KAVERI, 988c2ecf20Sopenharmony_ci CHIP_KABINI, 998c2ecf20Sopenharmony_ci CHIP_HAWAII, 1008c2ecf20Sopenharmony_ci CHIP_MULLINS, 1018c2ecf20Sopenharmony_ci CHIP_LAST, 1028c2ecf20Sopenharmony_ci}; 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci/* 1058c2ecf20Sopenharmony_ci * Chip flags 1068c2ecf20Sopenharmony_ci */ 1078c2ecf20Sopenharmony_cienum radeon_chip_flags { 1088c2ecf20Sopenharmony_ci RADEON_FAMILY_MASK = 0x0000ffffUL, 1098c2ecf20Sopenharmony_ci RADEON_FLAGS_MASK = 0xffff0000UL, 1108c2ecf20Sopenharmony_ci RADEON_IS_MOBILITY = 0x00010000UL, 1118c2ecf20Sopenharmony_ci RADEON_IS_IGP = 0x00020000UL, 1128c2ecf20Sopenharmony_ci RADEON_SINGLE_CRTC = 0x00040000UL, 1138c2ecf20Sopenharmony_ci RADEON_IS_AGP = 0x00080000UL, 1148c2ecf20Sopenharmony_ci RADEON_HAS_HIERZ = 0x00100000UL, 1158c2ecf20Sopenharmony_ci RADEON_IS_PCIE = 0x00200000UL, 1168c2ecf20Sopenharmony_ci RADEON_NEW_MEMMAP = 0x00400000UL, 1178c2ecf20Sopenharmony_ci RADEON_IS_PCI = 0x00800000UL, 1188c2ecf20Sopenharmony_ci RADEON_IS_IGPGART = 0x01000000UL, 1198c2ecf20Sopenharmony_ci RADEON_IS_PX = 0x02000000UL, 1208c2ecf20Sopenharmony_ci}; 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ci#endif 123