mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
dac01fd89d
commit
95e11069b5
3 changed files with 61 additions and 0 deletions
|
@ -16,6 +16,14 @@
|
|||
#define SANDBOX_PCI_CLASS_CODE PCI_CLASS_CODE_COMM
|
||||
#define SANDBOX_PCI_CLASS_SUB_CODE PCI_CLASS_SUB_CODE_COMM_SERIAL
|
||||
|
||||
#define PCI_CAP_ID_PM_OFFSET 0x50
|
||||
#define PCI_CAP_ID_EXP_OFFSET 0x60
|
||||
#define PCI_CAP_ID_MSIX_OFFSET 0x70
|
||||
|
||||
#define PCI_EXT_CAP_ID_ERR_OFFSET 0x100
|
||||
#define PCI_EXT_CAP_ID_VC_OFFSET 0x200
|
||||
#define PCI_EXT_CAP_ID_DSN_OFFSET 0x300
|
||||
|
||||
/* Useful for PCI_VDEVICE() macro */
|
||||
#define PCI_VENDOR_ID_SANDBOX SANDBOX_PCI_VENDOR_ID
|
||||
#define SWAP_CASE_DRV_DATA 0x55aa
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue