This is an automated email from the ASF dual-hosted git repository.

raiden00 pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 3b1870028c91cc2faeaf74107dc4479bcc7dc9bb
Author: Bowen Wang <[email protected]>
AuthorDate: Tue Mar 26 17:27:35 2024 +0800

    include/pci.h: sync the subvendor/subdevice type in id table and 
pci_device_s
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 include/nuttx/pci/pci.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/nuttx/pci/pci.h b/include/nuttx/pci/pci.h
index f3ee1cd420..2ae79dd562 100644
--- a/include/nuttx/pci/pci.h
+++ b/include/nuttx/pci/pci.h
@@ -52,7 +52,7 @@
 #define PCI_SLOT(devfn)       (((devfn) >> 3) & 0x1f)
 #define PCI_FUNC(devfn)       ((devfn) & 0x07)
 
-#define PCI_ANY_ID (~0)
+#define PCI_ANY_ID (uint16_t)(~0)
 
 /* PCI_DEFINE_DEVICE_TABLE - macro used to describe a pci device table
  * table: device table name
@@ -242,8 +242,8 @@ struct pci_device_id_s
 {
   uint16_t vendor;    /* Vendor id */
   uint16_t device;    /* Device id */
-  uint32_t subvendor; /* Sub vendor id */
-  uint32_t subdevice; /* Sub device id */
+  uint16_t subvendor; /* Sub vendor id */
+  uint16_t subdevice; /* Sub device id */
   uint32_t class;     /* (Class, subclass, prog-if) triplet */
   uint32_t class_mask;
   uintptr_t driver_data;

Reply via email to