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