1#- 2# SPDX-License-Identifier: BSD-2-Clause 3# 4# Copyright 2023 Beckhoff Automation GmbH & Co. KG 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted providing that the following conditions 8# are met: 9# 1. Redistributions of source code must retain the above copyright 10# notice, this list of conditions and the following disclaimer. 11# 2. Redistributions in binary form must reproduce the above copyright 12# notice, this list of conditions and the following disclaimer in the 13# documentation and/or other materials provided with the distribution. 14# 15# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 19# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25# POSSIBILITY OF SUCH DAMAGE. 26 27pci_video_amd() 28{ 29 case "$1" in 30 0x678*|0x679*) 31 echo "gpu-firmware-amd-kmod-tahiti" 32 ;; 33 0x680*|0x681*) 34 echo "gpu-firmware-amd-kmod-pitcairn" 35 ;; 36 0x660*|0x661*|0x662*|0x663*) 37 echo "gpu-firmware-amd-kmod-oland" 38 ;; 39 0x682*|0x683*) 40 echo "gpu-firmware-amd-kmod-verde gpu-firmware-amd-kmod-si58" 41 ;; 42 0x666*) 43 echo "gpu-firmware-amd-kmod-hainan" 44 ;; 45 0x13*) 46 echo "gpu-firmware-amd-kmod-kaveri" 47 ;; 48 0x664*|0x664*) 49 echo "gpu-firmware-amd-kmod-bonaire" 50 ;; 51 0x67a*|0x67b*) 52 echo "gpu-firmware-amd-kmod-hawaii" 53 ;; 54 0x983*) 55 echo "gpu-firmware-amd-kmod-kabini" 56 ;; 57 0x985*) 58 echo "gpu-firmware-amd-kmod-mullins" 59 ;; 60 0x690*) 61 echo "gpu-firmware-amd-kmod-topaz" 62 ;; 63 0x692*|0x693*) 64 echo "gpu-firmware-amd-kmod-tonga" 65 ;; 66 0x730*) 67 echo "gpu-firmware-amd-kmod-fiji" 68 ;; 69 0x987*) 70 echo "gpu-firmware-amd-kmod-carrizo" 71 ;; 72 0x98e4*) 73 echo "gpu-firmware-amd-kmod-stoney" 74 ;; 75 0x67e*|0x67ff) 76 echo "gpu-firmware-amd-kmod-polaris11" 77 ;; 78 0x67c*|0x67d*|0x6fdf) 79 echo "gpu-firmware-amd-kmod-polaris10" 80 ;; 81 0x698*|0x699*) 82 echo "gpu-firmware-amd-kmod-polaris12" 83 ;; 84 0x694*) 85 echo "gpu-firmware-amd-kmod-vegam" 86 ;; 87 0x686*|0x687*) 88 echo "gpu-firmware-amd-kmod-vega10" 89 ;; 90 0x69a*) 91 echo "gpu-firmware-amd-kmod-vega12" 92 ;; 93 0x66a*) 94 echo "gpu-firmware-amd-kmod-vega20" 95 ;; 96 0x15d*) 97 echo "gpu-firmware-amd-kmod-raven" 98 ;; 99 0x738*|0x739*) 100 echo "gpu-firmware-amd-kmod-arcturus" 101 ;; 102 0x731*) 103 echo "gpu-firmware-amd-kmod-navi10" 104 ;; 105 0x734*) 106 echo "gpu-firmware-amd-kmod-navi14" 107 ;; 108 0x15e7|0x1636|0x1638|0x164c) 109 echo "gpu-firmware-amd-kmod-renoir" 110 ;; 111 0x736*) 112 echo "gpu-firmware-amd-kmod-navi12" 113 ;; 114 0x73a*|0x73b*) 115 echo "gpu-firmware-amd-kmod-sienna-cichlid" 116 ;; 117 0x163f) 118 echo "gpu-firmware-amd-kmod-vangogh" 119 ;; 120 0x164d|0x1681) 121 echo "gpu-firmware-amd-kmod-yellow-carp" 122 ;; 123 0x73c*|0x73d*) 124 echo "gpu-firmware-amd-kmod-navy-flounder" 125 ;; 126 0x73e*|0x73f*) 127 echo "gpu-firmware-amd-kmod-dimgrey-cavefish" 128 ;; 129 0x740*|0x741*) 130 echo "gpu-firmware-amd-kmod-aldebaran" 131 ;; 132 0x13fe) 133 echo "gpu-firmware-amd-kmod-cyan-skillfish2" 134 ;; 135 0x742*|0x743*) 136 echo "gpu-firmware-amd-kmod-beige-goby" 137 ;; 138 esac 139} 140