Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Add PCI_HEADER_TYPE_MFD definition

Add PCI_HEADER_TYPE_MFD so we can replace literals in the code.

Link: https://lore.kernel.org/r/20231003125300.5541-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Ilpo Järvinen and committed by
Bjorn Helgaas
bdca03a2 5827e17d

+1
+1
include/uapi/linux/pci_regs.h
··· 80 80 #define PCI_HEADER_TYPE_NORMAL 0 81 81 #define PCI_HEADER_TYPE_BRIDGE 1 82 82 #define PCI_HEADER_TYPE_CARDBUS 2 83 + #define PCI_HEADER_TYPE_MFD 0x80 /* Multi-Function Device (possible) */ 83 84 84 85 #define PCI_BIST 0x0f /* 8 bits */ 85 86 #define PCI_BIST_CODE_MASK 0x0f /* Return result */