xref: /freebsd/usr.sbin/fwget/pci/pci_video_intel (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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_intel()
28{
29	case "$1" in
30		# Skylake
31		0x19*)
32			addpkg "gpu-firmware-intel-kmod-skylake"
33			;;
34		# Broxton
35		0x0a*|0x1a*|0x5a84|0x5a85)
36			addpkg "gpu-firmware-intel-kmod-broxton"
37			;;
38		# Geminilake
39		0x318*)
40			addpkg "gpu-firmware-intel-kmod-geminilake"
41			;;
42		# Kabylake, Coffeelake and Cometlake
43		0x59*|0x87*|0x9b*|0x3e*)
44			addpkg "gpu-firmware-intel-kmod-kabylake"
45			;;
46		# Cannonlake
47		0x5a*)
48			addpkg "gpu-firmware-intel-kmod-cannonlake"
49			;;
50		# Icelake
51		0x8a*)
52			addpkg "gpu-firmware-intel-kmod-icelake"
53			;;
54		# Elkhartlake/Jasperlake
55		0x45*|0x4e*)
56			addpkg "gpu-firmware-intel-kmod-elkhartlake"
57			;;
58		# Tigerlake
59		0x9a*)
60			addpkg "gpu-firmware-intel-kmod-tigerlake"
61			;;
62		# Rocketlake (Uses tigerlake GuC/HuC firmware)
63		0x4c*)
64			addpkg "gpu-firmware-intel-kmod-rocketlake gpu-firmware-intel-kmod-tigerlake"
65			;;
66		# DG1
67		0x49*)
68			addpkg "gpu-firmware-intel-kmod-dg1"
69			;;
70		# Alderlake (Uses tigerlake GuC/HuC firmware)
71		0x46*)
72			addpkg "gpu-firmware-intel-kmod-alderlake gpu-firmware-intel-kmod-tigerlake"
73			;;
74		*)
75			log "No package found for device $1"
76			;;
77	esac
78}
79