Path: blob/21.2-virgl/src/amd/common/amd_family.h
7326 views
/*1* Copyright 2008 Corbin Simpson <[email protected]>2* Copyright 2010 Marek Olšák <[email protected]>3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the "Software"),6* to deal in the Software without restriction, including without limitation7* on the rights to use, copy, modify, merge, publish, distribute, sub8* license, and/or sell copies of the Software, and to permit persons to whom9* the Software is furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice (including the next12* paragraph) shall be included in all copies or substantial portions of the13* Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL18* THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,19* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR20* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE21* USE OR OTHER DEALINGS IN THE SOFTWARE. */2223#ifndef AMD_FAMILY_H24#define AMD_FAMILY_H2526#ifdef __cplusplus27extern "C" {28#endif2930enum radeon_family31{32CHIP_UNKNOWN = 0,33CHIP_R300, /* R3xx-based cores. (GFX2) */34CHIP_R350,35CHIP_RV350,36CHIP_RV370,37CHIP_RV380,38CHIP_RS400,39CHIP_RC410,40CHIP_RS480,41CHIP_R420, /* R4xx-based cores. (GFX2) */42CHIP_R423,43CHIP_R430,44CHIP_R480,45CHIP_R481,46CHIP_RV410,47CHIP_RS600,48CHIP_RS690,49CHIP_RS740,50CHIP_RV515, /* R5xx-based cores. (GFX2) */51CHIP_R520,52CHIP_RV530,53CHIP_R580,54CHIP_RV560,55CHIP_RV570,56CHIP_R600, /* GFX3 (R6xx) */57CHIP_RV610,58CHIP_RV630,59CHIP_RV670,60CHIP_RV620,61CHIP_RV635,62CHIP_RS780,63CHIP_RS880,64CHIP_RV770, /* GFX3 (R7xx) */65CHIP_RV730,66CHIP_RV710,67CHIP_RV740,68CHIP_CEDAR, /* GFX4 (Evergreen) */69CHIP_REDWOOD,70CHIP_JUNIPER,71CHIP_CYPRESS,72CHIP_HEMLOCK,73CHIP_PALM,74CHIP_SUMO,75CHIP_SUMO2,76CHIP_BARTS,77CHIP_TURKS,78CHIP_CAICOS,79CHIP_CAYMAN, /* GFX5 (Northern Islands) */80CHIP_ARUBA,81CHIP_TAHITI, /* GFX6 (Southern Islands) */82CHIP_PITCAIRN,83CHIP_VERDE,84CHIP_OLAND,85CHIP_HAINAN,86CHIP_BONAIRE, /* GFX7 (Sea Islands) */87CHIP_KAVERI,88CHIP_KABINI,89CHIP_HAWAII,90CHIP_TONGA, /* GFX8 (Volcanic Islands & Polaris) */91CHIP_ICELAND,92CHIP_CARRIZO,93CHIP_FIJI,94CHIP_STONEY,95CHIP_POLARIS10,96CHIP_POLARIS11,97CHIP_POLARIS12,98CHIP_VEGAM,99CHIP_VEGA10, /* GFX9 (Vega) */100CHIP_VEGA12,101CHIP_VEGA20,102CHIP_RAVEN,103CHIP_RAVEN2,104CHIP_RENOIR,105CHIP_ARCTURUS,106CHIP_ALDEBARAN,107CHIP_NAVI10,108CHIP_NAVI12,109CHIP_NAVI14,110CHIP_SIENNA_CICHLID,111CHIP_NAVY_FLOUNDER,112CHIP_VANGOGH,113CHIP_DIMGREY_CAVEFISH,114CHIP_BEIGE_GOBY,115CHIP_YELLOW_CARP,116CHIP_LAST,117};118119enum chip_class120{121CLASS_UNKNOWN = 0,122R300,123R400,124R500,125R600,126R700,127EVERGREEN,128CAYMAN,129GFX6,130GFX7,131GFX8,132GFX9,133GFX10,134GFX10_3,135136NUM_GFX_VERSIONS,137};138139enum ring_type140{141RING_GFX = 0,142RING_COMPUTE,143RING_DMA,144RING_UVD,145RING_VCE,146RING_UVD_ENC,147RING_VCN_DEC,148RING_VCN_ENC,149RING_VCN_JPEG,150NUM_RING_TYPES,151};152153const char *ac_get_family_name(enum radeon_family family);154155#ifdef __cplusplus156}157#endif158159#endif160161162