[PATCH v2 3/3] pci: Rename GRUB_PCI_CLASS_*

2022-08-26 Thread peterz
Glenn suggested to rename the existing PCI_CLASS defines to have explicit class and subclass names. Suggested-by: Glenn Washburn Signed-off-by: Peter Zijlstra (Intel) --- Index: grub/grub-core/kern/i386/qemu/init.c === --- grub.orig

[PATCH v2 0/3] term/serial: Add PCI-serial device support

2022-08-26 Thread peterz
Hi! A small collection of patches that adds PCI serial support. The first patch is by Glenn and adds GRUB_HAS_PCI -- it is included so that it is a complete posting. The second patch is the actual PCI serial support, and the last patch a cleanup requested by Glenn. Much thanks to Glenn for all

[PATCH v2 2/3] term/serial: Add support for PCI serial devices

2022-08-26 Thread peterz
Loosely based on early_pci_serial_init() from Linux, allow GRUB to make use of PCI serial devices. Specifically, my Alderlake NUC exposes the Intel AMT SoL UART as a PCI enumerated device but doesn't include it in the EFI tables. Tested and confirmed working on a "Lenovo P360 Tiny" with Intel AMT

[PATCH v2 1/3] configure: Add -DGRUB_HAS_PCI when compiling C/C++ files on targets that support PCI

2022-08-26 Thread peterz
From: Glenn Washburn The list of targets that support PCI is in gentpl.py. However, there is no support for generating makefile script from a .def file that will apply globally to the makefile, but on a per target basis. So instead, use gentpl.py in configure to get the list of targets and check