From 14e22779625de673569c7b950ecc2753fb915b31 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 27 Apr 2010 06:56:47 +0000 Subject: Since some people disapprove of white space cleanups mixed in regular commits while others dislike them being extra commits, let's clean them up once and for all for the existing code. If it's ugly, let it only be ugly once :-) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/inteltool/pcie.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'util/inteltool/pcie.c') diff --git a/util/inteltool/pcie.c b/util/inteltool/pcie.c index 5acb0b6ba2..5b58f0ccdb 100644 --- a/util/inteltool/pcie.c +++ b/util/inteltool/pcie.c @@ -1,8 +1,8 @@ /* * inteltool - dump all registers on an Intel CPU + chipset based system. * - * Copyright (C) 2008-2010 by coresystems GmbH - * + * Copyright (C) 2008-2010 by coresystems GmbH + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. @@ -57,7 +57,7 @@ int print_epbar(struct pci_dev *nb) } epbar = map_physical(epbar_phys, size); - + if (epbar == NULL) { perror("Error mapping EPBAR"); exit(1); @@ -109,7 +109,7 @@ int print_dmibar(struct pci_dev *nb) } dmibar = map_physical(dmibar_phys, size); - + if (dmibar == NULL) { perror("Error mapping DMIBAR"); exit(1); @@ -182,17 +182,17 @@ int print_pciexbar(struct pci_dev *nb) default: // RSVD printf("Undefined address base. Bailing out.\n"); return 1; - } + } printf("PCIEXBAR: 0x%08llx\n", pciexbar_phys); pciexbar = map_physical(pciexbar_phys, (max_busses * 1024 * 1024)); - + if (pciexbar == NULL) { perror("Error mapping PCIEXBAR"); exit(1); } - + for (bus = 0; bus < max_busses; bus++) { for (dev = 0; dev < 32; dev++) { for (fn = 0; fn < 8; fn++) { @@ -200,7 +200,7 @@ int print_pciexbar(struct pci_dev *nb) if (*(uint16_t *)(pciexbar + devbase) == 0xffff) continue; - + /* This is a heuristics. Anyone got a better check? */ if( (*(uint32_t *)(pciexbar + devbase + 256) == 0xffffffff) && (*(uint32_t *)(pciexbar + devbase + 512) == 0xffffffff) ) { -- cgit v1.2.3