]> git.ipfire.org Git - thirdparty/pciutils.git/commit
Correct the end of CardBus memory windows
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 11 Jan 2012 21:16:19 +0000 (14:16 -0700)
committerMartin Mares <mj@ucw.cz>
Sat, 14 Jan 2012 14:06:20 +0000 (15:06 +0100)
commitf288d32f34f6a3948e49891012864ad8ed6e3bd6
tree0e9634266ab251c16dbca3fcae19ba189607edae
parent364275f83d6153474b10a86b8c69d3d7bba13e6a
Correct the end of CardBus memory windows

The low twelve bits of memory base/limit are assumed to be all zeros
and all ones, respectively.  Therefore, a window with base == limit
is a valid 4K window, which we should display by default, and the
true end of the window is ...fff, not ...000.  For example,

    05:07.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
    ...
-     Memory window 0: 88000000-8bfff000 (prefetchable)
+     Memory window 0: 88000000-8bffffff (prefetchable)

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
lspci.c