1b3845cf0SFrançois Tigeot /* 2b3845cf0SFrançois Tigeot * Copyright 2008 Advanced Micro Devices, Inc. 3b3845cf0SFrançois Tigeot * Copyright 2008 Red Hat Inc. 4b3845cf0SFrançois Tigeot * Copyright 2009 Jerome Glisse. 5b3845cf0SFrançois Tigeot * 6b3845cf0SFrançois Tigeot * Permission is hereby granted, free of charge, to any person obtaining a 7b3845cf0SFrançois Tigeot * copy of this software and associated documentation files (the "Software"), 8b3845cf0SFrançois Tigeot * to deal in the Software without restriction, including without limitation 9b3845cf0SFrançois Tigeot * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10b3845cf0SFrançois Tigeot * and/or sell copies of the Software, and to permit persons to whom the 11b3845cf0SFrançois Tigeot * Software is furnished to do so, subject to the following conditions: 12b3845cf0SFrançois Tigeot * 13b3845cf0SFrançois Tigeot * The above copyright notice and this permission notice shall be included in 14b3845cf0SFrançois Tigeot * all copies or substantial portions of the Software. 15b3845cf0SFrançois Tigeot * 16b3845cf0SFrançois Tigeot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17b3845cf0SFrançois Tigeot * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18b3845cf0SFrançois Tigeot * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19b3845cf0SFrançois Tigeot * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 20b3845cf0SFrançois Tigeot * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21b3845cf0SFrançois Tigeot * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22b3845cf0SFrançois Tigeot * OTHER DEALINGS IN THE SOFTWARE. 23b3845cf0SFrançois Tigeot * 24b3845cf0SFrançois Tigeot * Authors: Dave Airlie 25b3845cf0SFrançois Tigeot * Alex Deucher 26b3845cf0SFrançois Tigeot * Jerome Glisse 27b3845cf0SFrançois Tigeot */ 28b3845cf0SFrançois Tigeot 29b3845cf0SFrançois Tigeot /* this file defines the CHIP_ and family flags used in the pciids, 30b3845cf0SFrançois Tigeot * its is common between kms and non-kms because duplicating it and 31b3845cf0SFrançois Tigeot * changing one place is fail. 32b3845cf0SFrançois Tigeot */ 33b3845cf0SFrançois Tigeot #ifndef RADEON_FAMILY_H 34b3845cf0SFrançois Tigeot #define RADEON_FAMILY_H 35b3845cf0SFrançois Tigeot /* 36b3845cf0SFrançois Tigeot * Radeon chip families 37b3845cf0SFrançois Tigeot */ 38b3845cf0SFrançois Tigeot enum radeon_family { 39b3845cf0SFrançois Tigeot CHIP_R100 = 0, 40b3845cf0SFrançois Tigeot CHIP_RV100, 41b3845cf0SFrançois Tigeot CHIP_RS100, 42b3845cf0SFrançois Tigeot CHIP_RV200, 43b3845cf0SFrançois Tigeot CHIP_RS200, 44b3845cf0SFrançois Tigeot CHIP_R200, 45b3845cf0SFrançois Tigeot CHIP_RV250, 46b3845cf0SFrançois Tigeot CHIP_RS300, 47b3845cf0SFrançois Tigeot CHIP_RV280, 48b3845cf0SFrançois Tigeot CHIP_R300, 49b3845cf0SFrançois Tigeot CHIP_R350, 50b3845cf0SFrançois Tigeot CHIP_RV350, 51b3845cf0SFrançois Tigeot CHIP_RV380, 52b3845cf0SFrançois Tigeot CHIP_R420, 53b3845cf0SFrançois Tigeot CHIP_R423, 54b3845cf0SFrançois Tigeot CHIP_RV410, 55b3845cf0SFrançois Tigeot CHIP_RS400, 56b3845cf0SFrançois Tigeot CHIP_RS480, 57b3845cf0SFrançois Tigeot CHIP_RS600, 58b3845cf0SFrançois Tigeot CHIP_RS690, 59b3845cf0SFrançois Tigeot CHIP_RS740, 60b3845cf0SFrançois Tigeot CHIP_RV515, 61b3845cf0SFrançois Tigeot CHIP_R520, 62b3845cf0SFrançois Tigeot CHIP_RV530, 63b3845cf0SFrançois Tigeot CHIP_RV560, 64b3845cf0SFrançois Tigeot CHIP_RV570, 65b3845cf0SFrançois Tigeot CHIP_R580, 66b3845cf0SFrançois Tigeot CHIP_R600, 67b3845cf0SFrançois Tigeot CHIP_RV610, 68b3845cf0SFrançois Tigeot CHIP_RV630, 69b3845cf0SFrançois Tigeot CHIP_RV670, 70b3845cf0SFrançois Tigeot CHIP_RV620, 71b3845cf0SFrançois Tigeot CHIP_RV635, 72b3845cf0SFrançois Tigeot CHIP_RS780, 73b3845cf0SFrançois Tigeot CHIP_RS880, 74b3845cf0SFrançois Tigeot CHIP_RV770, 75b3845cf0SFrançois Tigeot CHIP_RV730, 76b3845cf0SFrançois Tigeot CHIP_RV710, 77b3845cf0SFrançois Tigeot CHIP_RV740, 78b3845cf0SFrançois Tigeot CHIP_CEDAR, 79b3845cf0SFrançois Tigeot CHIP_REDWOOD, 80b3845cf0SFrançois Tigeot CHIP_JUNIPER, 81b3845cf0SFrançois Tigeot CHIP_CYPRESS, 82b3845cf0SFrançois Tigeot CHIP_HEMLOCK, 83b3845cf0SFrançois Tigeot CHIP_PALM, 84b3845cf0SFrançois Tigeot CHIP_SUMO, 85b3845cf0SFrançois Tigeot CHIP_SUMO2, 86b3845cf0SFrançois Tigeot CHIP_BARTS, 87b3845cf0SFrançois Tigeot CHIP_TURKS, 88b3845cf0SFrançois Tigeot CHIP_CAICOS, 89b3845cf0SFrançois Tigeot CHIP_CAYMAN, 90b3845cf0SFrançois Tigeot CHIP_ARUBA, 91b3845cf0SFrançois Tigeot CHIP_TAHITI, 92b3845cf0SFrançois Tigeot CHIP_PITCAIRN, 93b3845cf0SFrançois Tigeot CHIP_VERDE, 94b403bed8SMichael Neumann CHIP_OLAND, 95f43cf1b1SMichael Neumann CHIP_HAINAN, 9657e252bfSMichael Neumann CHIP_BONAIRE, 9757e252bfSMichael Neumann CHIP_KAVERI, 9857e252bfSMichael Neumann CHIP_KABINI, 99*c6f73aabSFrançois Tigeot CHIP_HAWAII, 100*c6f73aabSFrançois Tigeot CHIP_MULLINS, 101b3845cf0SFrançois Tigeot CHIP_LAST, 102b3845cf0SFrançois Tigeot }; 103b3845cf0SFrançois Tigeot 104b3845cf0SFrançois Tigeot /* 105b3845cf0SFrançois Tigeot * Chip flags 106b3845cf0SFrançois Tigeot */ 107b3845cf0SFrançois Tigeot enum radeon_chip_flags { 108b3845cf0SFrançois Tigeot RADEON_FAMILY_MASK = 0x0000ffffUL, 109b3845cf0SFrançois Tigeot RADEON_FLAGS_MASK = 0xffff0000UL, 110b3845cf0SFrançois Tigeot RADEON_IS_MOBILITY = 0x00010000UL, 111b3845cf0SFrançois Tigeot RADEON_IS_IGP = 0x00020000UL, 112b3845cf0SFrançois Tigeot RADEON_SINGLE_CRTC = 0x00040000UL, 113b3845cf0SFrançois Tigeot RADEON_IS_AGP = 0x00080000UL, 114b3845cf0SFrançois Tigeot RADEON_HAS_HIERZ = 0x00100000UL, 115b3845cf0SFrançois Tigeot RADEON_IS_PCIE = 0x00200000UL, 116b3845cf0SFrançois Tigeot RADEON_NEW_MEMMAP = 0x00400000UL, 117b3845cf0SFrançois Tigeot RADEON_IS_PCI = 0x00800000UL, 118b3845cf0SFrançois Tigeot RADEON_IS_IGPGART = 0x01000000UL, 119*c6f73aabSFrançois Tigeot RADEON_IS_PX = 0x02000000UL, 120b3845cf0SFrançois Tigeot }; 121b3845cf0SFrançois Tigeot 122b3845cf0SFrançois Tigeot #endif 123