From e1ba3dac415b87dc9e3f038ced0a1a720a4d8004 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 31 Mar 2015 17:30:01 -0700 Subject: device: Add class and subclass name support Add support to display class and subclass names for PCI devices. BRANCH=none BUG=None TEST=Build and run on strago/cyan. Change-Id: I5136fae45b8a1cd02541f233d29a246cdfcd8331 Signed-off-by: Patrick Georgi Original-Commit-Id: a7c9b0d7201b09a06ea32f0db84187d15f767c80 Original-Change-Id: Ibf2ee89dd84040ca6ab0e52857a69f7ed0c28f37 Original-Signed-off-by: Lee Leahy Original-Reviewed-on: https://chromium-review.googlesource.com/263342 Original-Reviewed-by: Aaron Durbin Original-Commit-Queue: Leroy P Leahy Original-Tested-by: Leroy P Leahy Reviewed-on: http://review.coreboot.org/9901 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/include/device/pci.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/device') diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 4e712f9f7b..141d2e8cb4 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -87,6 +87,8 @@ const char * pin_to_str(int pin); int get_pci_irq_pins(device_t dev, device_t *parent_bdg); void pci_assign_irqs(unsigned bus, unsigned slot, const unsigned char pIntAtoD[4]); +const char *get_pci_class_name(device_t dev); +const char *get_pci_subclass_name(device_t dev); #define PCI_IO_BRIDGE_ALIGN 4096 #define PCI_MEM_BRIDGE_ALIGN (1024*1024) -- cgit v1.2.3