From f7573af1e6401af51a9f10fc4807b6c81a883cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Fri, 1 Nov 2013 17:08:25 +0000 Subject: [PATCH] use PCI_HEADER_TYPE macro --- BaS_gcc/sources/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaS_gcc/sources/pci.c b/BaS_gcc/sources/pci.c index 6d76bbf..ea70560 100644 --- a/BaS_gcc/sources/pci.c +++ b/BaS_gcc/sources/pci.c @@ -197,7 +197,7 @@ void pci_scan(void) } /* test for multi-function device to avoid ghost device detects */ value = pci_read_config_longword(bus, slot, function, 0x0c); - if (function == 0 && !(value & 0x800000)) /* no multi function device */ + if (function == 0 && !(PCI_HEADER_TYPE(value) & 0x80)) /* no multi function device */ function = 8; } }