test: dm: pci: Add cases for finding PCI capability APIs
authorBin Meng <bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:53 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
commit95e11069b5e10c38cc966a2ff9c16748d017df52
treeff0e63317c69c332d4ddb76725042cb7f6d958a2
parentdac01fd89d41d98cd4ce040a0d10eb67c523f63a
test: dm: pci: Add cases for finding PCI capability APIs

Add several PCI capability and extended capability ID registers
in the swap_case driver, so that we can add test case for
dm_pci_find_capability() and dm_pci_find_ext_capability().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/test.h
drivers/misc/swap_case.c
test/dm/pci.c