]> git.proxmox.com Git - mirror_edk2.git/commit - ArmVirtPkg/FdtClientDxe/FdtClientDxe.c
ArmVirtPkg/FdtClientDxe: report address and size cell count directly
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Sep 2016 13:15:14 +0000 (14:15 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Sep 2016 14:31:24 +0000 (15:31 +0100)
commitcfc8d51c0cbf97b5e71cfd92dcc6c5760940214f
tree8330973059c6b0d3de0daf3d7da1a962ff40f0f6
parent38ed4a9e3a65185e7e7b3c891feab1ddc865fdb5
ArmVirtPkg/FdtClientDxe: report address and size cell count directly

The FDT client protocol methods dealing with "reg" properties return
the size of a "reg" element. Currently, we have hardcoded this as '8',
since #address-cells == #size-cells == 2 in most cases. However, for
different values, have a single 'reg' element size is not unambiguous,
since - however unlikely - if #address-cells != #size-cells, we do not
know which is which.

So before adding more methods to the protocol, fix up this oversight.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/FdtClientDxe/FdtClientDxe.c
ArmVirtPkg/Include/Protocol/FdtClient.h
ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.c
ArmVirtPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.c
ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.c