xref: /freebsd/usr.sbin/fwget/pci/pci_video_intel (revision d198b8774d2cfb6f140893e1c6236af9e97d1497)
1*d198b877SEmmanuel Vadot#-
2*d198b877SEmmanuel Vadot# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3*d198b877SEmmanuel Vadot#
4*d198b877SEmmanuel Vadot# Copyright 2023 Beckhoff Automation GmbH & Co. KG
5*d198b877SEmmanuel Vadot#
6*d198b877SEmmanuel Vadot# Redistribution and use in source and binary forms, with or without
7*d198b877SEmmanuel Vadot# modification, are permitted providing that the following conditions
8*d198b877SEmmanuel Vadot# are met:
9*d198b877SEmmanuel Vadot# 1. Redistributions of source code must retain the above copyright
10*d198b877SEmmanuel Vadot#    notice, this list of conditions and the following disclaimer.
11*d198b877SEmmanuel Vadot# 2. Redistributions in binary form must reproduce the above copyright
12*d198b877SEmmanuel Vadot#    notice, this list of conditions and the following disclaimer in the
13*d198b877SEmmanuel Vadot#    documentation and/or other materials provided with the distribution.
14*d198b877SEmmanuel Vadot#
15*d198b877SEmmanuel Vadot# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*d198b877SEmmanuel Vadot# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17*d198b877SEmmanuel Vadot# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*d198b877SEmmanuel Vadot# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19*d198b877SEmmanuel Vadot# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*d198b877SEmmanuel Vadot# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*d198b877SEmmanuel Vadot# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*d198b877SEmmanuel Vadot# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23*d198b877SEmmanuel Vadot# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24*d198b877SEmmanuel Vadot# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25*d198b877SEmmanuel Vadot# POSSIBILITY OF SUCH DAMAGE.
26*d198b877SEmmanuel Vadot
27*d198b877SEmmanuel Vadotpci_video_intel()
28*d198b877SEmmanuel Vadot{
29*d198b877SEmmanuel Vadot	case "$1" in
30*d198b877SEmmanuel Vadot		# Skylake
31*d198b877SEmmanuel Vadot		0x19*)
32*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-kmod-skylake"
33*d198b877SEmmanuel Vadot			;;
34*d198b877SEmmanuel Vadot		# Broxton
35*d198b877SEmmanuel Vadot		0x0a*|0x1a*|0x5a84|0x5a85)
36*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-kmod-broxton"
37*d198b877SEmmanuel Vadot			;;
38*d198b877SEmmanuel Vadot		# Geminilake
39*d198b877SEmmanuel Vadot		0x318*)
40*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-kmod-geminilake"
41*d198b877SEmmanuel Vadot			;;
42*d198b877SEmmanuel Vadot		# Kabylake, Coffeelake and Cometlake
43*d198b877SEmmanuel Vadot		0x59*|0x87*|0x9b*|0x3e*)
44*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-kmod-kabylake"
45*d198b877SEmmanuel Vadot			;;
46*d198b877SEmmanuel Vadot		# Cannonlake
47*d198b877SEmmanuel Vadot		0x5a*)
48*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-cannonlake"
49*d198b877SEmmanuel Vadot			;;
50*d198b877SEmmanuel Vadot		# Icelake
51*d198b877SEmmanuel Vadot		0x8a*)
52*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-icelake"
53*d198b877SEmmanuel Vadot			;;
54*d198b877SEmmanuel Vadot		# Elkhartlake/Jasperlake
55*d198b877SEmmanuel Vadot		0x45*|0x4e*)
56*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-elkhartlake"
57*d198b877SEmmanuel Vadot			;;
58*d198b877SEmmanuel Vadot		# Tigerlake
59*d198b877SEmmanuel Vadot		0x9a*)
60*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-tigerlake"
61*d198b877SEmmanuel Vadot			;;
62*d198b877SEmmanuel Vadot		# Rocketlake (Uses tigerlake GuC/HuC firmware)
63*d198b877SEmmanuel Vadot		0x4c*)
64*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-rocketlake gpu-firmware-intel-tigerlake"
65*d198b877SEmmanuel Vadot			;;
66*d198b877SEmmanuel Vadot		# DG1
67*d198b877SEmmanuel Vadot		0x49*)
68*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-dg1"
69*d198b877SEmmanuel Vadot			;;
70*d198b877SEmmanuel Vadot		# Alderlake (Uses tigerlake GuC/HuC firmware)
71*d198b877SEmmanuel Vadot		0x46*)
72*d198b877SEmmanuel Vadot			echo "gpu-firmware-intel-alderlake gpu-firmware-intel-tigerlake"
73*d198b877SEmmanuel Vadot			;;
74*d198b877SEmmanuel Vadot		*)
75*d198b877SEmmanuel Vadot			log "No package found for device $1"
76*d198b877SEmmanuel Vadot			;;
77*d198b877SEmmanuel Vadot	esac
78*d198b877SEmmanuel Vadot}
79