From 97740fca2c56b64ed9542e0f0e8cb4255c57bf46 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Mon, 25 Mar 2024 11:10:18 +0800 Subject: [PATCH] include/pci_regs: add PCI_STD_NUM_BARS macro Signed-off-by: Bowen Wang --- include/nuttx/pci/pci_regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nuttx/pci/pci_regs.h b/include/nuttx/pci/pci_regs.h index 5eb3331e861..2c362cf78df 100644 --- a/include/nuttx/pci/pci_regs.h +++ b/include/nuttx/pci/pci_regs.h @@ -26,6 +26,7 @@ */ #define PCI_STD_HEADER_SIZEOF 64 +#define PCI_STD_NUM_BARS 6 /* Number of standard BARs */ #define PCI_VENDOR_ID 0x00 /* 16 bits */ #define PCI_DEVICE_ID 0x02 /* 16 bits */ #define PCI_COMMAND 0x04 /* 16 bits */