X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fpci.c;h=f91a4eb8ed06bbe0380e81596e6426e47bc21c41;hb=b587acc6b1fbcbf6edcebef7613cbf7ea84a999e;hp=b8c799f9bd886bc754935e9df7d87295affd8973;hpb=186424248d2a435cca0d8999c2fadc93fb1eb0fe;p=oweals%2Fu-boot.git diff --git a/cmd/pci.c b/cmd/pci.c index b8c799f9bd..f91a4eb8ed 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH * Andreas Heppel @@ -5,8 +6,6 @@ * (C) Copyright 2002 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Grandegger, DENX Software Engineering, wg@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -19,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -149,7 +149,7 @@ int pci_bar_show(struct udevice *dev) if ((!is_64 && size_low) || (is_64 && size)) { size = ~size + 1; - printf(" %d %#016llx %#016llx %d %s %s\n", + printf(" %d %#018llx %#018llx %d %s %s\n", bar_id, (unsigned long long)base, (unsigned long long)size, is_64 ? 64 : 32, is_io ? "I/O" : "MEM", @@ -630,10 +630,10 @@ static void pci_show_regions(struct udevice *bus) return; } - printf("# %-16s %-16s %-16s %s\n", "Bus start", "Phys start", "Size", + printf("# %-18s %-18s %-18s %s\n", "Bus start", "Phys start", "Size", "Flags"); for (i = 0, reg = hose->regions; i < hose->region_count; i++, reg++) { - printf("%d %#016llx %#016llx %#016llx ", i, + printf("%d %#018llx %#018llx %#018llx ", i, (unsigned long long)reg->bus_start, (unsigned long long)reg->phys_start, (unsigned long long)reg->size); @@ -656,7 +656,7 @@ static void pci_show_regions(struct udevice *bus) * pci modify[.b, .w, .l] bus.device.function [addr] * pci write[.b, .w, .l] bus.device.function addr value */ -static int do_pci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_pci(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { ulong addr = 0, value = 0, cmd_size = 0; enum pci_size_t size = PCI_SIZE_32;