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